I’m running OpenSuSE 11.3 ( 64 bit ) with the latest kernel update as of yesterday.
I’ve recently moved from NFSv3 to NFSv4 on 4 servers. Between the 4 servers there are 9 exported directories. All of them work EXCEPT 1 on 1 of the 4 servers.
/etc/exports
NFSv4 fsid=0 for the top level directory
/export *(rw,fsid=0,async,no_subtree_check,insecure)
End
NFSv3
/export/apps/oracle *(rw,async,fsid=7,no_subtree_check,insecure)
/export/ftpserver *(rw,async,fsid=6,no_subtree_check,insecure)
End
I had to keep the NFSv3 entry as I need that as the mount doesn’t work with v4.
/export directory listing
/export:
total 5
drwxr-xr-x 4 root root 104 2002-08-08 16:47 .
drwxr-xr-x 33 root root 944 2011-01-25 17:28 …
drwxr-xr-x 10 root root 232 2010-01-26 10:01 apps
drwxr-xr-x 8 root root 4096 2010-12-13 12:31 ftpserver
/export/apps:
total 0
drwxr-xr-x 10 root root 232 2010-01-26 10:01 .
drwxr-xr-x 4 root root 104 2002-08-08 16:47 …
drwx------ 3 root root 72 2008-08-06 16:40 etc
drwxr-xr-x 2 root root 240 2011-01-24 03:00 htdig
drwx------ 3 root root 72 2008-08-06 16:40 lib
drwx------ 2 root root 48 2002-07-02 13:18 lost+found
drwxr-xr-x 4 oracle oinstall 104 2009-01-07 09:59 oracle
drwx------ 5 root root 120 2008-08-06 16:40 usr
Now on any of the 4 servers if I do:
mount -t nfs4 machinename:/apps/oracle /mnt
mount.nfs4: mounting lister:/apps/oracle failed, reason given by server:
No such file or directory
But the other sub-dir of /export is fine:
mount -t nfs4 machinename:/apps/ftpserver /mnt
If I mount the pseudo root:
mount -t nfs4 machinename:/ /mnt
ls -l /mnt
total 4
drwxr-xr-x 2 root root 48 2002-08-08 15:20 apps
drwxr-xr-x 8 root root 4096 2010-12-13 12:31 ftpserver
But the apps sub-dir is empty
ls -l /mnt/apps
total 0
On the server:
ls -l /export/apps
total 0
drwx------ 3 root root 72 2008-08-06 16:40 etc
drwxr-xr-x 2 root root 240 2011-01-24 03:00 htdig
drwx------ 3 root root 72 2008-08-06 16:40 lib
drwx------ 2 root root 48 2002-07-02 13:18 lost+found
drwxr-xr-x 4 oracle oinstall 104 2009-01-07 09:59 oracle
drwx------ 5 root root 120 2008-08-06 16:40 usr
Well that explains why the NFSv4 mount of /apps/oracle fails because for some reason it can’t “see” any files below that, but as I say the ftpserver sub-dir & mount are fine.