Re: [Vserver] DRBD and vservers

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Sat 08 Jul 2006 - 07:01:35 BST
Message-ID: <44AF4A3F.3000300@hozac.com>

Martin Fick wrote:
> I am cross posting this to both the drbd and the
> vserver lists since it seems very relevant to both.
>
> I am using drbd with vservers and I am running into a
> problem trying to make drbd devices go secondary, they
> report a device busy problem.
>
> I have read everything here, but I do not think this
> addresses my problem:
> http://linux-vserver.org/advanced+DRBD+mount+issues
>
> I have several vservers and each one has its own drbd
> device so that they can be migrated independently from
> one host to another. The problem is that when a
> vserver is stopped and another vserver which was
> started after the first vserver is still running, the
> drbd device for the first device remains busy despite
> the fact that it is not mounted in any namespace
> anymore. It's as if vservers keep a reference to any
> filesystems mounted before they were started even if
> they are not visible within the vserver? Is there
> anyway to fix this?

Yes, you can enable namespace cleanup. I'm not sure which version of the
patch is in the current Debian package, it might need an update, but if
you have a working version, you should be able to touch
/etc/vservers/.defaults/namespace-cleanup and any guests you start after
that will not copy all the mounts.

> (the /proc/mounts in every
> vserver context does not list the filesystem)

You'll have you check the /proc/mounts inside the namespace only, as the
context chroots and the mounts that are not visible to it are hidden.

> I am using debian unstable with the debian kernel
> 2.6.16-1-vserver-686, the debian vserver tools 0.2.6,
> the debian util-vserver 0.30.210.1.

I assume you mean 0.30.210-10?

-- 
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Jul 8 07:01:46 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 08 Jul 2006 - 07:02:06 BST by hypermail 2.1.8