Dne 1.2.2017 v 16:13 Jihed M'selmi napsal(a):
The only thing that I found is to create a backup with pcs config
Modify it and then restore.
I was hoping to use a simple command

Pcs doesn't have a command for renaming resources, unfortunately.

You don't need to backup and restore the configuration to edit it. You can use the "pcs cluster edit" command to edit it in place. You would need to change the resource name and update the name in all constraints referencing that resource.

Regards,
Tomas



On Wed, Feb 1, 2017, 4:05 PM Kristoffer Grönlund <[email protected]
<mailto:[email protected]>> wrote:

    Jihed M'selmi <[email protected]
    <mailto:[email protected]>> writes:

    > Thanks for reply,
    > I don't have crm command. It's  corosync version 2.3.4.el7_2.1.
    >

    crmsh is a separate project, you can install it in parallel with
    corosync/pacemaker. There are packages on OBS:

    
http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/RedHat_RHEL-7/

    Otherwise if you have pcs it should have something similar to crm
    configure rename.

    Cheers,
    Kristoffer

    > On Wed, Feb 1, 2017, 3:38 PM Kristoffer Grönlund
    <[email protected] <mailto:[email protected]>> wrote:
    >
    >> Jihed M'selmi <[email protected]
    <mailto:[email protected]>> writes:
    >>
    >> > Hello,
    >> >
    >> > I need update the name of one resource group with a new name. Any
    >> thoughts?
    >> >
    >>
    >> crmsh has the crm configure rename command, which tries to update any
    >> constraint references atomically as well.
    >>
    >> Cheers,
    >> Kristoffer
    >>
    >> > Cheers,
    >> > JM
    >> > --
    >> >
    >> > J.M
    >> > _______________________________________________
    >> > Users mailing list: [email protected]
    <mailto:[email protected]>
    >> > http://lists.clusterlabs.org/mailman/listinfo/users
    >> >
    >> > Project Home: http://www.clusterlabs.org
    >> > Getting started:
    http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
    >> > Bugs: http://bugs.clusterlabs.org
    >>
    >> --
    >> // Kristoffer Grönlund
    >> // [email protected] <mailto:[email protected]>
    >>
    > --
    >
    > J.M

    --
    // Kristoffer Grönlund
    // [email protected] <mailto:[email protected]>

--

J.M



_______________________________________________
Users mailing list: [email protected]
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


_______________________________________________
Users mailing list: [email protected]
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to