NFS Client receives error editing file in vi "warning the file has changed since reading it"

NFS Client receives error editing file in vi "warning the file
has changed since reading it"
Solution ID: 00000029
Created: 7/8/2008
DETAILS:
Issue:
NFS clients think that files on the IBRIX file system are changing while they are open. i.e. if you
open a text file with vim on an NFS-mounted IBRIX file system and try to save it 15 seconds later,
it reports this error:
WARNING:The file has been changed since reading it
Note: This happens with Emacs as well so it is not just a vim issue. Upon collection of ibrix_fs -i
output the issue was identified to be specific to the mount option "asynchronous" which is
incompatible with our file system. By default we mount sync mode. Here is the relevant portion of
ibrix_fs -i -f "/ibrixfs "*(rw,async,fsid=1)" The async option is not compatible with ibrix_fs as we
want consistency across the fs and acknowledgements back for changes etc... It is synchronous
by default as you must have with any clustered fs.
Resolution:
To fix this, from your Fusion Manager you have to first, unexport your ibrix file system and then
export it again specifying the correct "-o" mount options. The proper command syntax to perform
this is to fill in the applicable export server name after the -h and FS_NAME: ibrix_exportfs -f
ibrixfs -U -h HOSTNAME -p *:/ibrix_fs ibrix_exportfs -f ibrixfs -h HOSTNAME -p *:/ibrix_fs -o
"rw,no_root_squash"
Last modified: 7/8/2008

Summary of content (1 pages)