[Pacemaker] Add a resource with commandline to an existing?group?

Andrew Beekhof andrew at beekhof.net
Wed Sep 22 11:41:56 EDT 2010


On Wed, Sep 22, 2010 at 4:34 PM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> Hi,
>
> On Tue, Aug 31, 2010 at 12:13:15PM +0000, Rainer wrote:
>> Dan Frincu <dfrincu at ...> writes:
>>
>> >
>> > You can update the config by typing: crm configure
>> > This puts you in the crm shell configure mode. Then you type in edit,
>> > that opens a vi session with the config, you edit the group entry by
>> > adding the necessary information and then you exit via esc, :wq, verify,
>> > commit.
>> >
>> > Regards,
>> >
>> > Dan
>>
>> So easy? I was all the time looking for a command like add to group....
>> Thx a lot!
>
> Yes, with edit you can modify any part of your configuration and
> commit the result. There's also a filter command in v1.1 which is
> to edit what sed(1) is to ed(1). This should also work:
>
> # echo group g1 g2 ... | crm configure load update -

nice!
i'll have to remember that one




More information about the Pacemaker mailing list