Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-22 Thread Dejan Muhamedagic
Hi, On Sat, Mar 20, 2010 at 05:13:29PM -0700, Robinson, Eric wrote: Hi Dejan, you suggested the following... order o1 inf: basegroup ( r1 r2 r3 ... ) collocation c1 \ inf: ( r1 r2 r3 ... ) basegroup Would you be so kind as to show me how to work that into my current config? As I

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-22 Thread Robinson, Eric
Try to add this instead of the existing constraints and a group: group fs p_FileSystem p_ClusterIP colocation c_drbd_fs inf: fs ms_DRBD:Master order o_drbd_fs inf: ms_DRBD:promote fs:start collocation c_fs_mysql inf: ( p_MySQL_001 p_MySQL_002 p_MySQL_003 ) fs order o_fs_mysql inf: fs (

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-22 Thread Dejan Muhamedagic
Hi, On Mon, Mar 22, 2010 at 10:17:15AM -0700, Robinson, Eric wrote: Try to add this instead of the existing constraints and a group: group fs p_FileSystem p_ClusterIP colocation c_drbd_fs inf: fs ms_DRBD:Master order o_drbd_fs inf: ms_DRBD:promote fs:start collocation c_fs_mysql

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-20 Thread Robinson, Eric
Hi Dejan, you suggested the following... order o1 inf: basegroup ( r1 r2 r3 ... ) collocation c1 \ inf: ( r1 r2 r3 ... ) basegroup Would you be so kind as to show me how to work that into my current config? As I said earlier, the ultimate goal is for the MySQL services to migrate in

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-17 Thread Dejan Muhamedagic
Hi, On Tue, Mar 16, 2010 at 12:08:29PM -0700, Robinson, Eric wrote: When you change or reorder group memberships like that (using either crm configure or cibadmin) does it interrupt service? If you added a stopped resource before ones that were already started, yes. I will always

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-16 Thread Robinson, Eric
You can't edit the file directly, even with a script, but you can script cibadmin to replace pieces of XML in the CIB for you. For example, to manually edit a group's XML, try: # cibadmin --query --xpath //gro...@id='WHATEVER'] group.xml # vim group.xml (add whatever primitives...)

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-16 Thread Dejan Muhamedagic
Hi, On Mon, Mar 15, 2010 at 10:35:14AM -0700, Robinson, Eric wrote: This would probably work: crm configure edit Group1 I had already tried that, but I'm looking for something scriptable. I was hoping for somehting like: crm configure edit Group1 replace old group members new

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-16 Thread Andrew Beekhof
On Tue, Mar 16, 2010 at 5:27 PM, Robinson, Eric eric.robin...@psmnv.com wrote: You could do something like this: # echo group new-members-list | crm configure load update - When you change or reorder group memberships like that (using either crm configure or cibadmin) does it interrupt

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-16 Thread Robinson, Eric
When you change or reorder group memberships like that (using either crm configure or cibadmin) does it interrupt service? If you added a stopped resource before ones that were already started, yes. I will always be adding new services to the end of the list, so I should be okay. But more

[Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-15 Thread Robinson, Eric
I currently have a group that looks like this: group Group1 FileSystem ClusterIP MySQL_001 MySQL_002 I can add a new primitive to the CIB from the command line, but once I do that is there a way to add the new primitive to Group1 from the command line? I've been digging through the help screens

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-15 Thread Andrew Beekhof
On Mon, Mar 15, 2010 at 5:09 PM, Robinson, Eric eric.robin...@psmnv.com wrote: I currently have a group that looks like this: group Group1 FileSystem ClusterIP MySQL_001 MySQL_002 This would probably work: crm configure edit Group1 I can add a new primitive to the CIB from the command

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-15 Thread Robinson, Eric
This would probably work: crm configure edit Group1 I had already tried that, but I'm looking for something scriptable. I was hoping for somehting like: crm configure edit Group1 replace old group members new group members --or-- crm configure edit Group1 add new group

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-15 Thread Robinson, Eric
The only way I can find to add new group members via a script is to edit cib.xml. I find the following section... primitive class=lsb id=MySQL_001 type=mysql_001/ primitive class=lsb id=MySQL_002 type=mysql_002/ primitive class=lsb id=MySQL_003 type=mysql_003/ Using a

Re: [Linux-HA] Changing CIB Group Properties from the Command Line

2010-03-15 Thread Tim Serong
On 3/16/2010 at 10:45 AM, Robinson, Eric eric.robin...@psmnv.com wrote: The only way I can find to add new group members via a script is to edit cib.xml. I find the following section... primitive class=lsb id=MySQL_001 type=mysql_001/ primitive class=lsb