Add Swap
The steps below will walk an operator through adding a 4gb swap space to a node
Steps
- Run
fallocate -l 4G /swapfile
- Run
dd if=/dev/zero of=/swapfile bs=1024 count=4194304
- Run
chmod 600 /swapfile
- Run
mkswap /swapfile
- Run
swapon /swapfile
- Run
vim /etc/fstab
- Run
/swapfile swap swap defaults 0 0