To clarify, I should have written: > The On_off_switch will be DISABLED if, and only if, the Stop (or > Monitor_stop or Postnet_stop) method is being executed by a command > that is disabling the resource....
There are several commands that might do a resource disable, for example clrg delete -F, clrs delete -F, as well as clrs disable. I might have missed a few. The point is that if an online resource is disabled, we first set the On_off_switch to DISABLED and then take the resource offline on the node(s) where it has been disabled. --Marty Martin Rattner wrote: > Hi all, > > I have not reviewed Neil's code, but wanted to respond to this > particular point raised by Thorsten: > > >> I guess you want to distinguish between a switchover triggered by >> "clrg switch" and a "clrg offline | clrs disable" performed by the >> user? If so, is checking the ON_OFF_SWITCH a reliable method to >> deterine that (also in the future)? > > > > The On_off_switch will be DISABLED if, and only if, the Stop (or > Monitor_stop or Postnet_stop) method is being executed by a clrs > disable (or equivalent scswitch) command. In all other cases (e.g., > clrg offline, clrg switch, scha_control Giveover) On_off_switch will > be ENABLED when the stopping methods are executed. > > --Marty _______________________________________________ > ha-clusters-discuss mailing list ha-clusters-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/ha-clusters-discuss
