Re: [Vserver] Abnormal NFS behaviour

From: Jim Wight <j.k.wight_at_ncl.ac.uk>
Date: Mon 02 Jul 2007 - 13:19:11 BST
Message-Id: <1183378751.26748.33.camel@gudea.ncl.ac.uk>

On Wed, 2007-06-27 at 10:02 +0100, Jim Wight wrote:
> I have upgraded a host and transferred its services into a guest; both
> run CentOS 5. Two other (Fedora Core 4) guests remain unchanged. Since
> the change, NFS mounting fails to work in any of the guests. The new one
> uses ccapabilities with SECURE_MOUNT, SECURE_REMOUNT and BINARY_MOUNT,
> while the other two use CAP_SYS_ADMIN. I am using 2.6.20.11-vs2.2.0 with
> util-vserver 0.30.213.
>
> I have discovered, though, that NFS mounting works in the guests if the
> host runs as an NFS server (with no exports).
>
> What could be responsible for this abnormal behaviour? I can't think of
> anything I have done differently this time.

I've reproduced the problem with a new host and guest, both running
CentOS 5, and using the same 2.6.20.11-vs2.2.0 kernel. It is also
present with a newer kernel, namely 2.6.21.5-vs2.2.0-rc3.

However, NFS mounting works as expected with an older kernel
(2.6.17.11-vs2.0.2), i.e. the guest can perform NFS mounts independently
of the host.

I notice the following Changelog entry dated 13th Dec 2006 concerning
vs2.0.3-rc1:

      * cleanup
      * refix VXC_BINARY_MOUNT
      * don't advertize limits we don't support

Could it be that the change happened then? I'm assuming the current
behaviour is not intended, and that that exhibited by 2.6.17.11-vs2.0.2
is correct.

Jim

> # ./testme.sh
> Linux-VServer Test [V0.17] Copyright (C) 2003-2006 H.Poetzl
> chcontext is working.
> chbind is working.
> Linux 2.6.20.11-vs2.2.0 #1 SMP Sat May 12 11:39:29 BST 2007 i686
> Ea 0.30.213 273/glibc (DSa) <v13,net,v21>
> VCI: 0002:0200 273 030007b1 (TbsPHIW)
> ---
> [000]# succeeded.
> [001]# succeeded.
> [011]# succeeded.
> [031]# succeeded.
> [101]# succeeded.
> [102]# succeeded.
> [201]# succeeded.
> [202]# succeeded.
>
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Jul 2 14:52:15 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 02 Jul 2007 - 14:52:19 BST by hypermail 2.1.8