[Linux-HA] Stale NFS File Handles, even with fsid=1234
Mailinglists at stefanco.com
Mon Jul 9 18:59:36 MDT 2007
I am trying to implement active/standby NFS on two servers. However I
cannot get this to work. Instead, my NFS clients get 'Stale NFS File
Handle' errors. I've read the documentation, and I still do not
understand what I am doing wrong.
Here is a description of my system:
OS: RHEL4 u4 , x86_64
Heartbeat version: heartbeat-2.0.8-2.el4.centos
Two servers: fs1 is 'primary'. fs2 is 'standby'.
Client name is app1 , running RHEL4 u4 i386
- Each server exports /export1 . I use BakBone::Replicator to keep the
fs1:/export1 & fs2:/export2 in sync.
- On both fs1 & fs2, /var/lib/nfs is a symlink to /export1/nfs .
fs1:/export1/nfs is copied to fs2:/export1/nfs .
- fs1:/etc/exports is identical to fs2:/etc/exports . Each server is
should be exporting similar filesystems with identical values.
/etc/exports contains a share like the following. I force the
filesystem identification portion with 'fsid='.
/export1/share app1(rw,sync,fsid=6663) app2(rw,sync,fsid=6663)
/export1/home app1(rw,sync,fsid=6664) app2(rw,sync,fsid=6664)
These options all seem to be active, according to /var/lib/nfs/etab:
/haresources is pretty simple . I use 'haresources2cib.py' to export
haresources to cib.xml ,
# cat /etc/ha.d/haresources
When I shut down fs1 (primary NFS server), the following happens:
- fs1 removes bond0
- fs1 shuts down nfslock
- fs1 shuts down nfs
- fs2 brings up bond0
- fs2 starts up nfslock
- fs2 starts up nfs
However, the NFS clients get the following errors:
- I get a 'Stale NFS File Handle' on all NFS files and directories
- /var/log/messages prints errors like the following:
Jul 9 18:51:34 app902 kernel: nfs_update_inode: inode number mismatch
Jul 9 18:51:34 app902 kernel: expected (0:13/0x2b30003), got (0:13/0x2ec003)
Jul 9 18:51:35 app902 kernel: nfs_update_inode: inode number mismatch
Jul 9 18:51:35 app902 kernel: expected (0:18/0x3970001), got (0:18/0x3ee4001)
These errors go away if I simply remount the filesystems with a
'umount -a -t nfs && mount -a -t nfs'.
I appreciate any help!
More information about the Linux-HA