[DRBD-user] unable to start the initial synchronisation of drbd devices

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Fri Sep 5 12:42:42 CEST 2008

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

Stefan Seifert wrote:
> On Friday, 05. September 2008, Raoul Bhatia [IPAX] wrote:
>> i only slightly altered the default drbd.conf of r0 and r1 - especially
>> i am not using the real hosts name but using node_0 and node_1 to later
>> integrate drbd into heartbeat - and followed [1] to connect the drbd
> ...
>> any idea what i might be doing wrong?
> Yes, you did not follow the documentation:
> "on host-name 
>  Carries the necessary configuration parameters for a DRBD device of the 
> enclosing resource. host-name is mandatory and must match the Linux host name 
> (uname -n) of one of the nodes."

thank you for this hint. of course, i exported __DRBD_NODE__=node_0
and __DRBD_NODE__=node_1 before doing so and this is working:

> # drbdadm state mysql
>    found __DRBD_NODE__ in environment
>    PRETENDING that I am >>node_0<<
> Primary/Unknown

nevertheless, i substituted node_0 and node_1 with the real
hostnames and succeeded.

i guess, that drbd(adm) (method drbd_khelper?) does not pass that
environment variable to its helper command: /sbin/drbdadm
before-resync-target minor-1.

is this a bug or a feature?

DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15

More information about the drbd-user mailing list