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.
Questions tagged [lvm]
1504 questions
18
votes
5 answers
How to keep or drop LVM snapshot?
I have made an LVM snapshop by
lvcreate --name snap --size 10G -s /dev/vg00/vm
What command should I write if I want to drop the snapshot, and not keep the changes that have happened since the snapshot?
And what command should I write to roll the…

Sandra
- 10,303
- 38
- 112
- 165
18
votes
6 answers
Commit or revert a Linux LVM snapshot?
I'm about to perform an experimental upgrade on my CentOS 5 server. If the upgrade fails, I want to be able to back out the changes to the filesystem. This scenario seems similar to the example in Section 3.8 of the LVM HOWTO for LVM2 read-write…

Shewfig
- 471
- 1
- 3
- 8
17
votes
6 answers
pvresize doesn't seem to resize after increasing the size of the underlying block device
I increased the size of the partition which I'm using as a LVM PV, but running pvresize doesn't seem to see the extra space:
cuttle:~# fdisk -l /dev/vda
Disk /dev/vda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units =…

stew
- 9,388
- 1
- 30
- 43
17
votes
4 answers
is it possible to simultaneously mount 2 LVM volumes that are exact copies of each other (same UUIDs)?
I have cloned (using dd) the hard drive in a live system onto several multiple backup hard drives. The root partition in the live system is a LVM volume. The backup copies are intended to be drop-in replacements for the original and this means they…

laramichaels
- 273
- 1
- 2
- 6
16
votes
1 answer
linux + lvextend vs lvresize - what are the differences
what are the diffrences between lvextend to lvresize as the below example?
lvextend -L+1m /dev/mapper/rootvg-home
lvresize -L+1m /dev/mapper/rootvg-home
dose the both examples do exactly the same ? ( increase +1M on /home )
second:
when I use the…

dandan
- 1,081
- 4
- 13
- 21
16
votes
8 answers
Optimal UNIX File System Partition + Setup Strategy
When partitioning a new system disk(s) for UNIX, what is your prefered strategy for both desktop and/or servers?
Please include disk partition layout, file system format(s) and options, mount points, RAID level(s), LVM groups and volumes,…

cmcginty
- 1,303
- 15
- 24
16
votes
5 answers
Is online disk resize possible with KVM?
We're evaluting KVM for Linux virtualization on a few projects. All is going well so far. But one of our requirements is the ability to add disk space to a running guest without rebooting or taking it offline. Is this possible with KVM?
The only…

Eil
- 389
- 2
- 5
- 12
15
votes
1 answer
Logical volume attributes
I've used lxc-clone command to clone my lvm-based container (test_lvm was copied to create u33). Container works fine, but the output of sudo lvs confuses me:
LV VG Attr LSize Pool Origin Data% Move Log…

maniaque
- 730
- 2
- 6
- 13
15
votes
1 answer
Resizing a LUKS encrypted volume
I have a 500GiB ext4 filesystem on top of LUKS on top of an LVM LV. I want to resize the LV to 100GiB. I know how to resize ext4 on top of an LVM LV, but how do I deal with the LUKS volume?
mgorven@moab:~% sudo lvdisplay /dev/moab/backup
---…

mgorven
- 30,615
- 7
- 79
- 122
15
votes
6 answers
Moving a Logical Volume directly from one server to another over the network?
I have a KVM host machine with several VMs on it. Each VM uses a Logical Volume on the host. I need to copy the LVs to another host machine.
Normally, I would use something like:
dd if=/the/logical-volume of=/some/path/machine.dd
To turn the LV…

Nick
- 4,503
- 29
- 69
- 97
15
votes
2 answers
SSD, Erase Block Size & LVM: PV on raw device, Alignment
I want to install a new SSD and use the the whole device as a PV for LVM - in other words: i don't plan to put even one partition on this device. So aligning partitions on the erase blocks is not needed.
Question(s)
Is it sufficient to set…

m.sr
- 1,060
- 1
- 8
- 19
14
votes
3 answers
Linux device-mapper maps LVM PV nested inside LV when taking snapshot
Which is really messing with my plan to back up this machine...
I have a server which is a KVM hypervisor to several virtual machines. One of these is running Docker. It has its Docker volumes on /dev/vdb, which is set up as an LVM PV, on which…

Michael Hampton
- 244,070
- 43
- 506
- 972
14
votes
4 answers
Improving IO with FlashCache
I have a server with 2 HDD's (2x 1 TB), running in RAID 1 (SW-RAID). I want to improve IO performance by using flashcache. There are running KVM virtual machines on it, using LVM.
Regarding this, I have the following questions:
Will this even work?…

Devator
- 1,473
- 4
- 18
- 37
14
votes
8 answers
Linux - RAM Disk as part of a Mirrored Logical Volume
We have a server with 64GB of total RAM, applications are using typically a maximum of 30GB of that available RAM. One of those applications deals with a lot of flat files, and we're having throughput issues, namely waiting on disk I/O. While…

Shayne Fitzgerald
- 143
- 4
13
votes
3 answers
Easy way to transfer files between host and LXC container on LVM
This is an easy task in the case of containers that share the same filesystem but I'm not sure what would be the proper approach for containers that use LVM disks.
I know I could use rsync or scp but I would like to know if it is possible to do this…

s3v3n
- 336
- 2
- 4
- 13