1832800 Members
2765 Online
110045 Solutions
New Discussion

NFS not working

 
Linda Card
Frequent Advisor

NFS not working

We prepped for a security inspection and I wonder if we did ourselves in... These are workstations with HP-UX 10.20 running. J7 normally mounts to J2's /h/data/global but not anymore.

The network master is J2 and it has /etc/exports with:
/h/data/global rw,access=j1:j3:j7,anon=-1

J7 has /etc/fstab entry:
j2:/h/data/global /h/data/global nfs rw,bg,soft 0 0

J7's /etc/rc.log shows nfs.client start with starting portmapper, statd, lockd,automountd
mounting remote NFS file systems
Permission denied
FAILURE CODE:1
Mount failed 1 Possible local file system mount. If local file system, the nfs server will mount.

If I do a mount -a on j7, I get "Permission denied" for the nfs mount followed by 4 lines of mounts that do work for local mounts.

I have looked at it so much, it no longer makes sense. Not that I ever really understood NFS...

Can you see something obviously wrong? I check FAQ but couldn't find anything to fix it.

Thank you in advance,
Linda
8 REPLIES 8
Deoncia Grayson_1
Honored Contributor

Re: NFS not working

on j2 do a showmount -e to see if the filesystem is still being exported, if ifs not then do exportfs
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Paul_481
Respected Contributor

Re: NFS not working

Hi Linda,

Run this steps.

On the NFS server

#/sbin/init.d/nfs.server start
#/sbin/init.d/nfs.core start
#/usr/sbin/rpc.mountd
#exportfs -a

I think that should cover all the daemons necessary to run NFS.

Regards,
Paul
David Nixon
Valued Contributor

Re: NFS not working

Linda,

I would check that the IP address of the
would-be NFS client, when looked up by the server, still returns the name "j7".
Check /var/adm/rpc.mountd.log, if you
have mount logging enabled. Also, when
changing names in your exports access list,
remember to restart the mountd.

David
Linda Card
Frequent Advisor

Re: NFS not working

Paul and David,
I have tried both your steps and still no go.
I don't have mountd log enabled so I couldn't check that. It's the permission denied thing that I don't understand. I thought that the /etc/exports on the host and the fstab on the client took care of it.

I must have really messed it up. The server has not been reloaded in 3 years...we can't even find the load instuctions. YIKES. I went looking for the O'Reilly NFS book last night but nobody has a copy in the store. the best I could do was order it off the internet.

I appreciate you help anyway.
Linda
RAC_1
Honored Contributor

Re: NFS not working

From j7, nslookup j2
nslookup "ip_address_of_j2"

Is that OK??
What are the perms on /h/data/global?? - on j2

Anil
There is no substitute to HARDWORK
Linda Card
Frequent Advisor

Re: NFS not working

From j7, an 'nslookup up of j2' yields the following:
"Using /etc/hosts j7
looking up FILES
Name: j2
Address: (correct_ip_address_of_j2)"

on j2, /h/data contains a link (symbolic)named global which points to /home2. Standing in /, home2 is 777 root:sys

RAC_1
Honored Contributor

Re: NFS not working

Can j1 and j3 mount it?? Also from j2,

nslookup j7
nslookup "ip_of_j7"

I do not know, but send -usr2 signal to rpc.mountd and check log file.

perms on local_point on j7??
There is no substitute to HARDWORK
Linda Card
Frequent Advisor

Re: NFS not working

I appreciate everybody's help. NFS is still not working but I have run out of time. I will reload the box today and hope for the best.

Again thank you for your time and suggestions.
Linda