* NFS mounts and its propagation
@ 2011-09-26 11:03 Sreeram B S
2011-09-28 23:02 ` Venkateswararao Jujjuri
0 siblings, 1 reply; 4+ messages in thread
From: Sreeram B S @ 2011-09-26 11:03 UTC (permalink / raw)
To: linux-nfs
Hi,
I am Sreeram. This question is related to NFS.
I have a typical scenario. Please assume that there are 3 machines
M1, M2, M3. Each of them are having directories /tmp/abc in them. All
the NFS permissions are set appropriately.
Now, a user mounts M2's /tmp/abc on M1's /tmp/abc by issuing mount
command on M1. Mount is successful.
Then the user mounts M3's /tmp/abc on M2's /tmp/abc by issuing
mount command on M2. Mount successful.
Now I would expect the contents of M3's /tmp/abc to be shown as
output of 'ls' issue on M1. But this is not happening. I am unable to
comprehend the reason. Could you please guide me?
According to me, the contents of M3 should have shown up in M1's
'ls' command, because the /tmp/abc of M1 is nothing but a *live*
reflection of /tmp/abc of M2. So whatever changes are done to M2's
/tmp/abc should be reflected on M1. Here, M2's /tmp/abc is mounting M3's
/tmp/abc and so this change should be reflected on M1's /tmp/abc as
well. But this isn't happening.
Kindly suggest if I am incorrect in my understanding or usage.
The command I am using is:
On M1: mount -t nfs M2:/tmp/abc /tmp/abc
On M2: mount -t nfs M3:/tmp/abc /tmp/abc
Regards,
Sreeram
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: NFS mounts and its propagation
2011-09-26 11:03 NFS mounts and its propagation Sreeram B S
@ 2011-09-28 23:02 ` Venkateswararao Jujjuri
2011-09-29 0:08 ` Trond Myklebust
0 siblings, 1 reply; 4+ messages in thread
From: Venkateswararao Jujjuri @ 2011-09-28 23:02 UTC (permalink / raw)
To: Sreeram B S; +Cc: public-linux-nfs-u79uwXL29TY76Z2rM5mHXA
On 09/26/2011 04:03 AM, Sreeram B S wrote:
> Hi,
> I am Sreeram. This question is related to NFS.
> I have a typical scenario. Please assume that there are 3 machines M1,
> M2, M3. Each of them are having directories /tmp/abc in them. All the
> NFS permissions are set appropriately.
> Now, a user mounts M2's /tmp/abc on M1's /tmp/abc by issuing mount
> command on M1. Mount is successful.
> Then the user mounts M3's /tmp/abc on M2's /tmp/abc by issuing mount
> command on M2. Mount successful.
> Now I would expect the contents of M3's /tmp/abc to be shown as output
> of 'ls' issue on M1. But this is not happening. I am unable to
> comprehend the reason. Could you please guide me?
What are you seeing instead? Are you seeing M2's contents on M1?
Did you try to change the order of the experiment? i.e First mount M3 on
M2 and then mount M2 on M1? Just curious to see if there is any change
in the behavior.
Thanks,
JV
>
> According to me, the contents of M3 should have shown up in M1's 'ls'
> command, because the /tmp/abc of M1 is nothing but a *live* reflection
> of /tmp/abc of M2. So whatever changes are done to M2's /tmp/abc should
> be reflected on M1. Here, M2's /tmp/abc is mounting M3's /tmp/abc and so
> this change should be reflected on M1's /tmp/abc as well. But this isn't
> happening.
>
> Kindly suggest if I am incorrect in my understanding or usage.
> The command I am using is:
>
> On M1: mount -t nfs M2:/tmp/abc /tmp/abc
> On M2: mount -t nfs M3:/tmp/abc /tmp/abc
>
> Regards,
> Sreeram
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS mounts and its propagation
2011-09-28 23:02 ` Venkateswararao Jujjuri
@ 2011-09-29 0:08 ` Trond Myklebust
0 siblings, 0 replies; 4+ messages in thread
From: Trond Myklebust @ 2011-09-29 0:08 UTC (permalink / raw)
To: Venkateswararao Jujjuri
Cc: Sreeram B S, public-linux-nfs-u79uwXL29TY76Z2rM5mHXA
On Wed, 2011-09-28 at 16:02 -0700, Venkateswararao Jujjuri wrote:
>
> On 09/26/2011 04:03 AM, Sreeram B S wrote:
> > Hi,
> > I am Sreeram. This question is related to NFS.
> > I have a typical scenario. Please assume that there are 3 machines M1,
> > M2, M3. Each of them are having directories /tmp/abc in them. All the
> > NFS permissions are set appropriately.
> > Now, a user mounts M2's /tmp/abc on M1's /tmp/abc by issuing mount
> > command on M1. Mount is successful.
> > Then the user mounts M3's /tmp/abc on M2's /tmp/abc by issuing mount
> > command on M2. Mount successful.
> > Now I would expect the contents of M3's /tmp/abc to be shown as output
> > of 'ls' issue on M1. But this is not happening. I am unable to
> > comprehend the reason. Could you please guide me?
>
> What are you seeing instead? Are you seeing M2's contents on M1?
> Did you try to change the order of the experiment? i.e First mount M3 on
> M2 and then mount M2 on M1? Just curious to see if there is any change
> in the behavior.
As Bruce said, re-exporting of NFS-mounted filesystems is not supported
by the Linux server.
Just mount M3's contents directly onto M1, or use a NFSv4 referral (man
5 exports0.
Trond
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS mounts and its propagation
@ 2011-09-26 12:22 Benny Halevy
0 siblings, 0 replies; 4+ messages in thread
From: Benny Halevy @ 2011-09-26 12:22 UTC (permalink / raw)
To: Sreeram B S, linux-nfs-owner, linux-nfs
MS4gTkZTdjMgTE9PS1VQIGRvZXMgbm90IGNyb3NzIG1vdW50IHBvaW50cy4NCg0KMi4gTkZTIGlz
IG5vdCByZWV4cG9ydGFibGUgb24gbGludXguDQoNCkJlbm55DQotLS0tLS1PcmlnaW5hbCBNZXNz
YWdlLS0tLS0tDQpGcm9tOiBTcmVlcmFtIEIgUw0KU2VuZGVyOiBsaW51eC1uZnMtb3duZXJAdmdl
ci5rZXJuZWwub3JnDQpUbzogbGludXgtbmZzQHZnZXIua2VybmVsLm9yZw0KU3ViamVjdDogTkZT
IG1vdW50cyBhbmQgaXRzIHByb3BhZ2F0aW9uDQpTZW50OiBTZXAgMjYsIDIwMTEgMTQ6MDMNCg0K
SGksDQogICAgIEkgYW0gU3JlZXJhbS4gVGhpcyBxdWVzdGlvbiBpcyByZWxhdGVkIHRvIE5GUy4N
CiAgICAgSSBoYXZlIGEgdHlwaWNhbCBzY2VuYXJpby4gUGxlYXNlIGFzc3VtZSB0aGF0IHRoZX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GVkIG9uIE0xLiBI
ZXJlLCBNMidzIC90bXAvYWJjIGlzIG1vdW50aW5nIE0zJ3MgDQovdG1wL2FiYyBhbmQgc28gdGhp
cyBjaGFuZ2Ugc2hvdWxkIGJlIHJlZmxlY3RlZCBvbiBNMSdzIC90bXAvYWJjIGFzIA0Kd2VsbC4g
QnV0IHRoaXMgaXNuJ3QgaGFwcGVuaW5nLg0KDQpLaW5kbHkgc3VnZ2VzdCBpZiBJIGFtIGluY29y
cmVjdCBpbiBteSB1bmRlcnN0YW5kaW5nIG9yIHVzYWdlLg0KICAgVGhlIGNvbW1hbmQgSSBhbSB1
c2luZyBpczoNCg0KICAgIE9uIE0xOiAgbW91bnQgLXQgbmZzIE0yOi90bXAvYWJjIC90bXAvYWJj
DQogICAgT24gTTI6ICBtb3VudCAtdCBuZnMgTTM6L3RtcC9hYmMgL3RtcC9hYmMNCg0KUmVnYXJk
cywNClNyZWVyYW0NCi0tDQpUbyB1bnN1YnNjcmliZSBmcm9tIHRoaXMgbGlzdDogc2VuZCB0aGUg
bGluZSAidW5zdWJzY3JpYmUgbGludXgtbmZzIiBpbg0KdGhlIGJvZHkgb2YgYSBtZXNzYWdlIHRv
IG1ham9yZG9tb0B2Z2VyLmtlcm5lbC5vcmcNCk1vcmUgbWFqb3Jkb21vIGluZm8gYXQgIGh0dHA6
Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21vLWluZm8uaHRtbA0KDQo=
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-29 0:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 11:03 NFS mounts and its propagation Sreeram B S
2011-09-28 23:02 ` Venkateswararao Jujjuri
2011-09-29 0:08 ` Trond Myklebust
-- strict thread matches above, loose matches on Subject: below --
2011-09-26 12:22 Benny Halevy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).