-
Book Overview & Buying
-
Table Of Contents
CentOS 7 Server Deployment Cookbook
By :
The flexibility of LVM allows us to allocate the pooled storage of physical volumes however we see fit. This recipe shows us how to delete a logical volume and free its storage back to the volume group for use by other logical volumes.
This recipe requires a CentOS system with administrative privileges provided by logging in with the root account or using sudo. It assumes that a logical volume has been created as described in the preceding recipe.
Perform the following steps to remove an LVM volume:
Unmount the filesystem with umount:
umount /mnt
Open /etc/fstab and verify that there isn't an entry to automatically mount the filesystem. If there is, remove the entry, save your changes, and close the file.
Use lvremove to delete the logical volume:
lvremove vg0/myvol
Review the output of vgs to verify the removal.
Deleting a volume frees its storage back to the volume group, which can then be used to create...
Change the font size
Change margin width
Change background colour