--- Daniel Hokka Zakrisson <[EMAIL PROTECTED]> wrote: > Martin Fick wrote: > > 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 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.
OK, this seems to work, the drbd devices are no longer busy. The strange part is that it alaso removes all but the last mount from the current df and mount listings in the host namespace. This has another nasty side effect: when using the FileSystem ocf script with heartbeat, it can no longer unmount any of the hidden filesystems so I am back to the same point, unable to failover gracefully. I guess I could modify the FileSystem script to use /proc/mounts instead of the mount command, but it still seems wrong to not be able to see my filesystems when I use df. Is there a better workaround / fix to this namespace cleanup behavior? > > 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? Yes, sorry aptitude cut off the last 0. Thanks! -Martin __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver