2.4. Removing LVM physical volumes
If a device is no longer required for use by LVM, you can remove the LVM label by using the pvremove command. Executing the pvremove command zeroes the LVM metadata on an empty physical volume.
Procédure
Remove a physical volume:
pvremove /dev/vdb3
# pvremove /dev/vdb3 Labels on physical volume "/dev/vdb3" successfully wiped.Copy to Clipboard Copied! Toggle word wrap Toggle overflow View the existing physical volumes and verify if the required volume is removed:
pvs
# pvs PV VG Fmt Attr PSize PFree /dev/vdb1 lvm2 1020.00m 0 /dev/vdb2 lvm2 1020.00m 0Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If the physical volume you want to remove is currently part of a volume group, you must remove it from the volume group with the vgreduce command. For more information, see Removing physical volumes from a volume group