[DRBD-user] Assert (mdev->state == Primary)

Seki Lau sekilau at gmail.com
Mon Oct 11 09:37:58 CEST 2004

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


Dear All,

I am using 0.7.4 and I have put "touch" and "rm" in drbd start and stop script.
I power up machine 1 M1 and it becomes primary. I power up machine 2
M2 and it becomes secondary.
I power down M1, I expect M2 become primary.

But I find that M2 can't become primary.
I check the /var/log/messages, it reports:

last message repeat 15 times
kernel: drbd0: Assert (mdev->state = Primary) ..... drbd_main.c :1289
kernel: drbd0: Assert (mdev->state = Primary) ..... drbd_main.c :186
last message repeat 15 times
kernel: drbd1: Assert (mdev->state = Primary) ..... drbd_main.c :1289
kernel: drbd1: Assert (mdev->state = Primary) ..... drbd_main.c :186
last message repeat 15 times
kernel: drbd2: Assert (mdev->state = Primary) ..... drbd_main.c :1289
kernel: drbd2: Assert (mdev->state = Primary) ..... drbd_main.c :186
last message repeat 15 times
kernel: drbd3: Assert (mdev->state = Primary) ..... drbd_main.c :1289
kernel: drbd3: Assert (mdev->state = Primary) ..... drbd_main.c :186
last message repeat 15 times
kernel: drbd4: Assert (mdev->state = Primary) ..... drbd_main.c :1289
kernel: drbd4: Assert (mdev->state = Primary) ..... drbd_main.c :186


I read from mail list and I have the following setting (Please correct
me if I am wrong)

on /etc/rc5.d
S89drbd S90heartbeat

on /etc/rc1.d , on /etc/rc0.d on /etc/rc6.d
K01heartbeat , K89drbd , K90network

For the heartbeat failover, another service (smb) can be start correctly.

So, can any on tell me how to fix this problem?

Thank in prior

Seki

(I switch back from 0.7.5 to 0.7.4. It seems to me that 0.7.4 is
faster than 0.7.5 when syn the harddisk)



More information about the drbd-user mailing list