df -h shows filesystem information
Also helpful: system-config-lvm 1)
Remember to look for e.g. samba shares of regarding drives before changing the partition layout. I had a share pointing to a windows drive, which will be vaporized.
| LVM commands | Szenario A 2) | |
|---|---|---|
| Information | pvscan / pvs | |
pvdisplay | ||
vgscan / vgs | ||
vgdisplay | ||
lvscan / lvs | ||
lvdisplay | ||
| Create | pvcreate | 3 |
vgcreate | ||
lvcreate | ||
| Modification | pvmove | 5 |
vgextend / vgreduce | 4 | |
lvextend / lvreduce | ||
| Other | cfdisk | 1 |
umount | 2 | |
resize2fs |
Adding free disc space to lvm:
cfdisk /dev/hdb to create a partition, the type has to be 8e to mark it as LVM controlledumount /dev/hdb1 (assuming you are dealing with hdb1)pvcreate /dev/hdb1 → now there is a physical volumevgextend lvm_vg1 /dev/hdb1 → extend volume group named lvm_vg1 to physical device /dev/hdb1pvmove /dev/hda4 /dev/hdb1 → move contents of /dev/hda4 to /dev/hdb1Entferne Datenträger aus Datenträgergruppe - using system-config-lvm toolpvremove /dev/hda4resize2fs (ext2/3)