
ibnerazi at yahoo
Nov 30, 2009, 9:13 PM
Post #3 of 3
(463 views)
Permalink
|
|
Re: how to inject a resource within a group ?
[In reply to]
|
|
--- On Mon, 11/30/09, Tim Serong <tserong [at] novell> wrote: >> On 12/1/2009 at 05:55 AM, Muhammad Sharfuddin <ibnerazi [at] yahoo>> 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. I am using SLES 10 SP 2/3, I am not using Pacemaker. > 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 Its working, cool. > Regards, > Tim Thanks Tim for such a nice explanation ;) Regards, Muhammad Sharfuddin _______________________________________________ Linux-HA mailing list Linux-HA [at] lists http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
|