Increase swap space in linux

Show current swap size with free command

# free -g

Add 10G space to swap volume

# lvresize -L +10G /dev/mapper/vg1-swap

Switching off swap space with following command;

# swapoff -v /dev/mapper/vg1-swap

Make new swap space with increased volume

# mkswap /dev/mapper/vg1-swap

Switch on swap

# swapon -va

Show increased swap size with free command

# free -g
Advertisements
About

System Engineer @ATOS, vExpert2015, VCP5, RHCSA, Specialized Linux,Storage and Virtualization.

Posted in Uncategorized

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: