lvm
vgcreate
pvdisplay
lvdisplay
lvcreate
Resize EC2 file system with LVM
pvcreate Device /dev/sdb excluded by a filter
How to Remove a logical volume
Mounting partition stored inside Logical Volume
How to add physical volume and resize LVM
Some related commands
cfdisk vgextend vg /dev/sda5 lvextend -l+100%FREE /dev/vg/lv_root resize2fs /dev/mapper/vg-lv_root
When I try to mount a partition I get error
mount: unknown filesystem type ‘LVM2_member’
This is because the partition is LVM. Got it fixed with
root@sysresccd /root % parted -l Model: ATA Samsung SSD 850 (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 3146kB 2097kB primary 2 3146kB 527MB 524MB primary ext2 boot 3 527MB 500GB 500GB primary lvm root@sysresccd /root % mount /dev/sda3 /mnt mount: unknown filesystem type 'LVM2_member' root@sysresccd /root % lvmdiskscan WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it! /dev/loop0 [ 275.14 MiB] /dev/mapper/vg-swap [ 15.75 GiB] /dev/sda1 [ 2.00 MiB] /dev/mapper/vg-tmp [ 1.00 GiB] /dev/sda2 [ 500.00 MiB] /dev/mapper/vg-root [ 448.46 GiB] /dev/sda3 [ 465.27 GiB] LVM physical volume 3 disks 3 partitions 0 LVM physical volume whole disks 1 LVM physical volume root@sysresccd /root % lvscan WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it! ACTIVE '/dev/vg/swap' [15.75 GiB] inherit ACTIVE '/dev/vg/tmp' [1.00 GiB] inherit ACTIVE '/dev/vg/root' [448.46 GiB] inherit root@sysresccd /root % mount /dev/vg/root /mnt root@sysresccd /root %