[DRBD-user] pri-lost-after-sb minor-1 exit code 0 (0x0)

Thierry Haillot thierry.haillot at gmail.com
Mon May 31 14:42:35 CEST 2010

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


Hello,

I have 2 nodes with a Heartbeat/DRBD configuration.

my conf

pri-lost-after-sb "echo split-brain > /home/haillot/.drbdStatus";

after-sb-0pri discard-least-changes;
after-sb-1pri call-pri-lost-after-sb;
after-sb-2pri call-pri-lost-after-sb;

I force split-brain disconnecting network link and writing on the two nodes.
After that i reconnect the link.

I often can see "/bin/true pri-lost-after-sb minor-1 exit code 0
(0x0)" log and the ".drbdStatus" file is not written.
Sometimes, there is split-brain without the previous log (exit code).
In this case only, the ".drbdStatus" file is written.


May 31 11:38:55 bleu kernel: [ 4525.208084] block drbd1: Handshake
successful: Agreed network protocol version 91
May 31 11:38:55 bleu kernel: [ 4525.208098] block drbd1: conn(
WFConnection -> WFReportParams )
May 31 11:38:55 bleu kernel: [ 4525.208121] block drbd1: Starting
asender thread (from drbd1_receiver [13856])
May 31 11:38:55 bleu kernel: [ 4525.208327] block drbd1:
data-integrity-alg: <not-used>
May 31 11:38:55 bleu kernel: [ 4525.208458] block drbd1: drbd_sync_handshake:
May 31 11:38:55 bleu kernel: [ 4525.208464] block drbd1: self
AF9504BD7989E047:32A90985C293861D:5731389DE5220190:EB3ED36167D824D9
bits:109 flags:0
May 31 11:38:55 bleu kernel: [ 4525.208469] block drbd1: peer
3D7FF173E20B048B:32A90985C293861C:5731389DE5220190:EB3ED36167D824D9
bits:283 flags:0
May 31 11:38:55 bleu kernel: [ 4525.208474] block drbd1:
uuid_compare()=100 by rule 90
May 31 11:38:55 bleu kernel: [ 4525.208498] block drbd1: helper
command: /bin/true pri-lost-after-sb minor-1
May 31 11:38:55 bleu kernel: [ 4525.209636] block drbd1: helper
command: /bin/true pri-lost-after-sb minor-1 exit code 0 (0x0)
May 31 11:38:55 bleu kernel: [ 4525.209677] block drbd1: helper
command: /bin/true split-brain minor-1
May 31 11:38:55 bleu kernel: [ 4525.210641] block drbd1: helper
command: /bin/true split-brain minor-1 exit code 0 (0x0)


I change drbd.cnf with
pri-lost-after-sb "echo split-brain";

And the problem is the same.

in /etc/init.d/drbd file, I modify
ADD_MOD_PARAM="minor_count=255 usermode_helper=/bin/true"
(...)
and I change $MODPROBE -s drbd  $ADD_MOD_PARAM || {
instead of $MODPROBE -s drbd `$DRBDADM sh-mod-parms` $ADD_MOD_PARAM || {


with the default /etc/init.d/drbd file,
ADD_MOD_PARAM=""
(...)
$MODPROBE -s drbd `$DRBDADM sh-mod-parms` $ADD_MOD_PARAM || {

i have seen the error (0x100)
"helper command: /sbin/drbdadm pri-lost-after-sb minor-1 exit code 1 (0x100)"


for information, I use drbd - version: 8.3.3 (api:88/proto:86-91).


What could  make "pri-lost-after-sb" to fail? I may forget something.
Where are described the meaning of these errors (0x0, 0x100 ...)?


Thanks in advance.



More information about the drbd-user mailing list