Questions tagged [lvm]

In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.

400 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Deactivation of lvm volume group surviving boot

due to a failing hard disk, I would like to deactivate the volume groups living on it, to make sure that the disk is messed with as little as possible until it gets replaced. I know that I can ...
callegar's user avatar
  • 123
0 votes
1 answer
165 views

lvm recovery with raid reconfiguration

I have a Dell R510 with a H200 controller previously and I have two disks: a 2T SAS and a 250G SSD. I created two raid0s using those two disks on H200 and then created lvm on top of it. Here is my ...
Feng Xue's user avatar
0 votes
1 answer
107 views

Have lvm spread LVs across several PVs

I have a server with multiple disks. Most are raid1: PV /dev/md127 VG HDDs lvm2 [465.63 GiB / 421.63 GiB free] PV /dev/sdg1 VG backup lvm2 [<931.51 GiB / <931.51 GiB ...
Tuinslak's user avatar
  • 1,475
0 votes
0 answers
487 views

How to properly update container sizes when extending kvm/libvirt disk when running into "... smaller then corresponding PV size" error?

I work on a Debian buster system as a KVM/libvirt host and followed this guide to extend the disk of my guest: https://computingforgeeks.com/how-to-extend-increase-kvm-virtual-machine-disk-size/ . ...
Andreas Schuldei's user avatar
0 votes
1 answer
533 views

How to backup large MySQL database with the help of LVM snapshots?

I am trying to find a backup/restore procedure for a MySQL 8 DB with 400M+ Rows in InnoDB tables. MySQLdump takes days and therefore I am trying this now: Mount a LVM volume on the DB Folder Create ...
merlin's user avatar
  • 2,172
0 votes
1 answer
1k views

What does the Cpy%Sync column of lvs output mean for a cache LV?

I have a host with a single cache LV (~800GB SSD in front of a multi-TB RAID array; write-through mode). I ran a routine scrub on the RAID last night (lvchange --syncaction check). Ever since that ...
zwol's user avatar
  • 1,365
0 votes
0 answers
293 views

Import exisiting Logical Volume into Openstack

My Openstack (Microstack on Ubuntu) got screwed up and I had to reinstall it. Putting a backup of the Openstack config back in place didn't work so have to start "fresh". The problem now is: ...
Nephews's user avatar
0 votes
1 answer
613 views

How to free space in lvm pool?

I have a newly built CEntOS 7 server with a single large lvm pool we plan to use for VM installations. When I tried to create a new VM instance using ssm, I got errors saying there's no space. So I ...
mav1c's user avatar
  • 1
0 votes
0 answers
862 views

How do I recover a broken logical volume group?

I created a logical volume group for my xen VMs on a separate drive. I had them working perfectly. Then I accidentally unplugged the USB cable hosting my vg0. Now my VMs drives cannot be detected. I ...
brad's user avatar
  • 125
0 votes
2 answers
113 views

How to resize LVM partition in my setup?

I have a CentOS 6 VMware VPS with the current partition format : Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_serverdl-lv_root 11G 4.9G 4.7G 52% / ...
master lfc6's user avatar
0 votes
0 answers
277 views

Do I need a spare slot to replace a drive in an LVM raid array?

I am planning to set up an LVM raid 5 array and looked at how to replace a faulty drive. I found the replace command lvconvert --replace dev_to_remove vg/lv [possible_replacements] For this to work, ...
The Shurrican's user avatar
0 votes
0 answers
42 views

speed difference between FS created by LVM and parted cmd

I was testing read/write operation on FS to check speed via dd cmd. /app - created with LVM /app1 - created with parted when I run below cmds, can see huge diff in speed for both operation with same ...
user640121's user avatar
0 votes
0 answers
541 views

Create an Fully Automated Installer for Debian with FAI

I searched on Google about creating Fully Automated Installer for Debian. My aim is to have an ISO file, make it bootable in pendrive. So if I plug this pendrive in a computer, power on the physical ...
Kalib Zen's user avatar
  • 137
0 votes
1 answer
1k views

Fresh Ubuntu 20.04 install no disk space on / and unable to extend

I have fresh Ubuntu 20.04 with 50GB disk size installed using defaults. Now I don't have any space left on /dev/mapper/ubuntu--vg-ubuntu--lv. df -h Filesystem Size Used Avail ...
wojcieh's user avatar
  • 158
0 votes
0 answers
840 views

Unable to extend, create and attach openstack volume to an instance

I am running Ocata openstack on Ubuntu 16 and trying to extend an existing volume from 100GB to 250GB by following the link: https://docs.openstack.org/cinder/rocky/cli/cli-manage-volumes.html After ...
gbayi_omo's user avatar
0 votes
0 answers
229 views

How to resize img file created with dd on LUKS-LVM partition?

I have installed a new Debian 10 on /dev/sda with LUKS + LVM. It has the following partition structure: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 79G 0 disk ├─...
Kalib Zen's user avatar
  • 137
0 votes
0 answers
44 views

Add disk to software raid pool

I have a setup like this there run a mirroring software raid1 but its possible to add a disk more and use its like a raid5 or how do i add more storage to the raid? Current with 2 disks | / | /var | /...
The Tech Guy's user avatar
0 votes
2 answers
801 views

Mixed HDD size storage system with parity

Im searching for a way to get the most out of "spare" HDDs. Following setup given: 1x 2 TB 2x 3TB 2x 6TB What i want/need is: Parity (1x HDD can fail. For example, one of the 6TB. Data ...
Marc's user avatar
  • 127
0 votes
2 answers
2k views

Grow raid5 lvm by adding extra disks

I have 3 drives that I want in raid5 to get the most space utilization while still allowing a disk failure. But I want to be able to expand the array later when I have more disks (likely up to 7 ...
cclloyd's user avatar
  • 613
0 votes
1 answer
597 views

How do I resolve this LVM issue in Ubuntu on a USB External Drive?

I'll try to be brief and succinct. I recently wiped my Ubuntu server and re-installed 20.04 on an older Proliant DL360. This system had two seagate external USB drives attached to it which store a ...
Jon Griffith's user avatar
0 votes
0 answers
790 views

LVM Logical Volumes will not activate on Cloudlinux 7.8

Recently, after a reboot, the system landed in Emergency Mode. The cause appears to be that the system is failing to mount a few of the disks as defined in /etc/fstab. These disks are Logical Volumes. ...
Pierowheelz's user avatar
0 votes
0 answers
50 views

Extend LVM partition

I need to extend existing LVM mounted to /opt. I've created new volume sdb2 and mounted it to /opt, but disk space in df -h output still the same. What esle should I do? lsblk output: └─sda3 ...
John Brown's user avatar
0 votes
0 answers
1k views

DD of LVM Partition to another disk drive not working - no space left on device

I have a vmdk attached to my Linux VM instance (/dev/sda). The disk has 2 partitions, as shown below: Disk /dev/sda: 17.2 GB, 17179869184 bytes, 33554432 sectors Units = sectors of 1 * 512 = 512 ...
jcwp's user avatar
  • 1
0 votes
0 answers
223 views

Missing creation time for LVM logical volume

One of our storage has an lvm volume group on which multiple logical volumes are not set the creating host name and time (LV Creation host, time attribute). These were created quite a long time ago, ...
Laszlo Malina's user avatar
0 votes
1 answer
588 views

How can I extend lvm on centos with default partitioning?

I have a centos 7 OS on VM with default partitioning like this: enter image description here NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1T 0 disk sda1 ...
Ali Namin's user avatar
0 votes
1 answer
862 views

Ubuntu Kickstart - LVM Partitioning using two HDD's not working and fdisk -l output makes no sense on successful single disk deploy

I have read so many kickstart configs and pressed recipes that my head is spinning, and I just need some help or clarification regarding this. Before I go too much into the config, the gist is that I ...
PM5K's user avatar
  • 101
0 votes
0 answers
777 views

Steps to extend CentOS v8 VM disk space on the fly without data loss?

I need some steps I can follow from the Putty session so I can extend the CentOS v8 VM without losing its data? I have already extended the disk space in the VMDK into 60 GB from its initial 40 GB. [...
Senior Systems Engineer's user avatar
0 votes
0 answers
1k views

terraform - shall one use simple disk or linux LVM?

Is there any drawback of using LVM disks in terraform managed virtual machines? Currently I come to the project where all disks are simple linux disks, but terraform is unable to resize them up ...
Wojtas.Zet's user avatar
0 votes
0 answers
365 views

How to reduce size of LVM partition and create another partition?

I have a standard parition and lvm partition on my disk /dev/sda [root@server1 ~]# fdisk -l Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors Units: sectors of 1 * 512 = 512 bytes Sector size ...
meallhour's user avatar
  • 121
0 votes
0 answers
69 views

Extend mirrored LV onto one PV

Legend: Crummy homemade LVM Legend Mixed: Mixed LV I need to add space to an existing 1TB mirrored LV (2 1TB disks) with a new 2TB disk yielding 1+2=3TB. How do I do this? I can't move my data to ...
jkoop's user avatar
  • 29
0 votes
0 answers
161 views

Folder in Ubuntu Became a File and the other Show Question Mark in Owner/Group

I encountered a very weird issue, appreciate if someone could help. One of my folder stored in a LVM2 XFS filesystem (mdadm RAID6), silently became a file and a folder showing question mark on both ...
teclinux's user avatar
0 votes
0 answers
454 views

Centos 7 - Shrink size of LVM Partition

I have a Centos 7 VM which was built from an OVA template. I have it running under Virtualbox. Issue I have is the VM has a dynamic disk of 200G - but only 4 Gb used. I want to shrink the partition to ...
Adam's user avatar
  • 11
0 votes
0 answers
169 views

LVM not able to add free space to Logical Volume

--- Volume group --- VG Name BKMASTWS01-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status ...
Mohammed Lokhandwala's user avatar
0 votes
0 answers
143 views

Is free disk space in a LVM volume group required?

I installed Proxmox and experimenting around with it and noticed that it keeps some free space on the LVM volume group by default. I wonder why this is? Does LVM need this or something? because is was ...
CodeNinja's user avatar
  • 325
0 votes
0 answers
30 views

How can I merge several logical volumes into a new logical volume on another disk online? Bonus curveball, all the lv's are /var folders

I have two virtual disks sda and sdb on an rhel7 VM. My /var and /var/log folders are both constrained by the sizes of their initial provisioned logical volumes. sda is partitioned into an xfs ...
Tyler Clendenin's user avatar
0 votes
1 answer
838 views

pvmove to smaller drive?

I am running on CentOS 7, lvm, with an XFS formatted root drive. As originally set up, the server had a single large root volume that contained both the OS and the data. The data has now grown, and I ...
ibrewster's user avatar
  • 397
0 votes
0 answers
424 views

After resize and after reduce get error on parted

Scenario I expanded the disk space, from a kvm in proxmox. By mistake expand instead of 50 GB expand 500GB Well, when I did the vps check with dmesg | grep vdb and with fdisk -l /dev/vdb | grep ^/...
abkrim's user avatar
  • 416
0 votes
1 answer
492 views

LUKS encryption on which layer?

Option1: Linux Partition -> LUKS -> LVM Option2: Linux Partition -> LVM -> LUKS Which stack is better from system load aspects? Background: On my Linux server (CPU AMD Opteron 6338P, LSI 3ware SAS /...
questor's user avatar
0 votes
2 answers
873 views

Resizing Ubuntu server LVM on a VPS

I just subscribed for a Ubuntu 18.04 server, it is advertised as 20 Gb disk space but my root LVM is only 3.9 Gb. As you can see below the sda3 actualy has 20 Gb but the root ubuntu--vg-ubuntu--lvm ...
Ross Dimitri's user avatar
0 votes
1 answer
414 views

What's the reason behind having LVM activation mode set to degraded by default?

Out of curiosity, why is this root@pve:~# lvmconfig --type default activation/activation_mode activation_mode="degraded" degraded, by default? Doesn't this configuration expose users to the risk of ...
Chris's user avatar
  • 270
0 votes
1 answer
193 views

Restore root on LVM with one disk (seperate boot partition)

I did a stupid thing and accidentally removed my LVM partition in parted. Since this was a single disk LVM, parted rescue finds an EXT2 partition in the sectors, but I am unable to boot from that ...
Anže Jenšterle's user avatar
0 votes
2 answers
824 views

Boot from other root partition to shrink original root filesystem on LVM

How can I change the root partition for Debian 10 to boot from? I'd like to decrease the size of my root filesystem that sits on an LVM logical volume from remote, that is over SSH only and without ...
NoMad's user avatar
  • 312
0 votes
0 answers
439 views

I'm not be able to add LVM partition in iSCSI shared storage

Hey guys currently I'm using proxmox 6.1 and i have created a cluster for high availability. I have one shared iSCSI storage from NetAPP, i want to create a LVM on that iSCSI storage but its asking ...
John The Hacker's user avatar
0 votes
1 answer
812 views

How to temporarily mount a broken off mirror leg from a LVM partition

I mirrored my filesystem onto 3 drives using LVM mirror. I broke off one of it's legs, by simply unplugging an external drive, before upgrading Ubuntu to 19.10. So I started the upgrade, but having ...
MeSo2's user avatar
  • 274
0 votes
1 answer
342 views

Optimal RAID + LVM configuration

I'm new to LVM and RAID management. I've got a Linux machine (Ubuntu 18.04) with two 4Tb HDDs that are joined into an LVM group. That PC has also two 1.8 Tb SSDs. OS is installed on a separate NVME ...
wl2776's user avatar
  • 181
0 votes
0 answers
1k views

Reduce Volume AWS EBS EC2 LVM Partition

Problem I have a physical machine with 1 TB disk and it was copied via command line dd, the disk was imported into S3 and successfully converted to AMI. But now I have a cost problem and I need to ...
Lucas's user avatar
  • 1
0 votes
0 answers
528 views

Adding drive to extend root file system when using LVM on LUKS

I have an 18.04 ubuntu based system using their LVM on top of LUKS setup on one drive, and I want to add an additional drive /dev/sdb to extend root (i.e. /). VG name lubuntu-vg, LV name root, LV ...
Jan Nell's user avatar
0 votes
1 answer
258 views

How to expand EXT4 volume in a centos KVM guest after resizing the guest's LV

I have a fedora KVM host with all the centos VMs in their own LVs. I'd like to expand an EXT4 home volume on a guest that resides on a LV called "thelogicalvolume" in volume group "thevolumegroup"... ...
rev6's user avatar
  • 1
0 votes
1 answer
528 views

The most efficient way to save LVM snapshot to a file

I have a tricky problem with a backup strategy. The problem is with disk performance and so far I cannot do a lot about it (as well as meddle with, let's call it, pipeline design), so I was wondering ...
theo's user avatar
  • 25
0 votes
1 answer
390 views

LVM Second Logical Extents is Missing

Edit 1: Just to clarify no data was written to the new extents. I know this because the admin grew the file system with fdisk right after doing the lvextend, he then rebooted for the changes to take ...
spaghettiwestern's user avatar

1
4 5
6
7 8