Skip to content

Add Swap

The steps below will walk an operator through adding a 4gb swap space to a node

Steps

  1. Run fallocate -l 4G /swapfile
  2. Run dd if=/dev/zero of=/swapfile bs=1024 count=4194304
  3. Run chmod 600 /swapfile
  4. Run mkswap /swapfile
  5. Run swapon /swapfile
  6. Run vim /etc/fstab
  7. Run /swapfile swap swap defaults 0 0