[DRBD-user] enable drbd resource at first time

Victor Hugo dos Santos listas.vhs at gmail.com
Fri Feb 20 18:58:04 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.


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



More information about the drbd-user mailing list