Logical Volume Management provides storage abstraction, a generalization of disk partitioning.

learn more… | top users | synonyms

4
votes
2answers
1k views

How do i extend a partition with a LVM and the contained physical volume and logical volume?

On my 240 GB SSD i had at first two partitions, one containing the Logical Volume with Linux Mint and the other had contained a NTFS partition to share with Windows. Now i removed the NTFS partition ...
4
votes
1answer
527 views

Alternatives to LVM

I was thinking about alternatives to combine several HDDs together. The only options I know so far are using LVM and/or RAID. The thing is, using LVM, I will most probably lose all data, if one ...
4
votes
4answers
2k views

Recovering overwritten LVM metadata

Yesterday I was trying using the Debian install in rescue mode in order to fix my Grub (The menu-item for Debian was suddenly gone). Now I wasn't able to fix it and didn't have a lot of time, so I ...
4
votes
1answer
392 views

What filesystem has best support for shrinking?

Most mainstream filesystems can be grown fairly reliably, but what if I think I would like to shrink in future? XFS is a non runner. Reiser seems to have good support but gives scary BETA warnings , ...
4
votes
1answer
460 views

Resizing logical volume with no free extents but with free disk space

I have a 7.9 TB logical volume formatted with XFS filesystem. I have 8 1 TB RAID devices as physical volumes, and 1 volume group that contains all of these devices. I have 2.5 TB free space on my ...
4
votes
1answer
2k views

LVM Mirrored Logical Volume Performance

I read that when mirroring a logical volume a log of some sort is used to keep the files in sync. You can either set it so this log is in a separate physical volume or in memory. I also read that if ...
4
votes
2answers
626 views

Is there any performance penalty to having multiple segments for one volume in LVM?

We have a big drive that we've split up using LVM. We allocated one segment to the root filesystem and several other segments to other filesystems. Then we wanted to add more space to the root ...
4
votes
1answer
286 views

Why does activation of LVM partition with large snapshot takes long time?

After creating large snapshot (I assume it drifted about 30GB from the original) I noticed that vgchange -ay took noticeable longer (to the point I thought computer hanged). What does the activation ...
4
votes
0answers
74 views

Why does hdparm see two different values for the size of a drive?

I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
3
votes
1answer
305 views

Not able to extend the size of an LVM logical volume

During RedHat installation, I created one volume group with two logical volumes in it. Volume Group Name = VolGroup00 LVMs = LogVol00 and LogVol01 LogVol00 size = 48G LogVol01 size = ...
3
votes
3answers
1k views

Copying an HDD to a larger one by dd

I'm trying to copy an entire HDD which has IBM PC-style partition table to a larger one by dd on GNU/Linux. The questions are: Can I use the additional space on the larger disk by changing the ...
3
votes
1answer
1k views

Why is there a mismatch between size reported by LVM and the size reported by df -h?

I'm new to LVM and have been very confused by this: I am transfering a large file to a partition that I thought had about 1.5 terabytes of space on it. Near the end of the transfer, rsync exits with ...
3
votes
2answers
1k views

How can I find out the free space on an LVM PV in human readable format?

I'm looking for a way I can get the free space on an LVM physical volume without having to use a calculator. I know the pvdisplay command will show me the size of a PE size as well as the free PE, ...
3
votes
2answers
354 views

LVM with SSD and SATA hard disks

Is it possible to create LVM partitions for both SSD and SATA hard disks? I mean if there isn't any conflicts.
3
votes
3answers
2k views

Temporary restore LVM snapshot of root

I have a snapshot of the root filesystem that I want to boot with - bring the machine into a state it was a few days ago, run some tests and then go back to where I am right now. I tried editing ...
3
votes
2answers
203 views

Can lvm2 volumes based on device names like sda, sdb etc be mounted if their names change?

Lets say I would like to make a large volume from external usb drives. I create the lvm volume on drives that have been given certain device names sdf sdg or whatever and at some point they are ...
3
votes
1answer
1k views

What's the easiest way to decrypt a disk partition?

I made a mistake of encrypting the entire LVM physical volume (contains both home, root, and swap) when installing a CentOS 6.4 (2.6.32-358.6.1.el6.x86_64) box. I soon came to realize that moving ...
3
votes
1answer
2k views

Combine LVM logical volumes?

It's a server with 128GB SSD. There are two LVs, / and /home. I want to combine them into one since the space is limited. I checked the HOW-TO but didn't found the tutorial for this task. How can ...
3
votes
1answer
967 views

