<p dir="ltr">Oh yes, Isee</p>
<p dir="ltr">Thanks !</p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 1, 2017, 4:32 PM Jihed M'selmi <<a href="mailto:jihed.mselmi@gmail.com">jihed.mselmi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="gmail_msg">Thanks Tomas for highlighting this point.<br class="gmail_msg">
Updating the contraints should be done by deleting and creating a new ones with the right name, right ?<br class="gmail_msg">
</p>
<br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Wed, Feb 1, 2017, 4:19 PM Tomas Jelinek <<a href="mailto:tojeline@redhat.com" class="gmail_msg" target="_blank">tojeline@redhat.com</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dne 1.2.2017 v 16:13 Jihed M'selmi napsal(a):<br class="gmail_msg">
> The only thing that I found is to create a backup with pcs config<br class="gmail_msg">
> Modify it and then restore.<br class="gmail_msg">
> I was hoping to use a simple command<br class="gmail_msg">
<br class="gmail_msg">
Pcs doesn't have a command for renaming resources, unfortunately.<br class="gmail_msg">
<br class="gmail_msg">
You don't need to backup and restore the configuration to edit it. You<br class="gmail_msg">
can use the "pcs cluster edit" command to edit it in place. You would<br class="gmail_msg">
need to change the resource name and update the name in all constraints<br class="gmail_msg">
referencing that resource.<br class="gmail_msg">
<br class="gmail_msg">
Regards,<br class="gmail_msg">
Tomas<br class="gmail_msg">
<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> On Wed, Feb 1, 2017, 4:05 PM Kristoffer Grönlund <<a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a><br class="gmail_msg">
> <mailto:<a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a>>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
>     Jihed M'selmi <<a href="mailto:jihed.mselmi@gmail.com" class="gmail_msg" target="_blank">jihed.mselmi@gmail.com</a><br class="gmail_msg">
>     <mailto:<a href="mailto:jihed.mselmi@gmail.com" class="gmail_msg" target="_blank">jihed.mselmi@gmail.com</a>>> writes:<br class="gmail_msg">
><br class="gmail_msg">
>     > Thanks for reply,<br class="gmail_msg">
>     > I don't have crm command. It's  corosync version 2.3.4.el7_2.1.<br class="gmail_msg">
>     ><br class="gmail_msg">
><br class="gmail_msg">
>     crmsh is a separate project, you can install it in parallel with<br class="gmail_msg">
>     corosync/pacemaker. There are packages on OBS:<br class="gmail_msg">
><br class="gmail_msg">
>     <a href="http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/RedHat_RHEL-7/" rel="noreferrer" class="gmail_msg" target="_blank">http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/RedHat_RHEL-7/</a><br class="gmail_msg">
><br class="gmail_msg">
>     Otherwise if you have pcs it should have something similar to crm<br class="gmail_msg">
>     configure rename.<br class="gmail_msg">
><br class="gmail_msg">
>     Cheers,<br class="gmail_msg">
>     Kristoffer<br class="gmail_msg">
><br class="gmail_msg">
>     > On Wed, Feb 1, 2017, 3:38 PM Kristoffer Grönlund<br class="gmail_msg">
>     <<a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a> <mailto:<a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a>>> wrote:<br class="gmail_msg">
>     ><br class="gmail_msg">
>     >> Jihed M'selmi <<a href="mailto:jihed.mselmi@gmail.com" class="gmail_msg" target="_blank">jihed.mselmi@gmail.com</a><br class="gmail_msg">
>     <mailto:<a href="mailto:jihed.mselmi@gmail.com" class="gmail_msg" target="_blank">jihed.mselmi@gmail.com</a>>> writes:<br class="gmail_msg">
>     >><br class="gmail_msg">
>     >> > Hello,<br class="gmail_msg">
>     >> ><br class="gmail_msg">
>     >> > I need update the name of one resource group with a new name. Any<br class="gmail_msg">
>     >> thoughts?<br class="gmail_msg">
>     >> ><br class="gmail_msg">
>     >><br class="gmail_msg">
>     >> crmsh has the crm configure rename command, which tries to update any<br class="gmail_msg">
>     >> constraint references atomically as well.<br class="gmail_msg">
>     >><br class="gmail_msg">
>     >> Cheers,<br class="gmail_msg">
>     >> Kristoffer<br class="gmail_msg">
>     >><br class="gmail_msg">
>     >> > Cheers,<br class="gmail_msg">
>     >> > JM<br class="gmail_msg">
>     >> > --<br class="gmail_msg">
>     >> ><br class="gmail_msg">
>     >> > J.M<br class="gmail_msg">
>     >> > _______________________________________________<br class="gmail_msg">
>     >> > Users mailing list: <a href="mailto:Users@clusterlabs.org" class="gmail_msg" target="_blank">Users@clusterlabs.org</a><br class="gmail_msg">
>     <mailto:<a href="mailto:Users@clusterlabs.org" class="gmail_msg" target="_blank">Users@clusterlabs.org</a>><br class="gmail_msg">
>     >> > <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br class="gmail_msg">
>     >> ><br class="gmail_msg">
>     >> > Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.clusterlabs.org</a><br class="gmail_msg">
>     >> > Getting started:<br class="gmail_msg">
>     <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" class="gmail_msg" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br class="gmail_msg">
>     >> > Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" class="gmail_msg" target="_blank">http://bugs.clusterlabs.org</a><br class="gmail_msg">
>     >><br class="gmail_msg">
>     >> --<br class="gmail_msg">
>     >> // Kristoffer Grönlund<br class="gmail_msg">
>     >> // <a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a> <mailto:<a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a>><br class="gmail_msg">
>     >><br class="gmail_msg">
>     > --<br class="gmail_msg">
>     ><br class="gmail_msg">
>     > J.M<br class="gmail_msg">
><br class="gmail_msg">
>     --<br class="gmail_msg">
>     // Kristoffer Grönlund<br class="gmail_msg">
>     // <a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a> <mailto:<a href="mailto:kgronlund@suse.com" class="gmail_msg" target="_blank">kgronlund@suse.com</a>><br class="gmail_msg">
><br class="gmail_msg">
> --<br class="gmail_msg">
><br class="gmail_msg">
> J.M<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> Users mailing list: <a href="mailto:Users@clusterlabs.org" class="gmail_msg" target="_blank">Users@clusterlabs.org</a><br class="gmail_msg">
> <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br class="gmail_msg">
><br class="gmail_msg">
> Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.clusterlabs.org</a><br class="gmail_msg">
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" class="gmail_msg" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br class="gmail_msg">
> Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" class="gmail_msg" target="_blank">http://bugs.clusterlabs.org</a><br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Users mailing list: <a href="mailto:Users@clusterlabs.org" class="gmail_msg" target="_blank">Users@clusterlabs.org</a><br class="gmail_msg">
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br class="gmail_msg">
<br class="gmail_msg">
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.clusterlabs.org</a><br class="gmail_msg">
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" class="gmail_msg" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br class="gmail_msg">
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" class="gmail_msg" target="_blank">http://bugs.clusterlabs.org</a><br class="gmail_msg">
</blockquote></div><div dir="ltr" class="gmail_msg">-- <br class="gmail_msg"></div><div data-smartmail="gmail_signature" class="gmail_msg"><div dir="ltr" class="gmail_msg"><p dir="ltr" class="gmail_msg">J.M</p>
</div></div></blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">J.M</p>
</div></div>