> * Michael Schwartzkopff <[EMAIL PROTECTED]> [2008-08-13 13:02 -0400]: >> Am Mittwoch 13 August 2008 16:09 schrieb Eric Blau: >> > Hi list members, >> > >> > Is there a command to cause a CRM-based resource to switch over to a >> > different server without it adding a permanant location constraint to >> > the CIB? >> >> crm_resource -M -H <node> -r <resource> >> >> Better read crm_resource --help >> >> Or set one node to standby. > > I tried the crm_resource command, but it adds a permament location > constraint to the CIB. I was trying to avoid that. > > For example, with a resource named IPaddr2_1, when I ran that command I > had this constraint added to my CIB: > > <constraints> > <rsc_location id="cli-prefer-IPaddr2_1" rsc="IPaddr2_1"> > <rule id="cli-prefer-rule-IPaddr2_1" score="INFINITY"> > <expression id="cli-prefer-expr-IPaddr2_1" attribute="#uname" > operation="eq" value="cmlab8" type="string"/> > </rule> > </rsc_location> > </constraints> > > > crm_standby also adds a permanent instance attribute forcing the node to > standby until the attribute is deleted or set to false.
try 'crm_resource -U -r IPaddr2_1' >> > For example, if two servers have resources with scores that are within >> > the resource stickiness threshold can a command be run to force the >> > resource to move to the other server? > > I don't want an INFINITY-scored location constraint to be added into the > CIB. I'd just like the resource to migrate if it's within the stickness > threshold. > > Is such a thing possible? > > Thanks, > Eric > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > > -- : Andreas Kurz Tel +43-1-8178292-64 : : LINBIT® Information Technologies GmbH Fax +43-1-8178292-82 : : Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com : DRBD® ist eine eingetragene Marke der LINBIT® Information Technologies GmbH. DRBD® is a registered trademark of LINBIT® Information Technologies GmbH. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
