Operating System - HP-UX
1830014 Members
2014 Online
109998 Solutions
New Discussion

nfs filesystems and links

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

nfs filesystems and links

Hello>

I have a files system:

server1> /scratch-local/data/out1 on server1

I have an nfs mounted filesystem on the same server

server1> /scratch-dev
nfspkg45:/scratch-dev
8388608 3541016 4544640 44% /scratch-dev

is there anyway to link the files in server1>/scratch-local/data/out1 to server1>/scratch-dev/data/out1 and view from server2.

ie I create a link from /scratch-dev/data/out1

ln -s /scratch-local/data/out1 logs.

from server2> cd /scratch-local/data/out1/logs
not found:

so I presume from server2 the link /scratch-local/data/out1/logs is being sourced locally from server2

tahnks for any help.
hello
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: nfs filesystems and links

You can not do that. there is no way server2 knows about /scratch-local/data/out1.

It is just an unvalid link.
There is no substitute to HARDWORK
TwoProc
Honored Contributor

Re: nfs filesystems and links

You have to mount /scratch-local/data/out1 onto server2 as well. Either at the same path, or set up some local symbolic links on server2 that take you from /scratch-local/data/out1 to the nfs mount point of this mounted system too.

Basically, you have to mount everything that you're trying to get to via symbolic links, and you'd pretty much have to a) mount everything at the same mount points as the primary server,or b) mount them at new mount points to come up with symbolic link scheme that gets you to the same result from the first symbolic link that got brought over with the first nfs mount point.

We are the people our parents warned us about --Jimmy Buffett
Devesh Pant_1
Esteemed Contributor

Re: nfs filesystems and links

Lawrenzo,
server2 has no way of knowing what you have on server1 since the ink is available uder the flesystem but not the destination on server2 it will not work.

If you cross mount ther destination from server1 on to server2, then this will work depending upon the path and rights.

thanks
DP
lawrenzo_1
Super Advisor

Re: nfs filesystems and links

ok I though this was the case -

so

on server 2 I have nfs mount /scratch-dev,

nfspkg45:/scratch-dev
8388608 3541328 4544336 44% /scratch-dev

server2> scratch-local > scratch-dev

I want to mount /scracth-local/tssu1gb to server 2

server2>mount server1:/scracth-local/tssu1gb /tempmnt however I am getting the following error:

nfs mount: get_fh: sqfe837a:: RPC: Program not registered
nfs mount: get_fh: sqfe837a:: RPC: Program not registered
nfs mount: retry: retrying(1) for: /tempmnt after 5 second

can i mount server1:/scracth-local/tssu1gb to /scratch-dev as /scratch-dev is already nfs mounted as described above.

Thanks
hello
lawrenzo_1
Super Advisor

Re: nfs filesystems and links

solution is:

on server 1 edit /etc/rc.config.d/nfsconf

NFS_CLIENT=1
NFS_SERVER=1

then

/sbin/init.d/nfs.server start

on server2

server2> mount server1:/scratch-local/tssu1gb /scratch-dev/tssu1gb

done!
hello