NOTE: the values of resource_stickiness and default_resource_stickiness may mean that it doesnt move back. In such cases, you should use -M to move it back and then run this command.
9)將資源從CRM中刪除
crm_resource -D -r runhttpd.sh_2 -t primitive
10)將資源組從CRM中刪除
crm_resource -D -r my_first_group -t group
11)將資源從CRM中禁用
crm_resource -p is_managed -r runhttpd.sh_2 -t primitive -v off
12)將資源從新從CRM中啟用
crm_resource -p is_managed -r runhttpd.sh_2 -t primitive -v on
13)Resetting a failed resource after having been manually cleaned up
crm_resource -C -H c001n02 -r runhttpd.sh_2
14)檢查所有節(jié)點(diǎn)上未在CRM中的資源
crm_resource -P
15)檢查指定節(jié)點(diǎn)上未在CRM中的資源
crm_resource -P -H c001n02
Querying a parameter of a resource. Say the resource is the following:
<primitive id="example_mail" class="ocf" type="MailTo" provider="heartbeat">
<instance_attributes id="example_mail_inst">
<attributes>
<nvpair id="example_mail_inst_attr0" name="email" value="root"/>
<nvpair id="example_mail_inst_attr1" name="subject" value="Example Failover"/>
</attributes>
</instance_attributes>
</primitive>
You could query the email address using the following:
crm_resource -r example_mail -g email