Logical Volume Manager for the Linux kernel manages disk drives and similar mass-storage devices, in particular large ones. "Volume" refers to a disk drive or partition thereof.
Questions tagged [lvm]
453 questions
72
votes
7 answers
How to mount an LVM volume?
I'm trying to mount an LVM2 volume in Linux, but all the instructions I see online say to mount the Volume Group, such as:
mkdir -p /mnt/VolGroup00/LogVol00
but I don't know how to figure out the name of it. I see the drive in Palimpsest, and…
99miles
- 887
49
votes
2 answers
Gparted cannot resize extended or LVM partition
I created a VM using VirtualBox and realized it was too small. After some time I managed to create a new, bigger hard drive.
Live GParted CD image (v.022):
Now I need to integrate the unallocated space to the /dev/sda5 partition.
Right-clicking…
papnikol
- 1,681
30
votes
4 answers
No more space in root filesystem, how could I increase the size?
This is my filesystem :
$ df -h -x tmpfs -x devtmpfs
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-root 9.8G 7.6G 1.7G 83% /
/dev/mapper/fedora-home 50G 27G 21G 57% /home
/dev/sda9 1022M 8.4M…
Dimitri Danilov
- 415
28
votes
2 answers
Best order of RAID, LVM and LUKS
I am going to install a file server with Debian GNU/Linux 8.
I want to have software RAID-1 using mdadm as well as encrypted disks using LUKS. I also like the flexibility of having LVM.
There are different ways of doing this. One way is to: First…
Thomas
- 455
21
votes
3 answers
How to make suspend to RAM secure on Ubuntu with full disk encryption (LVM on top of LUKS)?
I'm on Ubuntu 13.04 using full disk encryption (LVM on top of LUKS).
I would like to incorporate luksSuspend into the suspend procedure (and later use luksResume) so that I can suspend to RAM without leaving key material on memory and the root…
Jonas Malaco
- 379
- 2
- 7
21
votes
4 answers
Is there a simple way to move/copy a logical volume from one volume group to another? (LVM2)
I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to…
jkp
- 385
19
votes
4 answers
Fastest way to convert an ext4 formatted disk to LVM with ext4 on it?
I'm currently doing cp -aR to copy data from my (99% full) 1TB ext4 formatted disk to a new LVM-with-ext4-on-it disk. It's taking forever.
Is there any way to attempt to "convert" the disk in place? I'm on EC2 so backing up takes minutes.
Or…
Max
- 729
13
votes
2 answers
How do you add more space to a Fedora (LVM) partition?
In a nutshell, i have a VM that ran out of space. I increased the size of the VM's harddrive to be 4 times bigger but the OS partition is still only using 1x the space. I need to change the LVM partition to take up the extra 4x space but I don't…
Trevor Boyd Smith
- 2,924
13
votes
4 answers
How to make a redundant desktop system with daily snapshots? (Is btrfs ready for use?)
I want to configure a desktop system in which the home filesystem would be redundant (e.g. RAID-1), and would have weekly snapshots taken. I've already done this with ZFS, the snapshot system is wonderful, and with send/recv you can easily create…
TestUser16418
- 950
12
votes
3 answers
Does Linux support TRIM for SSDs on LVM?
I am getting a SSD and need to know, does Linux support TRIM if I set up LVM on top of the SSD? I'm finding conflicting information. I'm currently running Ubuntu 10.10 with kernel 2.6.35-28.
Nick
11
votes
2 answers
How can I use one lvmcache "cache pool LV" for multiple origin LVs?
I have a shiny new computer with a not-that-large SSD (120GB) and two gigantic spinning-rust HDs (3TB each). I want to partition it as follows:
swap (~128GB), operating system (~128GB), and data (all the rest) partitions striped across the…
zwol
- 1,268
11
votes
3 answers
LVM Difference in paths for mounts
So I can do the following:
mount /dev/datavg/datalv /mnt
or
mount /dev/mapper/datavg-datalv /mnt
Are these the same? Is there an advantage to one over the other? Is one considered better practice to use?
HayekSplosives
- 613
11
votes
1 answer
A ZFS or LVM or MD redundant heterogeneous storage proposal
I have the same problem most people have: how to create a reliable personal storage solution with the fact that:
Hard drives fail with alarming regularity. Losing files is unacceptable.
I will buy a new HDD from time to time. Inevitably, the best…
Bob McElrath
- 151
11
votes
1 answer
How to mount an LVM volume from a dd/raw/vmdk image?
Input: RAW/DD Image of an HDD. fdisk -l shows partitions
fdisk -l image.dd
Disk image.dd: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size…
gies0r
- 411
11
votes
2 answers
LVM: Two or more volume groups (VGs) on one physical volume (PV)
I have just a short question about LVM.
A physical volume is a Partition or a whole Disk. A volume group is a container for a least one physical volume.
So I know that a volume group can have more than one physical volume for example 3 partitions on…
Mkay
- 111