Wherever there is estates/estate it should be dstates/dstate. Thanks Shravan
On Wed, Apr 20, 2011 at 9:46 PM, Shravan Mishra <shravan.mis...@gmail.com> wrote: > 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 > _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker