[ClusterLabs] How to change the name of one cluster resource and resource group ?
Tomas Jelinek
tojeline at redhat.com
Wed Feb 1 10:19:28 EST 2017
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 <kgronlund at suse.com
> <mailto:kgronlund at suse.com>> wrote:
>
> Jihed M'selmi <jihed.mselmi at gmail.com
> <mailto:jihed.mselmi at gmail.com>> 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
> <kgronlund at suse.com <mailto:kgronlund at suse.com>> wrote:
> >
> >> Jihed M'selmi <jihed.mselmi at gmail.com
> <mailto:jihed.mselmi at gmail.com>> 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: Users at clusterlabs.org
> <mailto:Users at clusterlabs.org>
> >> > 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
> >> // kgronlund at suse.com <mailto:kgronlund at suse.com>
> >>
> > --
> >
> > J.M
>
> --
> // Kristoffer Grönlund
> // kgronlund at suse.com <mailto:kgronlund at suse.com>
>
> --
>
> J.M
>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> 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
>
More information about the Users
mailing list