| Release | Classification | Level | DB Platform | Categories | 
| ALL | How To |   | ALL | Memory | 
| QUESTION | 
What are the steps involved to increase swap space of your Scalearc appliance?
| ANSWER | 
Below are the steps involved to increase swap space of your ScaleArc appliance online (without any downtime)
- Check current free memory in megabytes (g for gigabytes)
 
 # free -m 
- 
      Check current swap setting, if any # swapon -s 
- Check current memory availability
 
 #egrep --color 'Mem|Cache|Swap' /proc/meminfo 
- Check for available Disk Space as you need to create a new swap file in next step under '/'
 
 # df -kah 
- Use the 'dd' command as below to check throughput and create a new swap file (under '/')
 note: count=2097152 is 2GB ; count=4194304 is 4GB and so forth
 
 #dd if=/dev/zero of=/swapfile1 bs=1024 count=4194304 
- Mark this as swap space
 
 #mkswap /swapfile1 
- Change Ownership and permission
 
 #chown root:root /swapfile1 #chmod 600 /swapfile1 
- Turn swap on immediately
 
 #swapon /swapfile1 
- Append "/swapfile1 swap swap defaults 0 0" in fstab to survive reboot
 
 #vim /etc/fstab 
 :::::::::::
 ::::::::::proc /proc proc defaults 0 0 /swapfile1 swap swap defaults 0 0 
- You can now see the swap area configured in server as below -
 
 "cat proc/swaps" 
- Verify the swap addition by repeating step1 & step3
 
 
Priyanka Bhotika
Comments