[DRBD-user] unable to unmount drdb+ocfs2 with bind-mount active

Lars Ellenberg lars.ellenberg at linbit.com
Fri Jan 18 13:36:37 CET 2013

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Fri, Jan 18, 2013 at 11:14:27AM +0100, Florian Schaal wrote:
> Hi all,
> 
> i´m not sure if my problem is realted to ocfs2 or to drbd, so i x-post
> this post to both lists.
> 
> I´ve drbd-volume [v 8.3.9] (dual-primary) with ocfs2 [v 1.6.3] as a
> filesystem.
> 
> If I add a "bind-mount" like
> 
> /var/log/httpd/blog.schaal-24.de /srv/www/clients/client2/web323/log
> none bind,nobootwait 0 0
> 
> to /etc/fstab or add it by hand, i`m unable to run umount /srv/www
> (which is a drbd-volume with ocfs2):
> 
> umount: /srv/www: device is busy.
>         (In some cases useful info about processes that use
>          the device is found by lsof(8) or fuser(1))
> 
> But neither "lsof|grep www" nor "fuser -km /srv/www" shows anything.
> 
> I must first unmount the bind-mount by hand before "umount /srv/www"
> could be executed.
> 
> 
> Any suggestions how to fix this?

You gave the answer yourself.
You cannot unmount something that contains active mountpoints.

You need to first umount the submounts, even if they are bindmounts.

BTW, the Pacemaker Filesystem resource agent will (try to) do that for you.


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list