1833433 Members
2904 Online
110052 Solutions
New Discussion

nfs share

 
honor
Occasional Contributor

nfs share

There is a way to make a NFS share to show a path name different than it actual long path name.

ex. /net//share
instead of
/net//vol1/oracal/sourece/share

1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: nfs share

Because the exportfs command requires the full path name, you have to export the full name BUT you can mount the filesystem anyway you like. You can even setup a symbolic link to refer to the filesystem/directory in anyway you like.

e.g. ln -s /net/hostname/vol1/oraclw/source/share /net/hostname/share

Using symbolic links doesn't even require that the file exist and the links are preserved across machine reboots. The link might point to nothing but the mountpoint if the filesystem is not mounted. Because you are using the /net directory, it is possible that you are using the automounter. In that case, all you need to do is change the automount maps.

If it ain't broke, I can fix that.