dual booting centos5.5 and fedora

I already have CentOS 5.5 on my system whose hard disk is ~500GB. I have tried to dual boot with Fedora 16. while installing fedora 16 I have created a ~250GB and ~4GB partitions for "/" and swap. The ...
3
votes
1answer
3k views

Uninstall the Encrypted LVM function to remove the prompted password entry during Ubuntu Boot

When I installed Ubuntu 11.04 and I was offered the option of enabling "encrypted LVM" for my hard drive. After choosing that option, I am prompted for my password during boot to decrypt the LVM. ...
3
votes
1answer
1k views

LVM2 partition alignment

How to do the following with Linux tools : LVM partition alignment and alignment of partition on LVM ? What in case where I want to setup LVM partition (for "pv") and then partitions ? To be more ...
3
votes
1answer
88 views

Removal of HDD causes kernel panic

I recently added a 2nd HDD to a system and then proceeded to do a clean install on to this 2nd HDD of CentOS 6.5. The original system was CentOS 5.9. My plan was to leave the original HDD in place so ...
3
votes
2answers
284 views

Grow LVM RAID10?

RHEL LVM has supported RAID4/5/6 as of 6.3 and RAID10 as of 6.4. It's well-known that mdadm won't let you --grow raid10, my question is whether this is a limitation of LVM RAID10 too? If it is ...
3
votes
1answer
383 views

SSD as a read cache for FREQUENTLY read data

I'm looking for ways to make use of an SSD to speed up my system. In “Linux equivalent to ReadyBoost?” (and the research that triggered for me) I've learned about bcache, dm-cache and EnhanceIO. All ...
3
votes
1answer
205 views

Open luks-encrypted partition from virtual DomU LVM disk containing another LVM

I've gotten myself in a bit of a bind, here. A while ago I set up an encrypted Unbuntu 13.04 under Xen. It's virtual disk is an LVM LV. This LV was presented to the DomU as a (whole) physical disk ...
3
votes
2answers
1k views

Move root filesystem on a logical volume to a different disk

I'm trying to move my root LV to a new VG on my brand new SSD and it's driving me crazy. I think I pulled it off with rsync, but now grub is refusing to register the new boot option off of ...
3
votes
1answer
8k views

gparted live CD can't resize a partition?

I recently ran out of space on a VirtualBox VM (CentOS guest) managed by Vagrant. It was using a .vmdk image, so I couldn't dynamically resize it. Following these instructions, I cloned the old image ...
3
votes
1answer
621 views

Create a volume group from a logical volume instead of a physical volume

Is it possible to create a volume group from a logical volume instead of a physical volume? If so, are there any pitfalls in doing so? Use case: Installing OpenStack Compute on a a system that ...
3
votes
1answer
422 views

I can see my LVM but I can't initialize it. Missing UUID of one of the disks

I have had a 2 disk LVM called Data going for about 6 months, and I recently bought a third disk. I installed the disk in the machine, and wanted to format it and extend the lvm onto it, like I've ...
3
votes
1answer
400 views

Using LVM with SSD and SATA drives

I saw in this question that it is possible to place both a SSD and a standard SATA hard drive into a single LVM volume group (VG). How does this affect performance? Is there a way to force the OS ...
3
votes
1answer
119 views

What is the proper way to shrink a LVM partition?

I want to shrink a Linux LVM partition from 200GB to 150GB. A test is carried out with the following steps: Shrink a file system in a logical volume with reszie2fs Shrink the logical volume with ...
3
votes
1answer
1k views

Install grub on LV container for VM

I'm having difficult time installing grub in LVM LV container for a VM. This is the partition table: # parted /dev/mgtvg/linux2os print Model: Linux device-mapper (linear) (dm) Disk /dev/dm-7: 129GB ...
3
votes
2answers
1k views

iSCSI device mapped to different SCSI device

I have an iSCSI disk array connected to a server (Ubuntu). When I login with iscsiadm -m node --login -p 192.168.1.240 the device used to appear as /dev/sdb. I created a volume group with LVM using ...
3
votes
0answers
64 views

RAIDing with LVM vs MDRAID - pros and cons?

In his answer to the question "mixed raid types", HBruijn suggests using LVM to implement RAID vs the more standard MDRAID. After a little investigation, it seems LVM also supports RAID ...
3
votes
1answer
56 views

LVM - failed to install bootloader

