Hi Sebastian,<br><br>Thanks for looking into this.<br><br>We don't use the Pacemaker and output of the command "crm status" as below:<br>[root@ ~]# crm status<br>-bash: crm: command not found<br><br>And output of the command "lsof | grep <mount_point>".<br>
<br>[root@ ~]# cat /proc/mounts | grep -i drbd<br>[root@ ~]# <br><br><br>Regards,<br>Dileep <br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
4. Re: DRBD device held open by someone (Sebastian Riemer)<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 30 Jun 2011 13:45:31 +0200<br>
From: Sebastian Riemer <<a href="mailto:sebastian.riemer@profitbricks.com">sebastian.riemer@profitbricks.com</a>><br>
Subject: Re: [DRBD-user] DRBD device held open by someone<br>
To: <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
Message-ID: <<a href="mailto:4E0C61DB.8040301@profitbricks.com">4E0C61DB.8040301@profitbricks.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Dileep,<br>
<br>
do you use Pacemaker? If you have a shell opened at the mount point of<br>
the DRBD device Pacemaker can't unmount while stopping the resource.<br>
Check the "crm status" output.<br>
<br>
Please run "lsof | grep <mount_point>" to determine which process keeps<br>
the device opened.<br>
<br>
Regards,<br>
<br>
Sebastian<br>
Linux Kernel Developer<br>
<br>
<br>
On 30/06/11 13:09, Dileep Nayak wrote:<br>
> Hi All,<br>
><br>
> While the issue "device held open by someone" was observed again today, we<br>
> found that e2fsck reported "Device or resource busy"<br>
><br>
> # e2fsck /dev/drbd0<br>
> e2fsck 1.39 (29-May-2006)<br>
> e2fsck: Device or resource busy while trying to open /dev/drbd0<br>
> Filesystem mounted or opened exclusively by another program?<br>
><br>
><br>
> Earlier we did not observe such "Device or resource busy" output from<br>
> e2fsck.<br>
><br>
> Please share your thoughts on the same.<br>
><br>
> Thanks<br>
> Dileep<br>
><br>
><br>
><br>
> O 4. Re: DRBD device held open by someone (Dileep Nayak)<br>
><br>
><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 4<br>
>> Date: Wed, 22 Jun 2011 13:22:47 +0530<br>
>> From: Dileep Nayak <<a href="mailto:tech.disscuss2011@gmail.com">tech.disscuss2011@gmail.com</a>><br>
>> Subject: Re: [DRBD-user] DRBD device held open by someone<br>
>> To: <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
>> Message-ID: <<a href="mailto:BANLkTin2_qavGzsoEvxfgOSUCoMi5aDksA@mail.gmail.com">BANLkTin2_qavGzsoEvxfgOSUCoMi5aDksA@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset="windows-1252"<br>
>><br>
>> Thanks Lars for your reply.<br>
>><br>
>> DRBD is used in conjunction with Linux-HA in a High Availability<br>
>> configuration to replicate data between the Active and Standby servers.<br>
>><br>
>> Our product is running LVM (Logical Volume Manager) on top of DRBD.<br>
>><br>
>> We are not using the nfs. The last point is not applicable in our case.<br>
>><br>
>> And please can you explain bit more the below mentioned cases by you and<br>
>> how<br>
>> to detect/verify them when the issue ?Device is held open by someone? is<br>
>> occurred.<br>
>><br>
>> Regards,<br>
>><br>
>> Dileep Nayak<br>
>><br>
>><br>
>><br>
>>> 6. Re: DRBD device held open by someone (Lars Ellenberg)<br>
>>><br>
>>><br>
>>><br>
>> Message: 6<br>
>> Date: Wed, 22 Jun 2011 00:01:49 +0200<br>
>> From: Lars Ellenberg <<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>><br>
>> Subject: Re: [DRBD-user] DRBD device held open by someone<br>
>> To: <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
>> Message-ID: <20110621220149.GF21892@<br>
>><br>
>>> barkeeper1-xen.linbit><br>
>>> Content-Type: text/plain; charset=iso-8859-1<br>
>>><br>
>>> On Tue, Jun 21, 2011 at 10:10:41AM +0530, Dileep Nayak wrote:<br>
>>><br>
>>>> TThanks Matt for your reply to the issue "*DRBD device held open by<br>
>>>><br>
>>> someone*<br>
>>><br>
>>>> ".<br>
>>>> Today the below problem has been seen again.<br>
>>>><br>
>>>><br>
>>>> State change failed: (-12) Device is held open by someone<br>
>>>><br>
>>> *Sometimes it is just udev or equivalent doing a race.<br>
>>> Sometimes it is a unix domain socket or similar still held open<br>
>>> (won't necessary show up in lsof/fuser).<br>
>>> Sometimes it is some device mapper targets not yet taken down.<br>
>>> Sometimes it is nfs locks not being properly released (in time).<br>
>>><br>
>>> What do you use DRBD for, what sits on top of it?*<br>
>>><br>
>>> --<br>
>>> : Lars Ellenberg<br>
>>> : LINBIT | Your Way to High Availability<br>
>>> : DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br>
>>><br>
>>> DRBD? and LINBIT? are registered trademarks of LINBIT, Austria.<br>
>>> __<br>
>>> please don't Cc me, but send to list -- I'm subscribed<br>
>>><br>
>>><br>
>>> ------------------------------<br>
>>><br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<br>
>> <a href="http://lists.linbit.com/pipermail/drbd-user/attachments/20110622/c42d1f20/attachment.html" target="_blank">http://lists.linbit.com/pipermail/drbd-user/attachments/20110622/c42d1f20/attachment.html</a><br>
>><br>
>>><br>
>><br>
>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> drbd-user mailing list<br>
> <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
><br>
<br>
<br>
--<br>
Sebastian Riemer<br>
Linux Kernel Developer<br>
<br>
ProfitBricks GmbH<br>
Greifswalder Str. 207<br>
10405 Berlin, Germany<br>
<br>
Tel.: +49 - 30 - 51 64 09 20<br>
Fax: +49 - 30 - 51 64 09 22<br>
Email: <a href="mailto:sebastian.riemer@profitbricks.com">sebastian.riemer@profitbricks.com</a><br>
Web: <a href="http://www.profitbricks.com/" target="_blank">http://www.profitbricks.com/</a><br>
<br>
Sitz der Gesellschaft: Berlin<br>
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B<br>
Gesch?ftsf?hrer: Andreas Gauger, Achim Weiss<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.linbit.com/pipermail/drbd-user/attachments/20110630/61b9184d/attachment-0001.htm" target="_blank">http://lists.linbit.com/pipermail/drbd-user/attachments/20110630/61b9184d/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
<br>
</blockquote></div><br>