4.8. Removing LVM volume groups
This procedure describes how to remove an existing volume group.
Conditions préalables
- The volume group contains no logical volumes. To remove logical volumes from a volume group, see Removing LVM logical volumes.
Procédure
If the volume group exists in a clustered environment, stop the
lockspace
of the volume group on all other nodes. Use the following command on all nodes except the node where you are performing the removing:# vgchange --lockstop vg-name
Wait for the lock to stop.
Remove the volume group:
# vgremove vg-name Volume group "vg-name" successfully removed
Ressources supplémentaires
-
vgremove(8)
man page