[20170118]linux建立文件型交换文件.txt
--链接http://www.itpub.net/thread-2082990-1-1.html,安装oracle提示swap不足.
--可以建立文件型交换文件避免问题.顺便做一个记录:
# dd if=/dev/zero of=swap.dd bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.239615 seconds, 438 MB/s
# mkswap swap.dd
Setting up swapspace version 1, size = 104853 kB
# swapon swap.dd
# swapon -s
Filename Type Size Used Priority
/dev/cciss/c0d0p3 partition 31455264 10396 -1
/root/swap.dd file 102396 0 -2
--//取消设置:
# swapoff swap.dd
# swapon -s
Filename Type Size Used Priority
/dev/cciss/c0d0p3 partition 31455264 10396 -1