[Pacemaker] Drbd dstate to trigger failover

Shravan Mishra shravan.mishra at gmail.com
Wed Apr 20 21:46:37 EDT 2011


Hi,

I'm using following config for io errors:



resource resource {
  disk {
    on-io-error detach;
    ...
  }
  ...
}


The above leads to following  state in case of disk errors:

Diskless/UpToDate

Under drbd documentation there is a following line:

STMT -- "If the disk failure has occured on your primary node, you may
combine this step with a switch-over operation."

When I look at drbd resource agent's monitor:

drbd_monitor() {
        local status

        drbd_status
        status=$?

        drbd_update_master_score

        return $status
}


Now in the above function the error is reported only based on role not
on estate. drbd_update_master_score is only updating score based on
estates.


My question is can I return error in drbd_monitor if my primary goes
Diskless and then cause the switchover based on the STMT?

Or  should I be doing something else?


Sincerely
Shravan




More information about the Pacemaker mailing list