* waiting for MNT_DETACH
@ 2006-07-02 18:51 Ian Turner
2006-07-03 22:43 ` Ingo Oeser
0 siblings, 1 reply; 2+ messages in thread
From: Ian Turner @ 2006-07-02 18:51 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: waiting for MNT_DETACH
2006-07-02 18:51 waiting for MNT_DETACH Ian Turner
@ 2006-07-03 22:43 ` Ingo Oeser
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Oeser @ 2006-07-03 22:43 UTC (permalink / raw)
To: Ian Turner; +Cc: linux-kernel
Hi Ian,
On Sunday, 2. July 2006 20:51, Ian Turner wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-03 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-02 18:51 waiting for MNT_DETACH Ian Turner
2006-07-03 22:43 ` Ingo Oeser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®