Hi, On Wed, Mar 09, 2011 at 07:51:30AM +0100, Alain.Moulle wrote: > Hi Dejan, > > Yes, that was a suggestion for a add/remove with a "crm configure group > ..." > that we could include in scripts. But perhaps I am the only one who has > had the need of this ... so ... > For example, in a group with a primitive (linked to a specific service) and > some primitives Filesystem, it could be nice to add or remove a FS from > the group by script from a remote Management node (recall: I'm in a HPC > context)
If you're using Pacemaker 1.1, take a look at the configure filter command. It relates to the edit command as sed to ed/vi. Alternatively, you can do sth like this: # crm configure show g | sed 's/rsc//' | crm configure load update - Replace g with your group name and adjust the sed script to do what you want (in this example it removes rsc from the group). Thanks, Dejan > Alain > > > Hi, > > > > On Thu, Mar 03, 2011 at 11:51:04AM +0100, Alain.Moulle wrote: > > > >> Hi Dejan, > >> > >> Except if I do a mistake, I can't find how to add a primitive in an > >> already existent group , > >> or conversely to remove a primitive from an already existent group. > >> For now, I have to delete the group and recreate it with or without the > >> primitive, > >> but cons it that all primitives grouped are temporarily not grouped > >> anymore and > >> so they start by themselves (except if of course if I set the > >> target-role=Stopped on > >> all primitives etc. but ok ... that's not really my subject here ... ) > >> > >> I think it could be useful, what is your opinion ? > >> > > > > I'm not sure how do you mean. If you edit a group (configure > > edit) and remove or add a primitive, that doesn't work? Or are > > you talking about doing this from a script? > > > > Thanks, > > > > Dejan > > > > > >> Thanks > >> Alain > >> _______________________________________________ > >> Linux-HA mailing list > >> [email protected] > >> http://lists.linux-ha.org/mailman/listinfo/linux-ha > >> See also: http://linux-ha.org/ReportingProblems > >> > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > > > > > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
