NFS共享上的“stat failed”问题
On prouction servers we have a mount point with NFS:
在prouction服务器上,我们有一个使用NFS的挂载点:
192.168.160.5:/var/www on /var/www type nfs (rw,sync,noatime,intr,soft,timeo=30,rsize=32768,wsize=32768,intr,soft,timeo=30,rsize=32768,wsize=32768,addr=192.168.160.5)
We have 2 machines that are mounted this way, but lately we are experiencing weird problems. For example, the following script:
我们有2台机器以这种方式安装,但最近我们遇到了奇怪的问题。例如,以下脚本:
clearstatcache();
if ( !file_exists($file_path) ) {
return false;
}
//calc time
$mtime = filemtime($file_path);
Gives error:
filemtime() [function.filemtime]: stat failed for /var/www/XXX/954340789.2319_.html in /var/www/XXX.module on line 66.
filemtime()[function.filemtime]:第66行的/var/www/XXX.module中/var/www/XXX/954340789.2319_.html的stat失败。
I can't reproduce this error whenever I want, meaning it occurs randomly.
我无法随时重现此错误,这意味着它会随机发生。
Any suggestion how to try to deal with the problem?
有什么建议如何处理这个问题?
More information:
- All servers are Debian 6.0.5 (Squeeze)
- kernel 2.6.32-5-amd64
- PHP 5.3.3-7+squeeze9
所有服务器都是Debian 6.0.5(Squeeze)
1 个解决方案
#1
1
Of course... Linux kernel log can give you lot of information... :O
当然...... Linux内核日志可以为您提供大量信息......:O
cat /var/log/messages
Jan 29 08:50:16 XXX kernel: : [21599205.989424] nfs: server 192.168.160.53 not responding, timed out
Jan 29 08:50:16 XXX kernel: : [21599206.093387] nfs: server 192.168.160.53 not responding, timed out
Jan 29 08:50:17 XXX kernel: : [21599206.461316] nfs: server 192.168.160.53 not responding, timed out
I'll not delete this question, it might help someone else....
我不会删除这个问题,它可能会帮助别人......
更多相关文章
- 已开启GTID的情况下的binlog复制切换到GTID复制可能会遇到的问题
- MySQL内核解析:Innodb页面存储结构-1
- Linux内核配置文档
- LINUX内核PCI扫描过程
- 详解Linux内核之双向循环链表
- 第一次发帖望各位大神帮顶啊!mini2440上的Linux2.6.32.2内核中含
- [置顶] Linux 内核学习(1)
- linux内核段属性机制(以subsys_initcall和module_init为例)
- 【Linxu内核设计与实现】-第7章 中断和中断处理