1755678 Members
4713 Online
108837 Solutions
New Discussion юеВ

NFS mount problems

 
Kartika Garg
Occasional Contributor

NFS mount problems

Is is no longer possible to NFS mount directories on the NFS client that are links on the NFS server? I was able to do this earlier.

On the server (D380)I have a filesystem /kartika/install

I have a link : /link1-> /kartika/install.
I export /link1 on the server but I am unable to mount the same from the client(a D280 machine).

On the other hand if I give the filesystem to mount as server:/kartika/install I am able to mount.

Is there a patch available for this problem?

I have the patches PHNE_17247 and PHNE_23249 installed on both the server and the client.

Thanx in advance
Kartika
6 REPLIES 6
Boudewijn
Occasional Contributor

Re: NFS mount problems

Hi Kartika,

Dont know if it helps you but there are two types of links.
The hard and the soft link. Only softlinks may be established across file systems.

use ln -s ... to create a softlink.

Boudewijn
Stefan Farrelly
Honored Contributor

Re: NFS mount problems


Ive just managed to mount a link on one server to another no problem. You need to put into the exports file on the server both the link and the dir its linked to;

eg. On my server I have /opt and a link /tt (pointing to /opt)
In my /etc/exports file I have;
/tt
/opt

And on my other server I can mount /tt no problem.
If I omit /opt I from the exports file I get a permission error.
We have the following patch XSWGR1100

B.11.00.53.2 HP-UX General Release Patches, June 2001
es bundle installed;

Im from Palmerston North, New Zealand, but somehow ended up in London...
Animesh Chakraborty
Honored Contributor

Re: NFS mount problems

Hi,
You have to do NFS mount for the directory on the clinet.
server:/katika/install /kartika/install
server:/dir(mount point of the link file) /dir
eg
server:/kartika1 /kartika1
path of the link file should be /kartika1/link1

I am using this way
Thanks
Animesh
Did you take a backup?
Eugen Cocalea
Respected Contributor

Re: NFS mount problems

Hi,

Well, I tested the issue and it works just fine on an old hp9000 running HPUX B.11.00. I didn't need to put both the directory and the link on /etc/exports.

Anyway, what error messages did you get when you tried to mount the link from the server?
To Live Is To Learn
Santosh Nair_1
Honored Contributor

Re: NFS mount problems

Just checking through the patches on my machine, I came across this blurb from PHNE_22125 ONC/NFS General Release Performance Patch

exportfs
SR: 8606108804
DTS: JAGab78579
When a user attempts to mount an exported
filesystem which is a symbolic link to an
actual directory or filesystem on an NFS
server, a "Permission Denied" error occurs.
This occurs after installing patch PHNE_18221.

The resolution was:

exportfs
JAGab78579
During the mount process rpc.mountd on the NFS
server resolves the requested mount path to its
actual path, then it verifies export permission
for this path against the list of export entries.
Previously rpc.mountd would resolve each path
entry in the exports list before verification
comparison, now it no longer does; and exportfs
exports directory paths exactly as specified to
it without resolving linked paths.
Resolution:
exportfs resolves symbolic links to real
directory paths and exports the real directory
paths.

So it sounds like you'd need to export both the link and the path the link points to. Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Kartika Garg
Occasional Contributor

Re: NFS mount problems

Hi,
Thanx everybody for responding.

Santosh,
I went through the patch list and for PHNE_21376 it says that the problem has been resolved and it will resolve the links before exporting. Or have I got it wrong?

-Kartika