Monthly Archives: April 2017

Increase or Decrease LV Swap in CentOS 6/RHEL 6

Scenario: How to increase or decrease swap space(logical volume swap) in CentOS 6/RHEL 6

System: CentOS 6/ RHEL 6

Steps increase Swap space
Example increase 1 GB swap space.

1) You must check the path of swap logical volume and the free space in the swap volume group before continue to step 2.
# free -m
# lvdisplay | grep swap
# vgs

Continue reading

Remove Logical Volume on CentOS

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

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.
Continue reading