How To Delete Logical Volume In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Check the volume group you want to delete the logical volume from:
# vgdisplay
2. Unmount the file system if it is mounted:
# umount /dev/mapper/name_of_logical_volume
3. Remove the logical volume from the volume group:
# lvremove /dev/name_of_volume_group/name_of_logical_volume
4. Remove the physical volume from the volume group:
# pvremove /dev/name_of_physical_volume
5. Finally, remove the volume group:
# vgremove /dev/name_of_volume_group