NFS mount point "unreadable" using AUTOFS (992 Views)
Reply
Valued Contributor
Taurian
Posts: 152
Registered: ‎07-25-2006
Message 1 of 6 (992 Views)
Accepted Solution

NFS mount point "unreadable" using AUTOFS

 

Hi All,

 

I am getting the following error when I list the directory of an NFS mount point:

 

# ll /sapmnt/PRB
/sapmnt/PRB unreadable
total 0

 

I am sharing the FS from server1 using serviceguard hanfs. Following is the entry in the script:

 

nfs/hanfs_export/XFS            "-o ro /sapmnt/PRB"

 

 

OS is 11.31 on both cluster nodes. Any idea why I am getting this error?

 

 

Regards,

Taurian.

 

Please use plain text.
Valued Contributor
Taurian
Posts: 152
Registered: ‎07-25-2006
Message 2 of 6 (981 Views)

Re: NFS mount point "unreadable" using AUTOFS

 

Anyone?

 

BTW I have already tried various resolutions on other threads. None are working.

 

 

Regards,

Taurian.

Please use plain text.
HP Pro
Dave Olker
Posts: 1,424
Registered: ‎10-10-2002
Message 3 of 6 (972 Views)

Re: NFS mount point "unreadable" using AUTOFS

Can you try creating an empty directory on the NFS client and manually mount the NFS filesystem to see if you get the expected behavior in the mount point when Serviceguard and AutoFS are removed from the picture?

Dave
Please use plain text.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 6 (962 Views)

Re: NFS mount point "unreadable" using AUTOFS

You're attempting to list a NFS directory as root.

 

Most NFS servers will map the "root" user of the NFS client host as equivalent to the "nobody" user.

 

Usually the right way to deal with this is to make sure your username <-> UID and groupname <-> GID mappings are consistent between the client and the server, assign some meaningful group permissions & memberships, and stop trying to work on NFS filesystems as root.

 

(In HP-UX, if a user has rwx access to a directory, has CHOWN privilege assigned to him/her in /etc/privgrp, and there is no sticky bit on the directory, then there is not much practical difference between root and that user regarding any files in that directory.)

 

The lazy/special-case way would be to change the share options at the NFS server to allow root access from that particular client to that particular NFS share. See "man share_nfs" for ideas.

MK
Please use plain text.
Honored Contributor
Hakki Aydin Ucar
Posts: 1,313
Registered: ‎08-16-2006
Message 5 of 6 (935 Views)

Re: NFS mount point "unreadable" using AUTOFS

Can you see the mount point with the command bdf ?

Please use plain text.
Valued Contributor
Taurian
Posts: 152
Registered: ‎07-25-2006
Message 6 of 6 (931 Views)

Re: NFS mount point "unreadable" using AUTOFS

 

Hi All,

 

Thanks for your replies.

 

For the resolution I had to update the sharing options from the NFS server as below:

 

          -o rw=server1:server2:server3

 

 

Now I am able to write to the NFS shares from all servers.

 

 

Regards,

Taurian.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation