This is a prerequisite condition to test whether sufficient total swap space is available on system

This is a prerequisite condition to test whether sufficient total swap space is available on the system. (more details)
Expected Value
 : 15.64GB (1.6403472E7KB)  16400000
Actual Value
 : 4.87GB (5111800.0KB)

 

     问题原因是没有swap空间不足导致,需要扩大交换空间

  解决:1、使用dd命令创建一个swap分区

          2、#dd if=/dev/zero of=/home/swap bs=1024 count=16400000

          3、格式化刚才创建的分区

          4、# mkswap /home/swap

          5、再使用swapon命令把这个文件分区变成swap分区

          6、#swapon /home/swap

          7、(关闭SWAP分区的命令为:#swapoff /home/swap)

          8、再用free -m 查看已经扩容的了swap分区。

          9、为了能够让swap自动挂载,需要修改etc/fstab文件,用vi /etc/fstab

          10、在文件末尾加上 /home/swap swap swap default 0 0

          11、这样就算重启系统,swap分区也不用手动挂载了

          12、但是我感觉好像我重启了系统 swap就没有了,然后我又百度了一下,要执行下面一段命令  #echo   "swapon  /home/swap" >> /etc/inittab 

          13、然后在看 vi 看下 /etc/inittab

          14、最后一行是swapon  /home/swap,这样就万事大吉了。

你可能感兴趣的:(数据库)