4.3.6. 从卷组中删除物理卷
To remove unused physical volumes from a volume group, use the
vgreduce command. The vgreduce command shrinks a volume group's capacity by removing one or more empty physical volumes. This frees those physical volumes to be used in different volume groups or to be removed from the system.
在您从卷组中删除物理卷之前,您可以使用
pvdisplay 命令确定物理卷没有被任何逻辑卷使用。
如果物理卷仍然在使用,您可能必须使用
pvmove 命令将数据迁移到另一个物理卷。然后使用 vgreduce 命令删除该物理卷:
以下命令可从卷组
my_volume_group 中删除物理卷 /dev/hda1。
vgreduce my_volume_group /dev/hda1
# vgreduce my_volume_group /dev/hda1