On 12/1/2009 at 05:55 AM, Muhammad Sharfuddin <[email protected]> wrote: > I have a resource group '<group id="group_IP_Filesystem">', and I want to add > a > resource within the group "group_IP_Filesystem". > > running following command adds the resource within the <resources> block, but > > outside the <group id="group_IP_Filesystem"> .... </group> > > cibadmin -C -o resources -x cluster_ip.xml > > how can I add a resource within a specific group ? > or how can I create a resource member of a specific group ?
If you've got Pacemaker 1.x, this is really easy with the crm shell. Create the resource first, then run "crm configure edit group_IP_Filesystem" and add the resource to the group. For earlier versions, try something like: # cibadmin --cib_query --obj_type resources > tmp.xml # vi tmp.xml ...add your resource inside the <group>... # cibadmin --cib_replace --obj_type resources --xml-file tmp.xml Regards, Tim -- Tim Serong <[email protected]> Senior Clustering Engineer, Novell Inc. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
