Hi
Is there any way to re-export an nfs mounted directory? I am having three servers runnning on centos4.5 and i am trying to implement nfs share in an below manner [bcoz there is no alternative way for me to setup nfs share]
HOST A--->>>EXPORTS /prod/data ------->>>HOST B
HOST B ---->>MOUNTED ------>>> /prod/data-----UNDER---/PROD1 [working fine]
HOST B EXPORTS /PROD1 ------>>>>HOST C
HOST C ----->>TRY MOUNTING ----->>>RESULT IN BELOW ERROR
BUT WHEN I TRY TO MOUNT THE ALREADY MOUNTED NFS SHARE IN "HOST C " I AM GETTING BELOW ERROR.
#################MOUNT ERROR########################################## mount: 10.65.64.30:/PROD1 failed, reason given by server: Permission denied ##########################################################################
Can anyone suggest me the way to work out aboVE scenario.
Note: I find no -r(-re-export) option in rpc.mountd
REGARDS LINGU
Quoting whoami i hicheerup@gmail.com:
Hi
Is there any way to re-export an nfs mounted directory? I am having three servers runnning on centos4.5 and i am trying to implement nfs share in an below manner [bcoz there is no alternative way for me to setup nfs share]
Did you add the options crossmnt,fsid=0 to the top level nfs export? The fsid=0 might not be needed, but I'm pretty sure the crossmnt is needed.
Barry
whoami i wrote:
Hi
Is there any way to re-export an nfs mounted directory? I am having three servers runnning on centos4.5 and i am trying to implement nfs share in an below manner [bcoz there is no alternative way for me to setup nfs share]
HOST A--->>>EXPORTS /prod/data ------->>>HOST B
HOST B ---->>MOUNTED ------>>> /prod/data-----UNDER---/PROD1 [working fine]
HOST B EXPORTS /PROD1 ------>>>>HOST C
HOST C ----->>TRY MOUNTING ----->>>RESULT IN BELOW ERROR
BUT WHEN I TRY TO MOUNT THE ALREADY MOUNTED NFS SHARE IN "HOST C " I AM GETTING BELOW ERROR.
#################MOUNT ERROR########################################## mount: 10.65.64.30:/PROD1 failed, reason given by server: Permission denied ##########################################################################
Can anyone suggest me the way to work out aboVE scenario.
Note: I find no -r(-re-export) option in rpc.mountd
AFAIK, it is not possible to (re-)export NFS mounted file systems using the kernel NFS server.
It might be possible to do this by running a userland NFS server (on "host b"), although I've never done this and I believe there are known issues with doing this.
James Pearson
below manner [bcoz there is no alternative way for me to setup nfs share]
Why not? Firewalling/routing is not a problem just use fixed ports on host A, and have host B forward requests. I've done that with nfs servers hiding on an internal subnet.
AFAIK, you can NOT re-export nfs mounts, it's not working and it's not supposed to.
BR Bent