From Genome Analysis Wiki
Jump to navigationJump to search
618 bytes added
, 09:47, 21 May 2013
Line 29: |
Line 29: |
| No need to Create Status Check Alarms | | No need to Create Status Check Alarms |
| No need to Create EBS Volumes | | No need to Create EBS Volumes |
| + | </code> |
| + | |
| + | == Make Sure System Has Swap Space == |
| + | |
| + | Issue the command '''swapon -s''' to see if there is swap space. |
| + | If there is only a header line, you need to add a swap file like this: |
| + | |
| + | <code> |
| + | df -h # Be sure there's enough space, decide on swap size |
| + | # Create a file /swap to use (assuming / is large enough) |
| + | sudo bash # Run these commands as root |
| + | swap=/swap |
| + | dd if=/dev/zero of=$swap bs=1073741824 count=15 # 15GB swap |
| + | chown root:root $swap |
| + | mkswap $swap |
| + | chmod 0600 $swap |
| + | swapon $swap |
| + | echo "$swap none swap sw 0 0" >> /etc/fstab |
| + | |
| + | swapon -s # Should show the swap device |
| </code> | | </code> |
| | | |