1. Using dd lets make a zero’d file for the swap
dd if=/dev/zero of=/swapfile bs=1048576 count=1000
2. Make file as a swapfile
mkswp /swapfile
3.Activate swapfile
swapon /swapfile
4. Verify that our swapfile has been activated
swapon -s
dd if=/dev/zero of=/swapfile bs=1048576 count=1000
mkswp /swapfile
swapon /swapfile
swapon -s
Mode | Directory | Description |
0 | /etc/rc.d/rc0.d | Halt |
1 | /etc/rc.d/rc1.d | Single-user mode |
2 | /etc/rc.d/rc2.d | Not used (user-definable) |
3 | /etc/rc.d/rc3.d | Full multi-user mode (no GUI interface) |
4 | /etc/rc.d/rc4.d | Not used (user-definable) |
5 | /etc/rc.d/rc5.d | Full multiuser mode (with GUI interface) |
6 | /etc/rc.d/rc6.d | Reboot |
#/etc/exports
/data/files *(ro,sync)
/home 192.168.1.0/24(rw,sync)
/data/test *.my-site.com(rw,sync)
/data/database 192.168.1.203/32(rw,sync)
showmount queries the mount daemon on a remote host for information
about the state of the NFS server on that machine.
Note:
Keep in mind that when you mount any filesystem on a directory, the original contents of the directory are ignored, or obscured, in favor of the files in the mounted filesystem. When the filesystem is unmounted, then the original files in the directory reappear unchanged.