Linux - Add swap disk and remove swap disk, Add swap disk

Add swap disk and remove swap disk

By using below commands, collect required disk information and mount points
 # df -hT 
 # fdisk -l
 # lvdisplay
 # pvdisplay
 # lvs
 
 # lsblk -o NAME,KNAME,MAJ:MIN,FSTYPE,MOUNTPOINT

 # lsblk -o NAME,KNAME,MAJ:MIN,FSTYPE,MOUNTPOINT | egrep 'dm-0|dm-1'

Once you see new disk visible on OS, create and mount swap disk using swapon command and add fstab entry for the disk
 # mkswap /dev/sde

 # free -g

 # swapon /dev/sde

 # free -g

 # swapoff /dev/sdd

The topic on Linux - Add swap disk and remove swap disk is posted by - Vaish

Hope you have enjoyed, Linux - Add swap disk and remove swap diskThanks for your time

Tech Bluff