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)
  • 所有服务器都是Debian 6.0.5(Squeeze)

  • kernel 2.6.32-5-amd64
  • PHP 5.3.3-7+squeeze9

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....

我不会删除这个问题,它可能会帮助别人......

更多相关文章

  1. 已开启GTID的情况下的binlog复制切换到GTID复制可能会遇到的问题
  2. MySQL内核解析:Innodb页面存储结构-1
  3. Linux内核配置文档
  4. LINUX内核PCI扫描过程
  5. 详解Linux内核之双向循环链表
  6. 第一次发帖望各位大神帮顶啊!mini2440上的Linux2.6.32.2内核中含
  7. [置顶] Linux 内核学习(1)
  8. linux内核段属性机制(以subsys_initcall和module_init为例)
  9. 【Linxu内核设计与实现】-第7章 中断和中断处理

随机推荐

  1. 如何在点击时动态加载/播放/暂停多源HTML
  2. JavaScript String(字符串对象)
  3. 在变量名是字符串时声明变量?
  4. IE:令人难以置信的跳跃表标题
  5. 如何在three.js中导入json和渲染
  6. iOS、Android、WebOS系统体系架构的比较
  7. 关于JavaScript方法,设置GridView中首项Ch
  8. 前端省市区(县)三级联动下拉框
  9. 在Internet Explorer中使用sprited按钮和
  10. touchableopacity onpress函数undefined(