此内容没有您所选择的语言版本。
9.7. Using Rules to Determine Resource Location
You can use a rule to determine a resource's location with the following command.
pcs constraint location resource_id rule [rule_id] [role=master|slave] [score=score expression]
pcs constraint location resource_id rule [rule_id] [role=master|slave] [score=score expression]
The expression can be one of the following:
defined|not_defined attributeattribute lt|gt|lte|gte|eq|ne valuedate [start=start] [end=end] operation=gt|lt|in-rangedate-spec date_spec_options