sorry I should have put it into the write-up umount -l / remount / umount was done. lsof did not show the culprit in the /var/www LV block device (apache was shut down also). <div><br><br><div class="gmail_quote">2010/1/11 guohuai li <span dir="ltr">&lt;<a href="mailto:guohuai_li@hotmail.com">guohuai_li@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
maybe it is because the disk partion is not umounted.<br> <br>
<hr>
Date: Sun, 10 Jan 2010 00:17:40 +0100<br>From: <a href="mailto:idesent@gmail.com" target="_blank">idesent@gmail.com</a><br>To: <a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
Subject: [DRBD-user] Installation progression - Device is held open by someone<div><div></div><div class="h5"><br><br>Hello,
<div><br></div>
<div>getting DRBD to work with MySQL was not problem. However prior to adding heartbeat I want to get a fix on the 2 problems below: <br>
<div><br></div>
<div>
<div>Debian Lenny/LVM</div>
<div>DRBD 8.0.14 </div>
<div><br></div>
<div><br></div></div>
<div>
<div>(1) State change error: Trying to set active node to passive and vice-versa  </div>
<div><br></div>
<div># drbdadm  secondary mainvol</div>
<div>/dev/drbd0: State change failed: (-12) Device is held open by someone</div>
<div>Command &#39;drbdsetup /dev/drbd0 secondary&#39; terminated with exit code 11</div>
<div><br></div>
<div># drbdadm  down all</div>
<div>/dev/drbd0: State change failed: (-12) Device is held open by someone</div>
<div>Command &#39;drbdsetup /dev/drbd0 down&#39; terminated with exit code 11</div>
<div>drbdsetup exited with code 11</div>
<div><br></div>
<div>
<div>picked up from a forum:</div>
<div># vgchange -an</div>
<div>  Can&#39;t deactivate volume group &quot;vg0&quot; with 7 open logical volume(s)</div>
<div><br></div>
<div>I could literally tear the connection by severing the link between the nodes and then set the active node, but there must be a smoother way. </div>
<div><br></div>
<div><br></div>
<div>(2) After reboot the DRBD volumes on the primary are offline/not-mounted/locked by DRBD. Setting them primary resolves it and allows a mount -a to mount them all. Is this the default behavior without heartbeat ??</div>

<div><br></div>
<div>thanks - ies</div>
<div><br></div></div>
<div><br></div></div></div>                                               <br></div></div><hr>Windows Live:  <a href="http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010" target="_blank">Friends get your Flickr, Yelp, and Digg updates when they e-mail you.</a></div>

</blockquote></div><br></div>