|
|
Can I create more swap space on my NetMAX? |
Applies to: NetMAX Free BSD Bld475
NetMAX L2.2Pv3.x - 4.0xaddress-suppressed | |
|
**** For Free BSD BLD475 ****
Yes. To create more swap space on your NetMAX, perform these commands as "root". 1. Make sure you have enough space on /var (your system disk): df -k/var/swap 2. dd if=/dev/zero of=/var/swap/swap0 bs=1m count=5 The number "5" is how many megabytes of swap to add. 3. echo "/dev/vn0 /var/swap/swap0 swap" >> /etc/vntab If you do this more than once, use "vn1" the next time, "vn2" the third time, etc. 4. Add this line to the end to the /etc/rc.local file: /bin/test -r /etc/vntab && /usr/sbin/vnconfig -ae It will be used automatically when the NetMAX boots. To enable it immediately, do "vnconfig -ae".
*** For Linux versions L2.2Pv3.x - L2.4P4.0x**** To create more swap space run these commands as root user. 1. touch /var/swapme 2. dd if=/dev/zero bs=1024k count=(RAM size) of=/var/swapme Where (RAM size) is the amount of RAM currently installed. 3. mkswap /var/swapme 4. swapon /var/swapme
5. Add this line to the end of /etc/rc.d/rc.local:
swapon /var/swapme
This will enable the new swap file each time your NetMAX reboots.
|
| Previous: |
|
| Next: |
|
| ||||||||