数据库挂了。打开远程,进了系统,service mysqld stop 失败。service mysqld start等了好大一会,提示Timeout error occurred trying to start MySQL Daemon

170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can

出现Can't start server: can't create PID file: No space left on device这个错误。

提示磁盘空间不足

后用df -h 命令查看

170318 11:44:26 [ERROR] Can

竟然发现磁盘容量全部用完了,于是要查看是谁占用了
用命令:
find . -type f -size +100M
查找下磁盘中大于100M的文件
竟然出现:

170318 11:44:26 [ERROR] Can

mysqld stop成功。

170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can

估计是挂载了两次光盘导致磁盘容量占满了,删除掉一个

170318 11:44:26 [ERROR] Can

卸载光驱

卸载光驱的命令一般用umount,语法格式如下

/sbin/umount.<suffix> {dir|device} [-nlfvr]

170318 11:44:26 [ERROR] Can

取消挂载之后RHEL_6.0 x86_64 Disc 1只是一个空的文件夹/目录。

170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can

删除掉一个200多MB的文件还是不行

170318 11:44:26 [ERROR] Can


170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can


170318 11:44:26 [ERROR] Can

170318 11:44:26 [ERROR] Can