Linux Swap Increase

First check from which LV group swap is provisioned from and see if there is space available to increase then follow the below steps.

#swapoff -v /dev/VolGroup00/swap 
#lvextend -L + 5G /dev/VolGroup00/swap 
#mkswap /dev/VolGroup00/swap 
#swapon -va

If the swap is from a disk partition

#swapoff -av
#dd if=/dev/zero of=/swap/swapfile bs=1G count=8 ( for 8 GB swap ) 
#mkswap /swap/swapfile 
#swapon -va

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s