1752522 Members
4704 Online
108788 Solutions
New Discussion юеВ

11.23 NFS and AutoFS

 
SOLVED
Go to solution
Pete Randall
Outstanding Contributor

11.23 NFS and AutoFS

My new 11.23 environment seems to be having some NFS difficulties. It's behaving just fine with other HP-UX environments with automounts happening in both directions (from the 11.23 box to the others and from the others to the 11.23 box).

However, our Novell file server at the heart of our LAN doesn't seem to want to play nicely. It appears that the 11.23 box attempts to automount as it should but we can't read anything past the exported LAN directory:

# cd /nfs/farm/prod1
# ll
total 0
dr-xr-xr-x 1 root root 1 Feb 13 13:13 BTID
dr-xr-xr-x 1 root root 1 Feb 13 13:13 WP
dr-xr-xr-x 1 root root 1 Feb 13 13:13 allflex
dr-xr-xr-x 1 root root 1 Feb 13 13:13 common
dr-xr-xr-x 1 root root 1 Feb 13 13:13 dv
dr-xr-xr-x 1 root root 1 Feb 13 13:13 m9
dr-xr-xr-x 1 root root 1 Feb 13 13:13 ped
dr-xr-xr-x 1 root root 1 Feb 13 13:13 shared
dr-xr-xr-x 1 root root 1 Feb 13 13:13 tristar
dr-xr-xr-x 1 root root 1 Feb 13 13:13 web
# mount |grep common
/nfs/farm/prod1/common on -hosts ignore,direct,nosuid,hard,intr,bg,nest,dev=9 on
Fri Feb 13 13:13:07 2009
# ll common
common unreadable
total 0


On my other 11.11 machines, this works just fine. What am I missing?

Another question: how do I check which version of NFS I have?


Pete

Pete
51 REPLIES 51
Victor Fridyev
Honored Contributor

Re: 11.23 NFS and AutoFS

What about nfsstat ?
Entities are not to be multiplied beyond necessity - RTFM
Pete Randall
Outstanding Contributor

Re: 11.23 NFS and AutoFS

Sorry, Victor, I'm not following. What do you mean, "what about nfsstat"?


Pete

Pete
Victor Fridyev
Honored Contributor

Re: 11.23 NFS and AutoFS

Pete,

It seems, nfsstat commanf gives NFS version.

Entities are not to be multiplied beyond necessity - RTFM
Pete Randall
Outstanding Contributor

Re: 11.23 NFS and AutoFS

Well, yes, it does seem to indicate that I have either Version 2 or Version 3.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: 11.23 NFS and AutoFS

OK, I see - it's telling me it will support both v2 and v3. Presumably that's as a client and as a server, I would expect it to be v3?


Pete

Pete
Victor Fridyev
Honored Contributor

Re: 11.23 NFS and AutoFS

V3 works for sure.
BTW, 11.23 has some problems with autofs, e.g. I have not succeeded to change AUTOMASTER name, i.e. I edited /etc/auto.master, but the comp read /etc/auto_master, even the variable was changed in the configuration

Good Luck
Entities are not to be multiplied beyond necessity - RTFM
Pete Randall
Outstanding Contributor

Re: 11.23 NFS and AutoFS

Ping!

Pete
Pete Randall
Outstanding Contributor

Re: 11.23 NFS and AutoFS

Maybe more info would be helpful!

Here's the AutoFS trace entries of the mount attempt:

Feb 16 12:32:50 t134 LOOKUP REQUEST: Mon Feb 16 12:32:50 2009
Feb 16 12:32:50 t134 name=farm[] map=-hosts opts=nosuid,hard,intr,bg,vers=2 path=/nfs direct=0
Feb 16 12:32:50 t134 LOOKUP REPLY : status=0
Feb 16 12:32:50 t1 MOUNT REQUEST: Mon Feb 16 12:32:50 2009
Feb 16 12:32:50 t1 name=farm[] map=-hosts opts=nosuid,hard,intr,bg,vers=2 path=/nfs direct=0
Feb 16 12:32:50 t1 MOUNT REPLY : status=0, AUTOFS_ACTION
Feb 16 12:32:50 t135 MOUNT REQUEST: Mon Feb 16 12:32:50 2009
Feb 16 12:32:50 t135 name=farm[/prod1] map=-hosts opts=nosuid,hard,intr,bg,vers=2 path=/nfs/farm
/prod1 direct=1
Feb 16 12:32:50 t135 MOUNT REPLY : status=0, AUTOFS_ACTION
Feb 16 12:32:50 t1 MOUNT REQUEST: Mon Feb 16 12:32:50 2009
Feb 16 12:32:50 t1 name=farm[/prod1/common] map=-hosts opts=nosuid,hard,intr,bg,vers=2 path=/n
fs/farm/prod1/common direct=1
Feb 16 12:32:50 t1 Port numbers are 666, 666
Feb 16 12:32:50 t1 Port match
Feb 16 12:32:50 t1 MOUNT REPLY : status=13, AUTOFS_DONE


And the exported directories, as seen from the NFS client:

# showmount -e farm
export list for farm:
/image1/vol1 (everyone)
/prod1/BTID/download (everyone)
/prod1/common (everyone)


So, why is "access denied"?


Pete

Pete
T G Manikandan
Honored Contributor

Re: 11.23 NFS and AutoFS