<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Dear Victor,<BR>
<BR>
You information is very helpful for me. Thanks ! :-)<BR>
<BR>
<BR>
>From link: <A href="http://www.drbd.org/docs/install/">http://www.drbd.org/docs/install/</A><BR>
I found that:<BR>
+++++++++++++++++++++++++++++++++++++++<BR>
<A id=s-first-time-up></A>Enabling your resource for the first time<BR>
After you have completed initial resource configuration as outlined in the previous sections, you can bring up your resource.<BR>
<FONT face="Courier New"><STRONG>1. drbdadm create-md <EM class=replaceable><CODE>resource</CODE></EM></STRONG></FONT><BR>2. <FONT face="Courier New"><STRONG>drbdadm attach <EM class=replaceable><CODE>resource</CODE></EM></STRONG></FONT><BR>
<FONT face="Courier New"><STRONG><CODE><EM>3. </EM>drbdadm syncer <CODE><EM>resource</EM></CODE></CODE></STRONG></FONT><BR>
<FONT face="Courier New"><STRONG><CODE><CODE><EM>4. </EM>drbdadm connect <CODE><EM>resource</EM></CODE></CODE></CODE></STRONG></FONT><BR>
+++++++++++++++++++++++++++++++++++++++<BR>
<BR>
I know step 1) is a must, because meta data must be created.<BR>
But I don't think step 2), 3), 4) is a must, for I think step 2), 3), 4) just used to check whether drbd configured well.<BR>
And I think "/etc/init.d/drbd start" also could be used to check whether drbd configured well.<BR>
Am I right ?<BR>
<BR>
What's more, as the experience of configurate drbd-0.7, I used below procedure to create meta data for drbd-0.7:<BR>
++++++++++++++++++++++++++++<BR>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"><SPAN lang=EN-US><FONT color=#000000><FONT face="Times New Roman">#mkfs /dev/<STRONG>sda10</STRONG><SPAN style="mso-spacerun: yes"> </SPAN></FONT></FONT></SPAN></P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"><SPAN lang=EN-US><FONT face="Times New Roman" color=#000000># /etc/init.d/drbd start</FONT></SPAN></P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"><SPAN lang=EN-US><FONT face="Times New Roman" color=#000000># drbdadm -- --do-what-I-say primary all</FONT></SPAN></P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"><SPAN lang=EN-US><FONT color=#000000><FONT face="Times New Roman">#mkfs /dev/<B style="mso-bidi-font-weight: normal"> drbd0</B></FONT></FONT></SPAN></P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"><SPAN lang=EN-US></SPAN>+++++++++++++++++++++++++++++</P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"> </P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt">Now, I used drbd-8.3.0, and I am confused whether I must use "mkfs /dev/sda10; mkfs /dev/drbd0" after </P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt">"<FONT face="Courier New"><STRONG>drbdadm create-md <EM class=replaceable><CODE>resource". Would you help to explain this ?</CODE></EM></STRONG></FONT></P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt"><BR>Best regards,</P>
<P class=MsoBodyText2 style="MARGIN: 0cm 0cm 6pt 36pt">Edward</P>
<P> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
> Date: Fri, 20 Feb 2009 14:58:04 -0300<BR>> From: listas.vhs@gmail.com<BR>> To: drbd-user@lists.linbit.com<BR>> Subject: Re: [DRBD-user] enable drbd resource at first time<BR>> <BR>> On Thu, Feb 19, 2009 at 4:01 AM, guohuai li <guohuai_li@hotmail.com> wrote:<BR>> > Hi, dear friends,<BR>> [...]<BR>> <BR>> > +++++++++++++++++++++++++++++++++++++++++++++<BR>> > linux-10:/etc # /etc/init.d/drbd stop<BR>> > Stopping all DRBD resources.<BR>> <BR>> you stop drdb and unload modules.<BR>> <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>> <BR>> why you dont try this command (modprobe drbd) ??<BR>> <BR>> <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)<BR>> <BR>> now.. drbd and modules is OK<BR>> <BR>> <BR>> > linux-10:/etc # drbdadm attach r0<BR>> > /dev/drbd0: Failure: (124) Device is attached to a disk (use detach first)<BR>> <BR>> when you start drbd for /etc/init.d/drbd script.. it<BR>> - load modules<BR>> - read configuration<BR>> - attach device<BR>> - conect servers<BR>> <BR>> in your case, resource is attached (look mesage).. and no is<BR>> need/possible reattach it.<BR>> <BR>> bye<BR>> <BR>> -- <BR>> -- <BR>> Victor Hugo dos Santos<BR>> Linux Counter #224399<BR>> _______________________________________________<BR>> drbd-user mailing list<BR>> drbd-user@lists.linbit.com<BR>> http://lists.linbit.com/mailman/listinfo/drbd-user<BR><BR></P><br /><hr />check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
<a href='http://www.microsoft.com/windows/windowslive/' target='_new'>More than messages</a></body>
</html>