Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

how to inject a resource within a group ?

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


ibnerazi at yahoo

Nov 30, 2009, 10:55 AM

Post #1 of 3 (493 views)
Permalink
how to inject a resource within a group ?

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 ?

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


tserong at novell

Nov 30, 2009, 7:16 PM

Post #2 of 3 (468 views)
Permalink
Re: how to inject a resource within a group ? [In reply to]

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.

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 <tserong [at] novell>
Senior Clustering Engineer, Novell Inc.



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


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

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.