1833762 Members
2546 Online
110063 Solutions
New Discussion

NFS Mount Problem

 
SOLVED
Go to solution
Angela Shepherd
Advisor

NFS Mount Problem

I'm trying to mount an NFS filesystem to a new LClass 2000 machine running HP-UX 11.0. I went into SAM, Networking and Communications, Networked File Systems, Mounted Remote File Systems, Tab A (Add Remote File System) using NFS. Entered the Local directory name, Remote Server Name and the Remote Directory Name. I edited the /etc/fstab. When I tried to mount the file system under root I received a permission denied message. When I tried to stop and start the nfs cliet I received the following error message:

# /sbin/itit.d/nfs.client stop
killing rpc.lockd
killing rpc.statd
killing biod
# /sbin/init.d/nfs.client start
starting NFS CLIENT networking

starting up the rpcbind
rpcbind already started, using pid: 716
starting up the BIO daemons
/usr/sbin/biod 4
starting up the Status Monitor daemon
/usr/sbin/rpc.statd
starting up the Lock Manager daemon
/usr/sbin/rpc.lockd
starting up the Automount daemon
/usr/sbin/automount -f /etc/auto_master
No Maps were specified
mounting remote NFS file systems ...
Permission denied
FAILURE CODE: 1
Mount failed! Possible local filesystem mount.
If local filesystem, then nfs.server will mount it.
NO personal quote
12 REPLIES 12
John Carr_2
Honored Contributor
Solution

Re: NFS Mount Problem

Hi

on the NFS server you need to add an entry for the new client to /etc/exports the issue command exportfs -a

cheers
John.
Hartmut Lang
Trusted Contributor

Re: NFS Mount Problem

"permision denied" in NFS mounts is almost never caused by a local problem. Instead the NFS-server does not allow your NFS-client to mount the specific directory.

Use "exportfs" or SAM on the NFS-server to check the export-rights of the directory.

Hartmut
Niraj Kumar Verma
Trusted Contributor

Re: NFS Mount Problem


you can check two things


# showmount -e nfs_server_name

This will list you all the exported filesystem from your nfs server.

See wheather you have permission to mount it.

second you can also check wheather your both NFS client and server is able to resolve the name to ip.

try reexporting
# exportfs -av


-Niraj
Niraj.Verma@philips.com
Angela Shepherd
Advisor

Re: NFS Mount Problem

I edited the /etc/exports file. Issued the exportfs -a command and received the following error message:

exportfs error: test1: unknown host
NO personal quote
Niraj Kumar Verma
Trusted Contributor

Re: NFS Mount Problem

Hey !!

lokk like your server is not able to resolve test1 clinet

can you attach the /etc/exports file.


-Niraj
Niraj.Verma@philips.com
Angela Shepherd
Advisor

Re: NFS Mount Problem

# more /etc/exports
#/usr38 -root=dpas01:dpas02:dpas05:dpas06:206.37.151.53:#206.37.151.1:206.37.151.2:204.222.15.39:204.222.15.2,access=dpas01:#dpas02:dpas05:dpas06:206.37.151.1:206.37.151.2:204.222.15.39:204.222.15.2
/usr116 -anon=65534,root=dpas01:dpas03:dpas07:dpas13:dpas09:test1:test2,access=d
pas01:dpas03:dpas07:dpas09:dpas13:test1:test2
NO personal quote
John Carr_2
Honored Contributor

Re: NFS Mount Problem

Hi

quick way to resolve this use the client IP address in exports file but best way ensure hosts file , NIS , DNS are correctly setup.

cheers
John.
Niraj Kumar Verma
Trusted Contributor

Re: NFS Mount Problem

can you put the host entry (ipaddress hostname) for test1 in

/etc/hosts

and then try

also -anon=0

# exportfs -av

-Niraj
Niraj.Verma@philips.com
Angela Shepherd
Advisor

Re: NFS Mount Problem

I added the ip address for the client and I still received a exportfs error: test1: unknown host
NO personal quote
Niraj Kumar Verma
Trusted Contributor

Re: NFS Mount Problem

Check the host search order in


/etc/nsswitch.conf

hosts: files dns nis
Niraj.Verma@philips.com
Hartmut Lang
Trusted Contributor

Re: NFS Mount Problem

You can use "nslookup" to check your hostname resolution.

Either use "nslookup test1" or just "nslookup" to go into interactive mode.

In interactive mode you can use the command "policy" to print your current resolving policy. Or just type the hostname you want to lookup.
BTW you can also use nslookup to resolve ip-addresses to hostnames.

Hartmut
Angela Shepherd
Advisor

Re: NFS Mount Problem

Thank you very much. Please close this issue.

I added the ip address to the /etc/exports file that the nfs filesystem is located.

exportfs -av

cd to root and mounted the filesystem.

/sbin/init.d/nfs.client stop
/sbin/init.s/nfs.client start
NO personal quote