<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi, dear friends,<BR>
<BR>
<A href="http://www.drbd.org/users-guide-emb/s-first-time-up.html">http://www.drbd.org/users-guide-emb/s-first-time-up.html</A><BR>
>From above page, I know that to enable our resource at first time, needs to issue below command:<BR>
<OL>
<LI>
<B>Create device metadata. </B><A class=indexterm id=id2654540></A>This step must be completed only on initial device creation. It initializes DRBD's metadata: <BR>
<DIV class=literallayout>
<STRONG class=userinput><CODE>drbdadm create-md <EM class=replaceable><CODE>resource</CODE></EM></CODE></STRONG><BR><CODE class=computeroutput>v08 Magic number not found<BR>Writing meta data...<BR>initialising activity log<BR>NOT initialized bitmap<BR>New drbd meta data block sucessfully created.<BR>success</CODE><BR> <BR></DIV>
<BR>
<LI>
<A class=indexterm id=id2617109></A><B>Attach to backing device. </B>This step associates the DRBD resource with its backing device: <BR>
<DIV class=literallayout>
<STRONG class=userinput><CODE>drbdadm attach <EM class=replaceable><CODE>resource</CODE></EM></CODE></STRONG><BR></DIV>
<BR>
<LI>
<B>Set synchronization parameters. </B><A class=indexterm id=id2696170></A>This step sets synchronization parameters for the DRBD resource: <BR>
<DIV class=literallayout>
<STRONG class=userinput><CODE>drbdadm syncer <EM class=replaceable><CODE>resource</CODE></EM></CODE></STRONG><BR></DIV>
<BR>
<LI>
<B>Connect to peer. </B><A class=indexterm id=id2676073></A>This step connects the DRBD resource with its counterpart on the peer node: <BR>
<DIV class=literallayout>
<STRONG class=userinput><CODE>drbdadm connect <EM class=replaceable><CODE>resource</CODE></EM></CODE></STRONG><BR></DIV></LI></OL>
<BR>
For drbd-8.3.0 , I meet below problem:<BR>
when command "drbdadm attach r0" issued, it reported error: drbd not loaded; <BR>
but after I issued command "/etc/init.d/drbd start", it reports "(124) Device is attached to a disk (use detach first)".<BR>
The detailed information is described below.<BR><BR>
+++++++++++++++++++++++++++++++++++++++++++++<BR>
linux-10:/etc # /etc/init.d/drbd stop<BR>Stopping all DRBD resources.<BR>linux-10:/etc # <BR>linux-10:/etc # <BR>linux-10:/etc # <BR>linux-10:/etc # drbdadm attach r0<BR>Could not stat("/proc/drbd"): No such file or directory<BR>do you need to load the module?<BR>try: modprobe drbd<BR>Command 'drbdsetup /dev/drbd0 disk /dev/sda10 /dev/sda10 internal --set-defaults --create-device --on-io-error=detach' terminated with exit code 20<BR>drbdadm attach r0: exited with code 20<BR>linux-10:/etc # <BR>linux-10:/etc # /etc/init.d/drbd start<BR>Starting DRBD resources: [ d(r0) d(r1) d(r2) s(r0) s(r1) s(r2) n(r0) n(r1) n(r2) ].<BR>..linux-10:/etc # <BR>linux-10:/etc # <BR>linux-10:/etc # drbdadm attach r0<BR>/dev/drbd0: Failure: (124) Device is attached to a disk (use detach first)<BR>Command 'drbdsetup /dev/drbd0 disk /dev/sda10 /dev/sda10 internal --set-defaults --create-device --on-io-error=detach' terminated with exit code 10<BR>linux-10:/etc # <BR>
++++++++++++++++++++++++++++++++++++++++++++++<BR>
<BR>
Would you help to explain this?<BR>
<BR>
Best regards,<BR>
Edward<BR><BR><br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>