Can’t start server: can’t create PID file: No space left on device

linux下MySQL报错:Can’t start server: can’t create PID file: No space left on device
今天帮一个朋友检查服务器,MySQL无法启动,报错的日志

  1. Number of processes running now: 0
  2. 110413 09:30:46  mysqld restarted
  3. 110413  9:30:46 [Warning] Asked for 196608 thread stack, but got 126976
  4. InnoDB: The log sequence number in ibdata files does not match
  5. InnoDB: the log sequence number in the ib_logfiles!
  6. 110413  9:30:46  InnoDB: Database was not shut down normally!
  7. InnoDB: Starting crash recovery.
  8. InnoDB: Reading tablespace information from the .ibd files...
  9. InnoDB: Restoring possible half-written data pages from the doublewrite
  10. InnoDB: buffer...
  11. 110413  9:30:46  InnoDB: Started; log sequence number 0 81298
  12. 110413  9:30:46 [ERROR] /usr/sbin/mysqld: Error writing file '/var/lib/mysql/u01.enimg.com.pid' (Errcode: 28)
  13. 110413  9:30:46 [ERROR] Can't start server: can't create PID file: No space left on device

原因是其中一个网站被攻击,导致日志爆满,/var分区无法写入导致,记录一下备忘 – –

2 Comments

  1. 支持下,我也是做WEB技术的,可否申请一下友情链接?
    霜天部落:http://www.frostsky.com/