5.3.7. ボリュームグループからの物理ボリュームの削除
ボリュームグループから使用しない物理ボリュームを削除するには、
vgreduce コマンドを使用します。vgreduce コマンドは、1つまたは複数の空の物理ボリュームを削除することにより、ボリュームグループの容量を縮小します。これによって、物理ボリュームが開放され、異なるボリュームグループで使用したり、システムから削除できるようになります。
ボリュームグループから物理ボリュームを削除する前に、
pvdisplay コマンドを使用して、その物理ボリュームが論理ボリュームによって使用されていないことを確認することができます。
If the physical volume is still being used you will have to migrate the data to another physical volume using the
pvmove command. Then use the vgreduce command to remove the physical volume.
以下のコマンドは、物理ボリューム
/dev/hda1 を ボリュームグループ my_volume_group から取り除きます。
vgreduce my_volume_group /dev/hda1
# vgreduce my_volume_group /dev/hda1
If a logical volume contains a physical volume that fails, you cannot use that logical volume. To remove missing physical volumes from a volume group, you can use the
--removemissing parameter of the vgreduce command, if there are no logical volumes that are allocated on the missing physical volumes.