I have Mint 16 installed on an LVM system. I originally had 3 logical volumes: lvswap, lvrootone, and lvstorage, with Mint 16 installed on lvrootone. I was hoping to use this scheme to upgrade and try ...
3
votes
1answer
790 views

Can't resize lvm volume “lv_home is in use. e2fsck: Cannot continue, aborting”

I would like to shrink my logical volume for home directory, so that I can extend volume for root. df -h /dev/mapper/vg_mitoscomp-lv_root 50G 33G 15G 70% / /dev/mapper/vg_mitoscomp-lv_home ...
3
votes
0answers
124 views

Unable to close a Luks partition

For backup purposes, I have "snapshotted" a LVM partition. This partition was crypted so I have opened this Luks partition (snapshot) in order to do my backup. The problem is that I have forgotten to ...
3
votes
1answer
43 views

Verify that partition is encrypted

I just installed Debian and as far as I can remember I encrypted my home-partition using LVM. During the boot process I haven't been asked to enter the password. Is there any way to check whether ...
3
votes
0answers
91 views

LVM RAID 1 for root [closed]

I have LVM RAID 1 (not mdadm RAID 1, but exactly LVM2 RAID 1) for my root partition. I would like to make my system boot without either of the HDDs where the underlying PVs of the root LVM partition ...
3
votes
1answer
436 views

Can you create a volumegroup in LVM that all the Logical volumes created under it will be thin provisioned?

I would like to know if it is possible to create a volumegroup in LVM that all the Logical volumes created under it will be thin provisioned? This will be used on RHEL 6 which does include thin ...
3
votes
0answers
185 views

Setup Cloudmin on Centos installed in LVM

I installed CentOS 6 with default LVM partition pattern. according to this pattern Can I use Cloudmin and store KVM Disks in LVM as Logical Volume? I think Cloudmin requires creating new logical ...
3
votes
1answer
250 views

Create Logical Volume Snapshot at boot and before mount

I'm using Kubuntu 11.10 and before I upgrade to 12.04, I want to make snapshots of my filesystems. Coming to think of that, I realized that it can be very useful to create snapshots of logical volumes ...
3
votes
0answers
5k views

LVM2 can not wake up suspended logical volume

Read my story below. I'm using LVM2 with following information: Scan for VG: # vgs VG #PV #LV #SN Attr VSize VFree unix 1 1 0 wz--n- 115.00g 45.00g Scan for LV # lvs LV ...
2
votes
2answers
5k views

How to Expand LVM2 Partition in Fedora Linux

I've been using Fedora 15 on a VMWare virtual machine. Over time, the disk space I initially allocated for the file system began to run out, only 12GB left. I've expanded the disk space an extra 25GB. ...
2
votes
2answers
237 views

after adding one more physical volume and enlarging logical volume, grub fails

Several years ago I installed Debian on my 500 GiB hard disk. During installation I chose to have encrypted filesystem. So installer created one small unencrypted boot partition (I guess that grub ...
2
votes
2answers
90 views

How does grub2 load the kernel from an LVM volume?

Grub2 is able to load the kernel even if /boot is placed on an LVM volume. To use this feature one needs to add insmod lvm (the module can be on the grub bios partition that is not on an LVM volume) ...
2
votes
1answer
466 views

Why are there symlinks in /dev? (LVM)

[root@SERVER ~] ls -la /dev/vg/root lrwxrwxrwx 1 root root 17 2012-10-28 10:29 /dev/vg/root -> ../mapper/vg-root [root@SERVER ~] QUESTION: Why are there symlinks? Why there couldn't be only 1 ...
2
votes
2answers
325 views

How come lvextend allocates less than the specified amount of space?

I am trying to extend a volume, let's call it /dev/vol1. I see the initial volume size is 500MB when I call: df --block-size=M /dev/vol1 then to extend it 100MB more I call: lvextend -L+100M ...
2
votes
1answer
422 views

How to extend an ext3 partition over LVM inside a file (virtual machine)?

I need to extend the root partition of a virtual machine (VM) using LVM (Logical Volume Manager). I can afford a few minutes of downtime so a VM shutdown/reboot is fine. The virtual hard disk is in ...
2
votes
2answers
237 views

Resizing LVM within a in KVM-based VPS

I have a VPS (based on KVM, not sure which storage technology) for about two years now. It's mainly a learning machine, a utility proxy, or a seldom-used VPN gate, or whatever--no real work, no ...