Tuesday, 19 September 2017

How to reduce swap size in rhel 7

Step 1

fdisk -l 

swapoff -v /dev/vg/swap

step 2

lvreduce /dev/vg/swap -L -1G

It will give result like below




Step3 

Make swap format to new

mkswap /dev/vg/swap



this is how it will shows

Step 4

Now mount swap with following command

swapon -va



that's all

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...