1847672 Members
3622 Online
110265 Solutions
New Discussion

Rexporting NFS mount

 
SOLVED
Go to solution
Ramesh_27
Occasional Advisor

Rexporting NFS mount

Hi

I am planning to export /sys file sytem on Server A. Server B will nfs mount that file system as /disk.

Is it possible for me to reexport /disk?
so that server C can nfs mount it as /sys/disk1

any answers highly appreciated!!!
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor

Re: Rexporting NFS mount

There is no need to reexport it. Simply create a mountpoint directory on Server C
e.g. mkdir -p /sys/disk1

and then mount -F ServerA:/sys /sys/disk1
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: Rexporting NFS mount

vi /etc/exports

add the filesystem and any access restrictions

exportfs -av

You'll get good diagnostics in case anything is misconfigured.

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
Ramesh_27
Occasional Advisor

Re: Rexporting NFS mount

Hi

I misstated my question.

Can server B rexport its nfs mounted filesystems so that ican mount that file system from Server C.

Regds
ramesh
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Rexporting NFS mount

In depends upon the flavor of UNIX but typically you get an error something like "Too many levels of remote in path". This is not something that I would ever depend upon working and moreover it adds more overhead to an already expensive operation. It makes much more sense to avoid the middle server even if it is supported.
This is the kind of task the automounter was madde to handle.
If it ain't broke, I can fix that.
SS_6
Valued Contributor

Re: Rexporting NFS mount

I would recommend not to use -a option and use -i it will ignore options from /etc/exports file.
On serverB add the entry into exports file as mentioned by SEP and do
#exportfs -i -o access=serverC /sys
ON serverC
#mkdir /disk1
#mount serverC:/sys /disk1

DO man on exportfs for more details.
By providing solutions I am helping myself
SS_6
Valued Contributor

Re: Rexporting NFS mount

sorry last line should be
#mount serverB:/sys /disk1
By providing solutions I am helping myself
Senthil Kumar .A_1
Honored Contributor

Re: Rexporting NFS mount

hello ramesh,

I am stumped by the reply of SS that server C could mount from server B's /disk1 which is the exported fs of server A. It was mentioned in one of HP doc that you can't re-export the nfs mounted file system. Kudos to SS if it were otherwise as he suggested and if working.

But,I strongly advocate against the usage of such an option....on the contrary I agree with clay's statement more than SS because,if u go ahead with SS option then your server C depends on both Server B AND server A.It is higly recommended not to do this.Whereas if u could nfsmount on server C from server A directly then atleast u are safer because it depends only on server A.


regards
Senthil


P.S : "Certain repremansion is blessing in disguise".please listen to clay stevenson in this regard
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)

Re: Rexporting NFS mount

hello,

you cannot re-export the nfs mount.
modify /etc/exports on NFS server suitably to
give access to ServerC.
eg. /sys access:ServerB,ServerC
and then run #exportfs command to update /etc/xtab.
on the client side, mount the exported filesystem.
SS_6
Valued Contributor

Re: Rexporting NFS mount

okay,I misuderstood the question little bit because of two posting of questions and I am also not in favour of reexporting nfs file system and especially when it is easily possible to export the file system from the (one)same serverA to serverC.I also really don't see any logic to rexport any file system from another server. Thanks guys for pointing it out. Have a nice weekend.
By providing solutions I am helping myself
SS_6
Valued Contributor

Re: Rexporting NFS mount

If you give a closer look to my solution. I have suggested to reexport /sys and NOT /disk1 which is only possible from serverA.
By providing solutions I am helping myself