abg-ng linux # pvdisplay --- Physical volume --- PV Name /dev/sda5 VG Name vg PV Size 101.94 MB / not usable 1.94 MB Allocatable yes (but full) PE Size (KByte) 4096 Total PE 25 Free PE 0 Allocated PE 25 PV UUID MiLwIY-D4Wc-39oN-CXpw-Yszo-Iz8m-rTCeK0 --- Physical volume --- PV Name /dev/sda6 VG Name vg PV Size 101.94 MB / not usable 1.94 MB Allocatable yes PE Size (KByte) 4096 Total PE 25 Free PE 2 Allocated PE 23 PV UUID LbmCCF-J1Rr-sTeE-dUX6-M1Xc-ims7-2aRcAB --- NEW Physical volume --- PV Name /dev/sda7 VG Name PV Size 243.14 MB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID O0D4fi-LXXY-9U9h-xmcc-5Nak-MCHg-ad6wAX abg-ng linux # pvcreate /dev/sda7 Physical volume "/dev/sda7" successfully created abg-ng linux # vgextend vg /dev/sda7 Volume group "vg" successfully extended abg-ng linux # pvmove -v /dev/sda5 Wiping cache of LVM-capable devices Finding volume group "vg" Archiving volume group "vg" metadata (seqno 4). Creating logical volume pvmove0 Moving 25 extents of logical volume vg/test Found volume group "vg" Updating volume group metadata Creating volume group backup "/etc/lvm/backup/vg" (seqno 5). Found volume group "vg" Found volume group "vg" Suspending vg-test (254:0) without device flush Found volume group "vg" Creating vg-pvmove0 Loading vg-pvmove0 table Resuming vg-pvmove0 (254:1) Found volume group "vg" Loading vg-pvmove0 table Suppressed vg-pvmove0 identical table reload. Loading vg-test table Resuming vg-test (254:0) Checking progress every 15 seconds /dev/sda5: Moved: 100.0% Found volume group "vg" Found volume group "vg" Loading vg-test table Suspending vg-test (254:0) without device flush Suspending vg-pvmove0 (254:1) without device flush Found volume group "vg" Found volume group "vg" Found volume group "vg" Resuming vg-pvmove0 (254:1) Found volume group "vg" Resuming vg-test (254:0) Found volume group "vg" Removing vg-pvmove0 (254:1) Found volume group "vg" Removing temporary pvmove LV Writing out final volume group after pvmove Creating volume group backup "/etc/lvm/backup/vg" (seqno 7). abg-ng linux # pvdisplay --- Physical volume --- PV Name /dev/sda5 VG Name vg PV Size 101.94 MB / not usable 1.94 MB Allocatable yes PE Size (KByte) 4096 Total PE 25 Free PE 25 Allocated PE 0 PV UUID MiLwIY-D4Wc-39oN-CXpw-Yszo-Iz8m-rTCeK0 --- Physical volume --- PV Name /dev/sda6 VG Name vg PV Size 101.94 MB / not usable 1.94 MB Allocatable yes PE Size (KByte) 4096 Total PE 25 Free PE 2 Allocated PE 23 PV UUID LbmCCF-J1Rr-sTeE-dUX6-M1Xc-ims7-2aRcAB --- Physical volume --- PV Name /dev/sda7 VG Name vg PV Size 243.14 MB / not usable 3.14 MB Allocatable yes PE Size (KByte) 4096 Total PE 60 Free PE 35 Allocated PE 25 PV UUID 99nRrw-ducS-IY34-avhv-93Rx-cg1Y-MW6DlM abg-ng linux # vgreduce vg /dev/sda5 Removed "/dev/sda5" from volume group "vg" abg-ng linux # pvdisplay --- Physical volume --- PV Name /dev/sda6 VG Name vg PV Size 101.94 MB / not usable 1.94 MB Allocatable yes PE Size (KByte) 4096 Total PE 25 Free PE 2 Allocated PE 23 PV UUID LbmCCF-J1Rr-sTeE-dUX6-M1Xc-ims7-2aRcAB --- Physical volume --- PV Name /dev/sda7 VG Name vg PV Size 243.14 MB / not usable 3.14 MB Allocatable yes PE Size (KByte) 4096 Total PE 60 Free PE 35 Allocated PE 25 PV UUID 99nRrw-ducS-IY34-avhv-93Rx-cg1Y-MW6DlM --- NEW Physical volume --- PV Name /dev/sda5 VG Name PV Size 101.94 MB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID MiLwIY-D4Wc-39oN-CXpw-Yszo-Iz8m-rTCeK0 abg-ng linux # pvremove /dev/sda5 Labels on physical volume "/dev/sda5" successfully wiped abg-ng linux # pvdisplay --- Physical volume --- PV Name /dev/sda6 VG Name vg PV Size 101.94 MB / not usable 1.94 MB Allocatable yes PE Size (KByte) 4096 Total PE 25 Free PE 2 Allocated PE 23 PV UUID LbmCCF-J1Rr-sTeE-dUX6-M1Xc-ims7-2aRcAB --- Physical volume --- PV Name /dev/sda7 VG Name vg PV Size 243.14 MB / not usable 3.14 MB Allocatable yes PE Size (KByte) 4096 Total PE 60 Free PE 35 Allocated PE 25 PV UUID 99nRrw-ducS-IY34-avhv-93Rx-cg1Y-MW6DlM abg-ng linux # vgreduce vg /dev/sda7 Physical volume "/dev/sda7" still in use