BIP KB Tag: lvm

How To Get Your LVM To Show Up In Single User Mode

When booting Linux into single user mode or rescue mode, you will find that unless the distro was found and enabled the logical volumes, you won't see any devices. This makes it a fun task when you need to mount, scan, resize a partition. Below are instructions on enabling your logical volumes. lvm vgscan lvm vgchange -ay lvm lvs It's as simple as that, now you should see your normal LVM devices in /dev Example:...
By justin, January 24, 2015


How To Shrink An LVM Volume

The following steps will show you how to shrink an LVM volume. In this example, we will be shrinking volume VolGroup00-LogVol00 down to 20GB. Please Note: This can and will cause data loss if performed improperly or on a volume that you attempt to shrink below the current volume usage. With that said, the steps are as follows: umount /dev/mapper/VolGroup00-LogVol00 e2fsck -f /dev/mapper/VolGroup00-LogVol00 resize2fs /dev/mapper/VolGr...
By tilisha, January 24, 2015