1831647 Members
2163 Online
110029 Solutions
New Discussion

NFS mounting issues

 
shruti_1
Advisor

NFS mounting issues

I want to nfs mount one volume on another server(readonly).

on server I have given in /etc/exports

/misc -access=rw=x.x.x.x

however on client side when i try to mount this it gives me an error of permission denied. Can anyone help me out on this.
5 REPLIES 5
Enrico P.
Honored Contributor

Re: NFS mounting issues

Hi,
the read only access is the default, you can add the line

/misc -access=x.x.x.x

in the /etc/exports file

then you need to run the

exportfs -a

command from the server

then you can mount from the client.

Enrico
Steven E. Protter
Exalted Contributor

Re: NFS mounting issues

Shalom,

Perhaps exportfs -av on the server. Maybe your settings are not loaded on the server.

tail -f /var/adm/syslog/syslog.log

See what the issue is during the mount.

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
Craig Sterley
Advisor

Re: NFS mounting issues

has /misc been exported on the host node?
Doug O'Leary
Honored Contributor

Re: NFS mounting issues

Hey;

>>the read only access is the default, you can add the line

That is incorrect. NFS exports filesystems read/write by default.

Also, I don't believe you can specify a client by IP address. Check out exportfs(1m) for details under the access section.

I believe you'll need to specify a host name and ensure name resolution is working either through /etc/hosts or through dns. Whichever way, ensure /etc/nswitchc.onf and /etc/resolv.conf are updated appropriately.

Finally, to see how the server is resolving the client, from the client, ssh/telnet to the server. Then, execute:

tty # note the tty you're coming from
who -R | grep ${tty}

If it comes up with a name, ensure that name is in the access list. If it comes up with an IP address, correct your name resolution issue before attempting to use NFS.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Peter Nikitka
Honored Contributor

Re: NFS mounting issues

Hi,

the syntax in /etx/exports is not correct, use:

/misc -access=my.ip.add.ress,hostname,netgroup

The stuff after the ',' is optional.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"