Home » Mailing lists » Users » Same NFS export in multiple VEs with different mount options
Same NFS export in multiple VEs with different mount options [message #30452] |
Wed, 21 May 2008 22:44 |
Jonathan Beckman
Messages: 4 Registered: May 2008
|
Junior Member |
|
|
I've been trying to mount an exported NFS share in several VEs but with
different mount options(ro and rw in my case). For example, VE 1 tries to
mount the share with ro, that works fine. But when VE 2 tries to mount the
share in rw it'll get mounted with ro. It's the same vice versa(mounting it
rw first and trying to mount it ro).
Any tips? Just wanted to double check that I've haven't missed anything before
bug reporting it.
ps: I'm not subscribed to the list.
--
Jonathan Beckman
Stockholm
Spotify AB
Humlegårdsgatan 20
SE-114 51 STOCKHOLM
Sweden
|
|
|
|
|
|
|
Re: Same NFS export in multiple VEs with different mount options [message #30469 is a reply to message #30467] |
Mon, 26 May 2008 21:50 |
Yoann Moulin
Messages: 16 Registered: December 2007
|
Junior Member |
|
|
Jonathan Beckman a écrit :
> On Mon, May 26, 2008 at 6:43 PM, Yoann Moulin <ymo@adviseo.fr> wrote:
>> I don't if there are a link, but I've an issue with same nfs export in
>> differents VEs.
>>
>> see : http://forum.openvz.org/index.php?t=msg&goto=29539
>>
>> regards
>>
>> Yoann
>>
> My problem does not identify itself like this. I'm running a venet
> configuration though.
I think (I'm almost convince), it's not directly how the network is
configured (veth, venet, whatever) but how the kernel manage nfs export
so can be related to your case.
For my case, the bug appear when I shutdown an interface, in your case,
it's appear when you try different options on the mount, but in the both
cases, we are working on same nfs export.
I mean, I don't know how the kernel manage nfs export, I'm not enouph
familiar with kernel source to understand it, but trying to mount
exactly same mount point in 2 VEs can have side effect in kernel land.
if I'm mouting /mnt/data, it will be mounted like that on the HN:
nfs_server:/export/data /private/VEID1/mnt/data
nfs_server:/export/data /private/VEID3/mnt/data
so "nfs_server:/export/data" is exactly the same ref.
maybe it's already manage and in that case, mea culpa, but, I'm still
having a doubt.
fyi, I can reproduce your bug, if an export is already mounted in rw in
a VE, I can't mount it in ro.
regards
Yoann
|
|
|
Re: Same NFS export in multiple VEs with different mount options [message #30489 is a reply to message #30463] |
Tue, 27 May 2008 11:03 |
den
Messages: 494 Registered: December 2005
|
Senior Member |
|
|
On Mon, 2008-05-26 at 18:43 +0200, Yoann Moulin wrote:
> Jonathan Beckman a écrit :
> > On Mon, May 26, 2008 at 3:10 PM, Denis V. Lunev <den@openvz.org> wrote:
> >> could you specify, pls exact kernel version you are using
> > 2.6.18-fza-028stab053.5-amd64 #1 SMP
> >
> > Sorry about forgetting that.
>
> I don't if there are a link, but I've an issue with same nfs export in differents VEs.
>
> see : http://forum.openvz.org/index.php?t=msg&goto=29539
I have reproduced your bug for debian kernel. The problem is specific to
it, RHEL5 based kernel is free of this issue. Thank you for the report.
I'll try to produce the fix ASAP.
Regards,
Den
|
|
|
Re: Same NFS export in multiple VEs with different mount options [message #30491 is a reply to message #30489] |
Tue, 27 May 2008 12:42 |
den
Messages: 494 Registered: December 2005
|
Senior Member |
|
|
Guys, could you test this patch for both your cases?
Regards,
Den
On Tue, 2008-05-27 at 15:03 +0400, Denis V. Lunev wrote:
> On Mon, 2008-05-26 at 18:43 +0200, Yoann Moulin wrote:
> > Jonathan Beckman a écrit :
> > > On Mon, May 26, 2008 at 3:10 PM, Denis V. Lunev <den@openvz.org> wrote:
> > >> could you specify, pls exact kernel version you are using
> > > 2.6.18-fza-028stab053.5-amd64 #1 SMP
> > >
> > > Sorry about forgetting that.
> >
> > I don't if there are a link, but I've an issue with same nfs export in differents VEs.
> >
> > see : http://forum.openvz.org/index.php?t=msg&goto=29539
>
> I have reproduced your bug for debian kernel. The problem is specific to
> it, RHEL5 based kernel is free of this issue. Thank you for the report.
>
> I'll try to produce the fix ASAP.
>
> Regards,
> Den
>
[NFS]: NFS super blocks in different VEs are different
Teach nfs_compare_super to this.
Signed-off-by: Denis V. Lunev <den@openvz.org>
-------
--- ./fs/nfs/super.c.nfs1 2008-05-27 16:33:43.000000000 +0400
+++ ./fs/nfs/super.c 2008-05-27 16:34:50.000000000 +0400
@@ -1020,6 +1020,9 @@ static int nfs_compare_super(struct supe
return 0;
if (old->addr.sin_port != server->addr.sin_port)
return 0;
+ if (!ve_accessible_strict(old->client->cl_xprt->owner_env,
+ get_exec_env()))
+ return 0;
return !nfs_compare_fh(&old->fh, &server->fh);
}
|
|
|
Re: Same NFS export in multiple VEs with different mount options [message #30500 is a reply to message #30491] |
Tue, 27 May 2008 14:31 |
Yoann Moulin
Messages: 16 Registered: December 2007
|
Junior Member |
|
|
Denis V. Lunev a écrit :
> Guys, could you test this patch for both your cases?
fixed !!!!!!!
\o/ \o_ \o/ _o/ \o/
for the both cases, unable to reproduce.
thanks a lot, really :)
Regards
Yoann
> On Tue, 2008-05-27 at 15:03 +0400, Denis V. Lunev wrote:
>> On Mon, 2008-05-26 at 18:43 +0200, Yoann Moulin wrote:
>>> Jonathan Beckman a écrit :
>>>> On Mon, May 26, 2008 at 3:10 PM, Denis V. Lunev <den@openvz.org> wrote:
>>>>> could you specify, pls exact kernel version you are using
>>>> 2.6.18-fza-028stab053.5-amd64 #1 SMP
>>>>
>>>> Sorry about forgetting that.
>>> I don't if there are a link, but I've an issue with same nfs export in differents VEs.
>>>
>>> see : http://forum.openvz.org/index.php?t=msg&goto=29539
>> I have reproduced your bug for debian kernel. The problem is specific to
>> it, RHEL5 based kernel is free of this issue. Thank you for the report.
>>
>> I'll try to produce the fix ASAP.
>>
>> Regards,
>> Den
>>
|
|
|
|
Goto Forum:
Current Time: Mon Nov 04 14:59:53 GMT 2024
Total time taken to generate the page: 0.03472 seconds
|