Andreas Mock wrote:
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED]
Gesendet: Samstag, 15. März 2008 05:41
An: General Linux-HA mailing list
Betreff: [Linux-HA] question about stopping resource groups



# crm_resource -l
* * GROUPS_KNWORKS_mail*
   * drbddisk_knworks_mail
   * ip_knworks_mail
   * fs_knworks_mail
   * ip_knworks_mail_external


*# crm_resource -r GROUPS_KNWORKS_mail -p target_role -v stopped*
Multiple attributes match name=target_role for the resource GROUPS_KNWORKS_mail:
  ID: 23c18e20-b028-4f03-aa06-d3bce9c4930b, Value: started
  ID: nv_1_drbddisk_knworks_mail, Value: started
  ID: nv_2_ip_knworks_mail, Value: started
  ID: nv_2_ip_knworks_mail_external, Value: started

Error performing operation: Unknown error

Hi Jeff,

make a cibadmin -Q and see if there is more than one attribute
called target_role with different id. If there are unnecessary delete them with cibadmin -D.

Best regards
Andreas Mock

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems




Thanks for the response.

Here is what I did to fix my issue:

Dump the CIB to a file:
# cibadmin -Q > /tmp/cib.xml

Here I removed all of the "target_role" entries from my GOUPS_KNWORKS_mail group
# vi /tmp/cib.xml


Short verify:
# crm_verify -VVVV -x /tmp/cib.xml
Long verify:
# crm_verify -VVVVV -x /tmp/cib.xml

Run Ptest to see what the new cib will really do:
# ptest -VVVVV  -X /tmp/cib.xml

Once happy with new cib file, do the actual CIB replace:
# cibadmin -R -x /tmp/cib.xml

Check the resource are good:
# crm_mon -1

Now when I stop the group, it works correctly:
crm_resource -r GROUPS_KNWORKS_mail -p target_role -v stopped


-Jeff Humes
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to