Thursday, 26 April 2012


Let /dev/sdb be the volume attached to the server .

mkswap /dev/sdb
swapon /dev/sdb     =>Now swap is added  to the system.

Put entries in /etc/fstab

/dev/sdb swap swap defaults 0 0

-----------------------------------------------------
We can see the swap summary using
swapon -s =>usage summary

To turn off swap on a volume do the following.
swapoff /dev/sdb =>turn off swap on this device.

No comments:

Post a Comment

Kubernetes cluster setup on Ubuntu 26.04 using Kubeadm

Step1: Disable swap memory: Kubernetes requires swap to be disabled for the kubelet to function correctly # swapoff -a # sudo sed -i '/...