Tag Info

Hot answers tagged

4

The physical volume (PV) is simply the partition with LVM metadata added. You can't create the volume group (VG) without referring to the metadata, thus you have to first create the PV(s) that will be members of the VG. A physical extent (PE) is just that - the actual section of the disk that you're writing to, very similar to an old-style disk CHS ...


3

LVM is built on the device mapper code in Linux. This means that all the LVM commands are actually creating and manipulating device mapper devices. So, the symlink to ../dm-1 is normal. If you are curious about the device mapper, you can inspect its state using dmsetup, e.g. dmsetup info /dev/dm-1. As for why you cannot see the swap device in df, that is ...


1

It is not something I would do online but I think it is possible. I guess you are using ext4. umount /home $ umount /home shrink the /home filesystem $ fsck -f /dev/mapper/VolGroup-lv_home $ resize2fs /dev/mapper/VolGroup-lv_home 80G shrink the /home logical volume $ lvreduce -L -40G /dev/mapper/VolGroup-lv_home resize the /home partition to the size of ...


1

You cannot resize or change at all any partition on a storage device that is currently mounted. That means that your system needs to be shutdown if you intend to modify the root partition (since you cannot unmount it) You will need to boot in an external OS (e.g. using a live-CD) to perform these tasks. I would recommend you to backup any sensible data ...


1

LVM is designed to allow easy resizing and redistributing space in exactly the situation you describe. However, Lambert's answer is incomplete as it fails to mention several things. The outline process you need to follow is: Use resize2fs to reduce the size of the /home filesystem Use lvresize to reduce the size of the /dev/mapper/nice--rack--vg-home ...


1

Any user can get information with lsblk.  It has options that allow you to get simple output, full detailed or customized. Try: lsblk $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 238,5G 0 disk ├─sda1 8:1 0 2M 0 part ├─sda2 ...



Only top voted, non community-wiki answers of a minimum length are eligible