Operating System - HP-UX
1830383 Members
2345 Online
110001 Solutions
New Discussion

make links between directories

 
Duda_1
Frequent Advisor

make links between directories

I have a directory /fs1/aa1 and I made a link in /fs2/ like this:

ln -s /fs1/aa1 /fs2/aa1

I did a "ll" and I can see the link, and it works from UNIX.
I have share by NFS /fs2, when I mount /fs2 in a windows PC I see the directoy /fs2/aa1 like an archive NOT A DIRECTORY, so from windows I can't access to the link.

Somebody know what do I have to do to see the link like a directory in windows?
5 REPLIES 5
David Child_1
Honored Contributor

Re: make links between directories

First I believe you are having problems because the server is only advertising /fs2 to your windows server. Since your link reads "/fs1/aaa1" the client says "I don't know about /fs1".

You might be able to fix this by removing the link and recreating as follows:

1. cd /fs2
2. ln -s ../fs1/aaa1 ./aaa1

Also, are these separate file systems?

David
Duda_1
Frequent Advisor

Re: make links between directories

yes, They are diferent filesystem...
I Try but it doesn't work.
Stuart Browne
Honored Contributor

Re: make links between directories

NFS is usually pretty intelligent, from a security standpoint.

It usually won't follow symlinks, or child mounts.

Meaning, if you want to access data in '/fs1/aa1', you'll have to share that path too.
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: make links between directories

err won't follow symlinks outside of the existing mount.

Sorry, 2am ;) mind not as clear as I thought it was..
One long-haired git at your service...
David Child_1
Honored Contributor

Re: make links between directories

Paola,

Stuart is correct. You really won't have any luck with the symlink over the two mount points.

" The NFS protocol is specified to not let a NFS client cross
mount points. This is so the NFS client does not get confused
about the identity of files in the even[t] two files on two
different server file systems share the same file id (inode #). "

The relative link naming will only work within the same mount point so that is not really what you need.

I believe your only two options are to either export /fs1 and /fs2 or get all the data into the same mount point.

david