OpenVZ Forum


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 Go to next message
Jonathan Beckman is currently offline  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 #30455 is a reply to message #30452] Mon, 26 May 2008 13:10 Go to previous messageGo to next message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
could you specify, pls exact kernel version you are using

On Thu, 2008-05-22 at 00:44 +0200, Jonathan Beckman wrote:
> 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.
Re: Same NFS export in multiple VEs with different mount options [message #30458 is a reply to message #30455] Mon, 26 May 2008 14:39 Go to previous messageGo to next message
Jonathan Beckman is currently offline  Jonathan Beckman
Messages: 4
Registered: May 2008
Junior Member
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.


-- 
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 #30463 is a reply to message #30458] Mon, 26 May 2008 16:43 Go to previous messageGo to next message
Yoann Moulin is currently offline  Yoann Moulin
Messages: 16
Registered: December 2007
Junior Member
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

regards

Yoann
Re: Same NFS export in multiple VEs with different mount options [message #30467 is a reply to message #30463] Mon, 26 May 2008 18:22 Go to previous messageGo to next message
Jonathan Beckman is currently offline  Jonathan Beckman
Messages: 4
Registered: May 2008
Junior Member
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.


-- 
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 Go to previous messageGo to next message
Yoann Moulin is currently offline  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 Go to previous messageGo to next message
den is currently offline  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 Go to previous messageGo to next message
den is currently offline  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 Go to previous messageGo to next message
Yoann Moulin is currently offline  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
>>
Re: Same NFS export in multiple VEs with different mount options [message #30503 is a reply to message #30491] Tue, 27 May 2008 14:59 Go to previous message
Jonathan Beckman is currently offline  Jonathan Beckman
Messages: 4
Registered: May 2008
Junior Member
On Tue, May 27, 2008 at 2:42 PM, Denis V. Lunev <den@openvz.org> wrote:
> Guys, could you test this patch for both your cases?
Unable to reproduce here also! Thanks alot!

-- 
Jonathan Beckman

Stockholm

Spotify AB
Humlegårdsgatan 20

SE-114 51 STOCKHOLM

Sweden
Previous Topic: Problem starting Ubuntu 8.04
Next Topic: How can I determine "real" CPU consumption
Goto Forum:
  


Current Time: Mon Nov 04 14:57:11 GMT 2024

Total time taken to generate the page: 0.03386 seconds