How To: Increase the SWAP Space of your ScaleArc Appliance

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)

  1. Check current free memory in megabytes (g for gigabytes)

    # free -m

  2. Check current swap setting, if any

    swapon -s

  3. Check current memory availability

    #egrep --color 'Mem|Cache|Swap' /proc/meminfo

  4. Check for available Disk Space as you need to create a new swap file in next step under '/'

    # df -kah

  5. 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

  6. Mark this as swap space

    #mkswap /swapfile1

  7. Change Ownership and permission

    #chown root:root /swapfile1

    #chmod 600 /swapfile1

  8. Turn swap on immediately

    #swapon /swapfile1

  9. 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

  10. You can now see the swap area configured in server as below -

     "cat  proc/swaps"

  11. Verify the swap addition by repeating step1 & step3


Comments

0 comments

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request