in my Linux redhat machine ( version 5.x )
I perform the following steps in order to increase the swap from 6G to 8G
lvcreate -n swap -L 2g /dev/rootvg
mkswap /dev/mapper/rootvg-swap1
swapon /dev/mapper/rootvg-swap1
after steps swap increased successfully to 8G
after two days I perform swapoff -a and swapon -a
but I noticed that total swap is only 6G as before my steps !
Please advice what was wrong in my steps – what is missing ?g