Article : reduce_pv_from_vg

[root@host ~]# cat /etc/mdadm.conf

# mdadm.conf written out by anaconda
DEVICE partitions
MAILADDR root
ARRAY /dev/md2 level=raid1 num-devices=2 uuid=a68d8ad9:1dbb6939:69d6a8d5:d23c3295
ARRAY /dev/md0 level=raid1 num-devices=2 uuid=335c749e:6dddfa55:91dc7278:de44042c
ARRAY /dev/md1 level=raid1 num-devices=2 uuid=5028968a:6596d2b1:b39e9355:0a6fa80f
ARRAY /dev/md3 level=raid1 num-devices=2 uuid=417f6d77:2ff26541:a65a0bd1:dbc52242
ARRAY /dev/md4 level=raid5 num-devices=5 uuid=cb56b2ac:0ced17dd:f0d079fc:d0bf2031
[root@host ~]#
[root@host ~]# cat /etc/fstab
/dev/md2 / ext3 defaults 1 1
/dev/md0 /boot ext3 defaults 1 2
/dev/md1 swap swap defaults 0 0
/dev/vg_data/lvol_backup /backup ext3 defaults 0 0
/dev/vg_data/lvol_holidaypics /holidaypics ext3 defaults 0 0
[root@host etc]# vgdisplay -v
Finding all volume groups
Finding volume group "vg_data"
--- Volume group ---


.........



[root@host ~]#
# Move Prozess anstarten #

[root@host ~]# pvs -o+pv_used
PV VG Fmt Attr PSize PFree Used
/dev/md3 vg_data lvm2 a-- 1,72T 1,59T 129,00G
/dev/md4 vg_data lvm2 a-- 7,28T 4,00T 3,28T
[root@host ~]# pvmove /dev/md3
/dev/md3: Moved: 0,0%
/dev/md3: Moved: 0,1%
/dev/md3: Moved: 0,2%

...

[root@host ~]#

[root@host ~]# pvs -o+pv_used
[root@host ~]#
[root@host ~]# vgreduce vg_data /dev/md3