extend Linux swap with LVM

8  swapon -s
9  lvdisplay | more
10  swapoff -v
11  swapoff -v /dev/vg_server010/lv_swap
13  lvm lvresize /dev/vg_server010/lv_swap -L +8G
14  mkswap /dev/vg_server010/lv_swap
15  swapon -va
16  cat /proc/swaps free
17  swapon -s

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 )

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