当前位置: 技术问答>linux和unix
inode被耗尽,httpd都无法启动,请教解决办法
来源: 互联网 发布时间:2016-04-26
本文导语: [root@mail root]# df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p3 63G 46G 14G 78% / none 1007M 0 1007M 0% /dev/shm /dev/cciss/c0d1p1 404G 78G ...
[root@mail root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p3 63G 46G 14G 78% /
none 1007M 0 1007M 0% /dev/shm
/dev/cciss/c0d1p1 404G 78G 306G 21% /newdisk
/newdisk 404G 78G 306G 21% /var/local/zkftpd/newdisk
[root@mail root]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/cciss/c0d0p3 8323072 8323072 0 100% /
none 257706 1 257705 1% /dev/shm
/dev/cciss/c0d1p1 53772288 457 53771831 1% /newdisk
/newdisk 53772288 457 53771831 1% /var/local/zkftpd/newdisk
现在apache的httpd服务没法启动,查看httpd的error日志如下:
[Wed Nov 19 06:39:47 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)
[Wed Nov 19 06:39:47 2008] [notice] Digest: generating secret for digest authent
ication ...
[Wed Nov 19 06:39:47 2008] [notice] Digest: done
[Wed Nov 19 06:39:49 2008] [error] (28)No space left on device: Cannot create SS
LMutex with file `/etc/httpd/logs/ssl_mutex.1592'
Configuration Failed!
Unable to create lock file: No space left on device
Failed to start up concurrent users module!
[Wed Nov 19 06:40:40 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)
[Wed Nov 19 06:40:40 2008] [error] (28)No space left on device: Cannot create SS
LMutex with file `/etc/httpd/logs/ssl_mutex.1904'
Configuration Failed!
然后top一下发现qmail-send占了很多的cpu。
====================================
7:09am up 30 min, 2 users, load average: 1.00, 1.05, 1.00
92 processes: 91 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.0% user, 26.0% system, 0.0% nice, 73.9% idle
Mem: 2061652K av, 499044K used, 1562608K free, 0K shrd, 190964K buff
Swap: 4096312K av, 0K used, 4096312K free 39692K cached
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
1746 qmails 25 0 1328 1328 288 D 1140 91.6 0.0 28:07 qmail-send
2829 root 16 0 1568 1568 1356 R 1436 6.5 0.0 0:00 top
1732 root 15 0 324 324 268 S 292 0.5 0.0 0:06 svscan
23 root 15 0 0 0 0 SW 0 0.3 0.0 0:18 kjournald
1240 root 15 0 444 444 388 S 412 0.3 0.0 0:12 irqbalance
1 root 15 0 508 508 456 S 464 0.1 0.0 0:08 init
14 root 15 0 0 0 0 SW 0 0.1 0.0 0:03 kupdated
2 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/0
3 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/1
4 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/2
5 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/3
6 root 15 0 0 0 0 SW 0 0.0 0.0 0:00 keventd
7 root 39 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/0
8 root 34 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/1
9 root 34 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/2
10 root 34 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/3
我现在改怎么办,httpd无法启动,邮件只能收不能发,另外没法startx,请高手指导一下小弟,谢谢!
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p3 63G 46G 14G 78% /
none 1007M 0 1007M 0% /dev/shm
/dev/cciss/c0d1p1 404G 78G 306G 21% /newdisk
/newdisk 404G 78G 306G 21% /var/local/zkftpd/newdisk
[root@mail root]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/cciss/c0d0p3 8323072 8323072 0 100% /
none 257706 1 257705 1% /dev/shm
/dev/cciss/c0d1p1 53772288 457 53771831 1% /newdisk
/newdisk 53772288 457 53771831 1% /var/local/zkftpd/newdisk
现在apache的httpd服务没法启动,查看httpd的error日志如下:
[Wed Nov 19 06:39:47 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)
[Wed Nov 19 06:39:47 2008] [notice] Digest: generating secret for digest authent
ication ...
[Wed Nov 19 06:39:47 2008] [notice] Digest: done
[Wed Nov 19 06:39:49 2008] [error] (28)No space left on device: Cannot create SS
LMutex with file `/etc/httpd/logs/ssl_mutex.1592'
Configuration Failed!
Unable to create lock file: No space left on device
Failed to start up concurrent users module!
[Wed Nov 19 06:40:40 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)
[Wed Nov 19 06:40:40 2008] [error] (28)No space left on device: Cannot create SS
LMutex with file `/etc/httpd/logs/ssl_mutex.1904'
Configuration Failed!
然后top一下发现qmail-send占了很多的cpu。
====================================
7:09am up 30 min, 2 users, load average: 1.00, 1.05, 1.00
92 processes: 91 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.0% user, 26.0% system, 0.0% nice, 73.9% idle
Mem: 2061652K av, 499044K used, 1562608K free, 0K shrd, 190964K buff
Swap: 4096312K av, 0K used, 4096312K free 39692K cached
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
1746 qmails 25 0 1328 1328 288 D 1140 91.6 0.0 28:07 qmail-send
2829 root 16 0 1568 1568 1356 R 1436 6.5 0.0 0:00 top
1732 root 15 0 324 324 268 S 292 0.5 0.0 0:06 svscan
23 root 15 0 0 0 0 SW 0 0.3 0.0 0:18 kjournald
1240 root 15 0 444 444 388 S 412 0.3 0.0 0:12 irqbalance
1 root 15 0 508 508 456 S 464 0.1 0.0 0:08 init
14 root 15 0 0 0 0 SW 0 0.1 0.0 0:03 kupdated
2 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/0
3 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/1
4 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/2
5 root 0K 0 0 0 0 SW 0 0.0 0.0 0:00 migration/3
6 root 15 0 0 0 0 SW 0 0.0 0.0 0:00 keventd
7 root 39 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/0
8 root 34 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/1
9 root 34 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/2
10 root 34 19 0 0 0 SWN 0 0.0 0.0 0:00 ksoftirqd/3
我现在改怎么办,httpd无法启动,邮件只能收不能发,另外没法startx,请高手指导一下小弟,谢谢!
|
估计是qmail的队列太长,队列里面的每一项都至少是一个文件,虽然不大,但是占用inode。
|
小文件太多时就容易出现这个问题。一个字:删!
如果预期系统会有很多小文件的话,可以在建文件系统的时候多设一些inode.
如果预期系统会有很多小文件的话,可以在建文件系统的时候多设一些inode.
|
没inode了,清理下/dev/cciss/c0d0p3分区吧,把不用的文件删除或者移走,除此好像没有什么好方法!
分区格式化好之后,inode数就定了,貌似不好增加!
good luck!
分区格式化好之后,inode数就定了,貌似不好增加!
good luck!
|
清理一下文件系统,把没用的文件删除?