pvremove与vgreduce

/dev/hda3和/dev/hdb为pv,同属rootvg,里面有rootlv、swaplv,

pvmove -v /dev/hda3 /dev/hdb //相当于migratepv,此处目的是将/dev/hda3上的数据移动到/dev/hdb

接下来想当然的用了pvremove,其实不对,应该用vgreduce。

[root@localhost ~]# vgreduce rootvg /dev/hda3 //将/dev/hda3剔出rootvg
Removed "/dev/hda3" from volume group "rootvg"

[root@localhost ~]# pvremove /dev/hda3 //将/dev/hda3的pv标记去除
Labels on physical volume "/dev/hda3" successfully wiped

你可能感兴趣的:(pvremove与vgreduce)