Re: [ClusterLabs] How to change the name of one cluster resource and resource group ?

2017-02-01 Thread Tomas Jelinek

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 > wrote:

Jihed M'selmi > 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
> wrote:
>
>> Jihed M'selmi > 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@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
>> // kgronl...@suse.com 
>>
> --
>
> J.M

--
// Kristoffer Grönlund
// kgronl...@suse.com 

--

J.M



___
Users mailing list: Users@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



___
Users mailing list: Users@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


Re: [ClusterLabs] How to change the name of one cluster resource and resource group ?

2017-02-01 Thread Jihed M'selmi
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

On Wed, Feb 1, 2017, 4:05 PM Kristoffer Grönlund  wrote:

> Jihed M'selmi  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 
> wrote:
> >
> >> Jihed M'selmi  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@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
> >> // kgronl...@suse.com
> >>
> > --
> >
> > J.M
>
> --
> // Kristoffer Grönlund
> // kgronl...@suse.com
>
-- 

J.M
___
Users mailing list: Users@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


Re: [ClusterLabs] How to change the name of one cluster resource and resource group ?

2017-02-01 Thread Kristoffer Grönlund
Jihed M'selmi  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  wrote:
>
>> Jihed M'selmi  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@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
>> // kgronl...@suse.com
>>
> -- 
>
> J.M

-- 
// Kristoffer Grönlund
// kgronl...@suse.com

___
Users mailing list: Users@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


Re: [ClusterLabs] How to change the name of one cluster resource and resource group ?

2017-02-01 Thread Jihed M'selmi
Thanks for reply,
I don't have crm command. It's  corosync version 2.3.4.el7_2.1.

On Wed, Feb 1, 2017, 3:38 PM Kristoffer Grönlund  wrote:

> Jihed M'selmi  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@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
> // kgronl...@suse.com
>
-- 

J.M
___
Users mailing list: Users@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


Re: [ClusterLabs] How to change the name of one cluster resource and resource group ?

2017-02-01 Thread Kristoffer Grönlund
Jihed M'selmi  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@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
// kgronl...@suse.com

___
Users mailing list: Users@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


[ClusterLabs] How to change the name of one cluster resource and resource group ?

2017-02-01 Thread Jihed M'selmi
Hello,

I need update the name of one resource group with a new name. Any thoughts?

Cheers,
JM
-- 

J.M
___
Users mailing list: Users@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