Skip to content

adding swap space – RH7.x

a. stop swap activity on the existing swap partition or partitions

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

create new swap volume (this host is not using fdisk partitions but logical volume manager), give it 2GB.

# lvcreate rootvg -n swap-vol2 -L 2G

turn it into swap

# mkswap /dev/mapper/swap-vol2

activate it

# swapon -v /dev/mapper/swap-vol2

edit /etc/fstab to so it comes back every time the hosts is booted.

# echo "/dev/mapper/rootvg-swap-vol2 swap                swap    defaults        0 0" >> /etc/fstab

Posted in LINUX.

Tagged with , , , , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.

WordPress Anti Spam by WP-SpamShield

Copyright © 2016 - 2018 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.