2026-03-12 21:01:38
This commit is contained in:
25
tiddlywiki/LVM example.txt
Executable file
25
tiddlywiki/LVM example.txt
Executable file
@@ -0,0 +1,25 @@
|
||||
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*|" ]
|
||||
|
||||
Reference in New Issue
Block a user