[DRBD-user] enable drbd resource at first time

guohuai li guohuai_li at hotmail.com
Mon Feb 23 02:34:22 CET 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Dear Victor,

 

You information is very helpful for me. Thanks !  :-)

 

 

>From link: http://www.drbd.org/docs/install/

I found that:

+++++++++++++++++++++++++++++++++++++++

Enabling your resource for the first time

After you have completed initial resource configuration as outlined in the previous sections, you can bring up your resource.

1. drbdadm create-md resource
2.  drbdadm attach resource

3. drbdadm syncer resource

4. drbdadm connect resource

+++++++++++++++++++++++++++++++++++++++

 

I know step 1) is a must, because meta data must be created.

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.

And I think "/etc/init.d/drbd start" also could be used to check whether drbd configured well.

Am I right ?

 

What's more, as the experience of configurate drbd-0.7, I used below procedure to create meta data for drbd-0.7:

++++++++++++++++++++++++++++

#mkfs /dev/sda10 
# /etc/init.d/drbd start
# drbdadm -- --do-what-I-say primary all
#mkfs /dev/ drbd0
+++++++++++++++++++++++++++++
 
Now, I used drbd-8.3.0, and I am confused whether I must use "mkfs  /dev/sda10; mkfs /dev/drbd0" after 
"drbdadm create-md resource". Would you help to explain this ?

Best regards,
Edward

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

> Date: Fri, 20 Feb 2009 14:58:04 -0300
> From: listas.vhs at gmail.com
> To: drbd-user at lists.linbit.com
> Subject: Re: [DRBD-user] enable drbd resource at first time
> 
> On Thu, Feb 19, 2009 at 4:01 AM, guohuai li <guohuai_li at hotmail.com> wrote:
> > Hi, dear friends,
> [...]
> 
> > +++++++++++++++++++++++++++++++++++++++++++++
> > linux-10:/etc # /etc/init.d/drbd stop
> > Stopping all DRBD resources.
> 
> you stop drdb and unload modules.
> 
> > linux-10:/etc # drbdadm attach r0
> > Could not stat("/proc/drbd"): No such file or directory
> > do you need to load the module?
> > try: modprobe drbd
> 
> why you dont try this command (modprobe drbd) ??
> 
> 
> > linux-10:/etc # /etc/init.d/drbd start
> > Starting DRBD resources: [ d(r0) d(r1) d(r2) s(r0) s(r1) s(r2) n(r0)
> 
> now.. drbd and modules is OK
> 
> 
> > linux-10:/etc # drbdadm attach r0
> > /dev/drbd0: Failure: (124) Device is attached to a disk (use detach first)
> 
> when you start drbd for /etc/init.d/drbd script.. it
> - load modules
> - read configuration
> - attach device
> - conect servers
> 
> in your case, resource is attached (look mesage).. and no is
> need/possible reattach it.
> 
> bye
> 
> -- 
> -- 
> Victor Hugo dos Santos
> Linux Counter #224399
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user


_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090223/641c4acf/attachment.htm>


More information about the drbd-user mailing list