Verify that the correct
permissions are applied: ls -lh /swapfile
Create the swap file.
sudo mkswap /swapfile
Tell the system to set up
the swap space by typing: sudo swapon /swapfile
Verify that procedure was successful by typing: sudo swapon -s Output should look like the below: FilenameTypeSizeUsedPriority /swapfilefile4194300 0-1
Make the swap file permanent (it will retain after reboot): sudo vim /etc/fstab At the bottom of the file, you need to add a line that will tell the operating system to automatically use the file you created: /swapfilenoneswapsw00 Save and exit.
note- currently, this setting will not be retained when upgrading the CPM via
you upgrade using ami, you will have to follow this KB again after the upgrade