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
lockspaceof 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
# vgchange --lockstop vg-nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow Wait for the lock to stop.
Remove the volume group:
vgremove vg-name
# vgremove vg-name Volume group "vg-name" successfully removedCopy to Clipboard Copied! Toggle word wrap Toggle overflow