After logging into the VDS, check the entries in /etc/fstab/. If swap entry is there, then use the command “swapon -a” and then use the “mount -a” command.
If swap entry is not present in /etc/fstab, add that first.
========================
/dev/sda2 swap swap defaults 0 0
========================
After that, apply the above commands.

