1834459 Members
2660 Online
110067 Solutions
New Discussion

NFS mount error in HP-UX

 
gab_in
Regular Advisor

NFS mount error in HP-UX

Hi,

I have created a nfs export on a HP-UX machine and trying to mount it from another HP-UX machine. While mounting it says "permission denied" . Please find below the configuration of both the systems.

NFS Server :

# hostname
windux1
# more /etc/exports
/data1 -root=windux3.ind.hp.com -access=windux3.ind.hp.com
# exportfs -va
re-exported /data1

NFS Client :

# hostname
windux3
# mount windux3.ind.hp.com:/data1 /windux1
Permission denied
# mountall
mountall: cannot mount windux1.ind.hp.com:/data1
mountall: diagnostics from mount
Permission denied

Can anyone pls help?

Thanks in advance
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: NFS mount error in HP-UX

Shalom,

Check the ownership of the remote share you are trying to mount.

Try the mount with /etc/exports not having access restrictions. If that works, then the problem is the access restrictions.

Also: The remote system has information in its syslog file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Godron
Honored Contributor

Re: NFS mount error in HP-UX

Hi,
have you actually created your mountpoint directory with the correct permissions ?
check with ll /windux1

For more details please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=103925

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
on how to reward any useful answers given to your questions.

So far you have not awarded any points !
OldSchool
Honored Contributor

Re: NFS mount error in HP-UX

if your examples are correct, your should not your mount command be:

mount windux1.ind.hp.com:/data1 /windux1

you're example shows export on windux1 and mount on windux3. the mount command shown is trying to mount something from windux3 to on windux3.
Yogeeraj_1
Honored Contributor

Re: NFS mount error in HP-UX

Hi,

how did you define /windux1 in your /etc/fstab on the NFS client?


Examples of configurations at my site:
NFS Client: /etc/fstab
windux3.ind.hp.com:/data1 /windux1 nfs rw,suid 0 0

NFS Server(windux3.ind.hp.com): /etc/exports
/data1 -anon=65534

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Safarali
Valued Contributor

Re: NFS mount error in HP-UX

Hi Hu
looks like you have name resolution problem
if your /etc/export is correct
try the following option
on server edit the /etc/exports with out any client information like

/oracle data1
# exportfs -a
# exportfs
one client
# mount server:/data1 /mnt
if it work then problem is entry of your clients in the /etc/exports file
then update the host file on client and master server

Regards
Safar
Rasheed Tamton
Honored Contributor

Re: NFS mount error in HP-UX

Hi,

Your options on /etc/exports file are correct. So it ism ost possibly the name resolution problem. What kind of name resolution you are using. Otherwise, put the FQDN of the server and client on /etc/hosts on both side.

If it does not work modify the /etc/exports with the IP instead of the hostname (windux3). If you have more than one NIC and IP on the system you might get into these kind of issues. So make sure that the name resolution works ok.

ping
showmount -e server
rpcinfo -p server

Regards.