How to reduce swap in lvm
1. check lvs
lvs
swap_vol sysvg -wi-ao---- 8.00g
2. check in which /dev/ directory is
ls -l /dev/mapper/*
3. swapoff
swapoff -v /dev/mapper/sysvg-swap_vol
4. lvreduce
lvm lvreduce /dev/mapper/sysvg-swap_vol -L -6G
5. check lvs
lvs
6. make swap
mkswap /dev/mapper/sysvg-swap_vol
7. turn on swap
swapon -va
8. check swap
cat /proc/swaps
free -h
Žiadne komentáre:
Zverejnenie komentára