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
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