1834434 Members
2278 Online
110067 Solutions
New Discussion

Re: NFS Problem

 
Wael_4
Advisor

NFS Problem

I have the following problem:
I made export to one folder on HP-UX host "A" to be available on the network by using sam and configuring only host "B" in the access list of the export folder.
and when trying to mount this folder from another HP-UX host "B" on the network I got a message "permission denied".

on the other hand when I make the export on host "B" and try to mount the folder on host "A" it works well without any problem.

thanks in advance for your reply.

my e-mail : wadel@alfaisaliah.com
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: NFS Problem

Okay:

1) I recommend against posting your emaiil address to the forum. People misuse it. Not itrc people but this forum is indexed in google.

2) I'd like to see the /etc/exports file on both systems. I'm reasonlably certain that permissions are wrong on Host "B"

3) exportfs -av Lets see if there are configuration errors on Host B. I think that likely.

You may be able to compare the /etc/exports files and figure out the issue with the diagnostic steps I've posed.

Good Luck,

More Information=faster resolution.

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
Prashant Zanwar_4
Respected Contributor

Re: NFS Problem

Do a exportfs -av on both the servers. You should be able to see the exports.
If not, crosscheck your entries in /etc/exports file.

directory - option[, option

this shall be your syntax while doing exports.
Do you have any erros on exportfs -av, if so, tell in the forum what are they.

Last and not least, how about your NFS daemons, are they all started.

Hope it helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Wael_4
Advisor

Re: NFS Problem

the problem happens when I'm trying the following command on host "B" after exporting the folder:
"mount A:/ora/stage/arch /ora/stage/arch"
(where A: is the first host name"
it gives me permission denied

regards
Steven E. Protter
Exalted Contributor

Re: NFS Problem

Need to see the configuration files or the ouptut from exportfs -av on Host B

There are literally dozens of possible causes including the permissions on the exported directories.

Check the permissions on the folders listed in /etc/exports. Post the configuration files /etc/exports.

Please.

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
Muthukumar_5
Honored Contributor

Re: NFS Problem


Let's us go with command line on as,

HOST A:

1> export a directory as,

exportfs -iv
exportfs -iv /tmp/test -o root=hostB

2> check the export directory availabilty as,
exportfs -v

HOST B:

mkdir /tmp/testmnt
mount hostA:/tmp/test /tmp/testmnt

mount -v

it will give mounting informations there.

or bdf or df there.

Put this entry on /etc/fstab so that it will be mounted when ever your system get rebooted there.

Note: Don't give mail ID's on forums. You will get replies at once here.

You can verify nfs informations with nfsstat command there. see man nfsstat

HTH.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: NFS Problem


"mount A:/ora/stage/arch /ora/stage/arch"
(where A: is the first host name"
it gives me permission denied

says you are not having permission on HOSTB to mount HOST A's directory via NFS


Check this,

on host A:

1> exportfs -v
2> nslookup hostA / nslookup hostB

on host B:
1> nslookup hostA

and post to forums.
Easy to suggest when don't know about the problem!
V. Nyga
Honored Contributor

Re: NFS Problem

Hi,

what output does 'ps -ef|grep nfs' gives at host A and host B?

Volkmar
*** Say 'Thanks' with Kudos ***
Wael_4
Advisor

Re: NFS Problem

thank you every body for your help