<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
maybe it is because the disk partion is not umounted.<BR> <BR>
<HR id=stopSpelling>
Date: Sun, 10 Jan 2010 00:17:40 +0100<BR>From: idesent@gmail.com<BR>To: drbd-user@lists.linbit.com<BR>Subject: [DRBD-user] Installation progression - Device is held open by someone<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 'drbdsetup /dev/drbd0 secondary' 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 'drbdsetup /dev/drbd0 down' 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't deactivate volume group "vg0" 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 /><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='_new'>Friends get your Flickr, Yelp, and Digg updates when they e-mail you.</a></body>
</html>