Files
notes/tiddlywiki/LVM example.txt
2026-03-12 22:01:38 +01:00

26 lines
429 B
Plaintext
Executable File

lvdisplay
vgdisplay
pvdisplay
pvcreate /dev/xvdd1
pvcreate /dev/xvde1
vgextend vg_pgdata /dev/xvdd1 /dev/xvde1
lvextend -l +100%FREE /dev/vg_pgdata/lv_pgdata
-- For EXT4 partitions:
resize2fs /dev/vg_pgdata/lv_pgdata
-- For XFS:
xfs_growfs -d /dev/vg_pgdata/lv_pgdata
-- to avoid WARNING: Not using lvmetad because duplicate PVs were found
-- add in /etc/lvm/lvm.conf
global_filter = [ "a|/dev/xvd*|", "r|/dev/sd*|" ]