cancel
Showing results for 
Search instead for 
Did you mean: 

NFS export files

 
Yaroki
Super Advisor

NFS export files

Hello,

I'm using HP-UX b.11.11 an try to mount remote files via NFS.

 

My /etc/exports (host-server) file:

 

/ssc      -anon=65534

/tmp     8.10.4.77/24(rw)

 

I can only access to the /ssc directory.

When I try to access /tmp it gives "permission denied" message.

 

I ran

#nsquery hosts CLIENT_NAME 

and the results are fine. Also the /etc/hosts includes the ip and the correct name.

 

the mount point directory has 777 permission.

Please advice.

 

Yali

 

 

P.S. This thread has been moved from Workstations - Itanium-Based, hp9000, Visualize to HP-UX > networking - HP Forums Moderator

18 REPLIES 18
Matti_Kurkela
Honored Contributor

Re: NFS export files

The second line in your /etc/exports is not properly formatted to HP-UX 11.11 requirements. It looks more like Linux /etc/exports syntax. This is probably why the line is ignored by HP-UX.

 

If you want to give read/write access to /tmp to only the hosts in the 8.10.4.xx segment, the proper HP-UX 11.11 syntax would be:

/tmp -access=@8.10.4.0/24

 

Please read "man 4 exports" for more details.

MK
Yaroki
Super Advisor

Re: NFS export files

Thank for the reply Matti.

 

I red man 4 exports and create the correct syntax as you recommended.

Still the mount can be performed.

 

Messages received:

 

nfs mount: getaddr_nfs:  server1: NFS service not responding(retry delay=5s)

nfs mount: retry:  retrying(1) for: /server1 after 5 seconds

nfs mount: retry: giving uo on: /server1

 

BR,

Yali

V. Nyga
Honored Contributor

Re: NFS export files

Hi,

can you show us the new file?

Also:
- nfs service must run at the 'server' (is it linux ox hp-ux? which nfs version?)
- directory must be exported at the server

V.
*** Say 'Thanks' with Kudos ***
Matti_Kurkela
Honored Contributor

Re: NFS export files

Any changes to /etc/exports will only take effect after you run "exportfs -a" on the NFS server host or restart the NFS server processes. Did you do this?

 

The first step of basic NFS connectivity troubleshooting would be running "rpcinfo -p" on the NFS server host, then going to the NFS client host and running "rpcinfo -p <NFS server host name>". Both outputs should be about the same and contain no error messages. This confirms that the rpcbind/portmapper service is working on the NFS server host and accessible from the NFS client host.

 

As far as I understand, the NFS file locking and reboot recovery protocols rely on hostnames, so it is not enough that the client host can resolve the server's IP address when given its hostname: both the client and the server must also be able to resolve each other's hostnames quickly and reliably when given the IP address only (= reverse lookup).

MK
Yaroki
Super Advisor

Re: NFS export files

Hello,

 

As I mentioned I'm running HP-UX B.11.11

I am export all my entries after editing /etc/exports with # exportfs -a. I even see that on the client side by #showmount -e <nfs server HOST_NAME>

 

# rcp -p on both sides give no error message. Should I attach the outputs?

 

Both client and server resolve the IP address quickly when giving the hostname (I used #ping <hostname> for both the client and the server) .

#ps -ef | grep nfs SERVER

gives

/usr/sbin/nfsd (many times)

nfsktcp

nfskd

#ps -ef | grep nfs CLIENT

gives

/usr/sbin/nfsd (many times)

nfskd

 

 

Two more things:

1. Now I can mount nothing via nfs

2. # netstat | grep nfs gives

tcp        0      0      server1.1021             ednop.nfsd         ESTABLISHED

status  only on both sides.

I can mount to this machine (ednop) as well from my client

 

Yali

V. Nyga
Honored Contributor

Re: NFS export files

>I am export all my entries after editing /etc/exports
>Now I can mount nothing via nfs
It seems like /etc/exports was edited wrong.
Please show us the content of the file.

V.
*** Say 'Thanks' with Kudos ***
Yaroki
Super Advisor

Re: NFS export files

Please find the exports content file:

 

/scc -anon=65534
/tmp -access=@8.12.4.0/24
/var -anon=@8.12.4.0/24
/

Yaroki
Super Advisor

Re: NFS export files

And of course many thanks :)

V. Nyga
Honored Contributor

Re: NFS export files

I would suggest to test this content first:

/scc -anon=65534
/tmp -anon=65534
/var -anon=65534
*** Say 'Thanks' with Kudos ***