0

I have Centos 6.10 Server with initial swap of 3.81 GB working ok no issue.

I noticed wrong swap today amount of 4kb. I tried removing the partition and recreate entry on fstab and remount but no avail. Also tried creating swapfile 8GB using fallocate -l 8G /home/swapfile and added on fstab swapon -a. Still doesn't work.

Below are some info on system:

enter image description here

enter image description here

enter image description here enter image description here

enter image description here

mkswap command

enter image description here

jmazaredo
  • 202
  • 5
  • 13

1 Answers1

2

You should create swap file system and enable swap with swapon. Swap could be created by command mkswap.

mkswap /home/swapfile for file and mkswap /dev/sdX for partition, see this answer.

Alexander Tolkachev
  • 4,513
  • 3
  • 14
  • 23