Remove Logical Volume on CentOS/RHEL

Scenario: Example remove Logical Volume that mount in /cache
System: CentOS/RHEL 6 or 7

Steps:
– Check partition df -h
– Unmount /cache partition.
– Check df -h again to make sure /cache already unmounted
– Check logical volume path that we will remove.
– Edit /etc/fstab and remove or comment the logical volume path that we will remove.
– Type vgs to check Volume Group size before remove logical volume.

– Remove logical volume type command:

– Type vgs again to make sure free size should be increased.

Putty output:

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *