[DRBD-user] drbd peer outdater exit codes

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Fri Sep 12 11:34:46 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.


hello drbd-user,
hello linux-ha-dev,

[0] shows a list of exit codes of the "peer outdater interface".

during my tests i encounter two other exit codes, which might be worth
mentioning somewhere (i do not know if this should be in the drbd
user-guide or somwhere at linux-ha):

for the records, i use "on node_x" instead of the real host name
in my drbd.conf, as suggested in [1].


on wc01 aka node_0, i issue:
> # /usr/lib/heartbeat/drbd-peer-outdater -p host -r mysql; echo $?
> 20

on wc02 aka node_1, i see:
> /usr/lib/heartbeat/dopd[31027]: 2008/09/12_11:17:24 info: unknown exit code from drbdadm outdate mysql: 10
> /usr/lib/heartbeat/dopd[31027]: 2008/09/12_11:17:24 info: sending return code: 20, wc02 -> wc01

drbdadm exit code 10 is the usual thing i see when __DRBD_NODE__ is not
correctly set:

> 2 ~ # drbdadm state all; echo $?
> /etc/drbd.conf:475: in resource www, on node_0 { ... } ... on node_1 { ... }:
> 	There are multiple host sections for the peer.
> 	Maybe misspelled local host name 'wc02'?
> ...
> 10

moreover, in the dopd source i find:
> * other => 20 (which is "officially undefined",
> * unspecified error, could not be outdated)

which explains the conversion from return code 10 to return code 20.

so i would suggest to mention this at the relevant places, e.g. [0] and
maybe at [1]. what do you think?

cheers,
raoul
[0] http://www.drbd.org/users-guide/s-outdate-peer.html
[1]
http://www.linux-ha.org/DRBD/HowTov2#head-d708dad9dda821dbd1f53296bedebd74339dfa82
-- 
____________________________________________________________________
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