Removing Physical Volumes from a Volume Group
DESCRIPTION
vgreduce allows you to remove one or more unused physical volumes from a volume group.
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.
Before removing a physical volume from a volume group, you can make sure that the physical volume is not used by any logical volumes by using the pvdisplay command.
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:
The following command removes the physical volume /dev/hda1 from the volume group my_volume_group.
It’s a good idea to run this option with –test first to find out what it would remove before running it for real.
Leave a Reply
You must be logged in to post a comment.