Skip to contentSkip to conversation

waiting for MNT_DETACH

DISCUSSION Ian Turner 2 participants 2 messages Jul 2, 2006 – Jul 3, 2006

lore
Share & tools
lore

Ian Turner

author
#0 lore raw

Hello all,

I administer a two-node high-availability cluster using DRBD and heartbeat. One of my concerns is that at failover time, the replicated filesystem might be in use. I can stop the official services that use the filesystem, but some other transient scripts might have reason to probe it for a second or two.

umount -l seems like the answer to this question, in that one can ensure no new accesses will be made to the filesystem, while those that exist can take their time to finish. The catch is, there does not appear to be a way to tell if the unmount has really completed or not.

So, here's the question: Is there a way to check if a call to umount2(..., MNT_DETACH) has completed or not?

Thanks,

--Ian Turner

#1 lore raw

Hi Ian,

Quoted 4 lines · Ian Turner

I administer a two-node high-availability cluster using DRBD and heartbeat.

So, here's the question: Is there a way to check if a call to umount2(..., MNT_DETACH) has completed or not?

Check the usage count (refcount) of the DRBD module. It should be as low as you would expect with a normal umount.

"cat /sys/module/drbd/refcnt" should be the right command.

Regards

Ingo Oeser