[DRBD-user] Device monitor script for drbd-0.7.x

Shallyee Shang shallyee.shang at jp.sony.com
Wed Sep 15 03:39:55 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.


I am trying write a script under drbd-0.7.x, which can probe if a drbd 
device can transfer to primary state when it receive a "drbdadm primary ..."
command. Device monitor will call this script to determine if a device
is avaliable.

"drbdadm state" command tells device's status, which may help me 
make the decision. I can get a state list by greping drbd source code,
I guess these are all that "state" command can tell, but I don't understand
which state can transfer to primary state.

Can anyone teach me about this, or advise me a good way to write a
monitor script?

Thank you.

More information about the drbd-user mailing list