Re: [ClusterLabs] Removing node from pacemaker.
Hi, On Fri, Mar 04, 2016 at 01:07:34PM +0300, Andrei Maruha wrote: > I have tried it on my cluster, "crm node delete" just removes node > from the cib without updating of corosync.conf. Ah, I didn't know that this is about udpu where nodes are listed in corosync.conf. > After restart of pacemaker service you will get something like this: > Online: [ node1 ] > OFFLINE: [ node2 ] > > > BTW, you will get the same state after "pacemaker restart", if you > remove a node from corosync.conf and do not call "crm corosync > reload". Right, obviously one needs to tell corosync that the configuration file changed. Thanks, Dejan > On 03/04/2016 12:07 PM, Dejan Muhamedagic wrote: > >Hi, > > > >On Thu, Mar 03, 2016 at 03:20:56PM +0300, Andrei Maruha wrote: > >>Hi, > >>Usually I use the following steps to delete node from the cluster: > >>1. #crm corosync del-node > >>2. #crm_node -R node --force > >>3. #crm corosync reload > >I'd expect all this to be wrapped in "crm node delete". Isn't > >that the case? > > > >Also, is "corosync reload" really required after node removal? > > > >Thanks, > > > >Dejan > > > >>Instead of steps 1 and 2you can delete certain node from the > >>corosync config manually and run: > >>#corosync-cfgtool -R > >> > >>On 03/03/2016 02:44 PM, Somanath Jeeva wrote: > >>>Hi, > >>> > >>>I am trying to remove a node from the pacemaker’/corosync cluster, > >>>using the command “crm_node -R dl360x4061 –force”. > >>> > >>>Though this command removes the node from the cluster, it is > >>>appearing as offline after pacemaker/corosync restart in the nodes > >>>that are online. > >>> > >>>Is there any other command to completely delete the node from the > >>>pacemaker/corosync cluster. > >>> > >>>Pacemaker and Corosync Versions. > >>> > >>>PACEMAKER=1.1.10 > >>> > >>>COROSYNC=1.4.1 > >>> > >>>Regards > >>> > >>>Somanath Thilak J > >>> > >>> > >>> > >>>___ > >>>Users mailing list: Users@clusterlabs.org > >>>http://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://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://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://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://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] Removing node from pacemaker.
I have tried it on my cluster, "crm node delete" just removes node from the cib without updating of corosync.conf. After restart of pacemaker service you will get something like this: Online: [ node1 ] OFFLINE: [ node2 ] BTW, you will get the same state after "pacemaker restart", if you remove a node from corosync.conf and do not call "crm corosync reload". On 03/04/2016 12:07 PM, Dejan Muhamedagic wrote: Hi, On Thu, Mar 03, 2016 at 03:20:56PM +0300, Andrei Maruha wrote: Hi, Usually I use the following steps to delete node from the cluster: 1. #crm corosync del-node 2. #crm_node -R node --force 3. #crm corosync reload I'd expect all this to be wrapped in "crm node delete". Isn't that the case? Also, is "corosync reload" really required after node removal? Thanks, Dejan Instead of steps 1 and 2you can delete certain node from the corosync config manually and run: #corosync-cfgtool -R On 03/03/2016 02:44 PM, Somanath Jeeva wrote: Hi, I am trying to remove a node from the pacemaker’/corosync cluster, using the command “crm_node -R dl360x4061 –force”. Though this command removes the node from the cluster, it is appearing as offline after pacemaker/corosync restart in the nodes that are online. Is there any other command to completely delete the node from the pacemaker/corosync cluster. Pacemaker and Corosync Versions. PACEMAKER=1.1.10 COROSYNC=1.4.1 Regards Somanath Thilak J ___ Users mailing list: Users@clusterlabs.org http://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://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://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://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] Removing node from pacemaker.
Hi, On Thu, Mar 03, 2016 at 03:20:56PM +0300, Andrei Maruha wrote: > Hi, > Usually I use the following steps to delete node from the cluster: > 1. #crm corosync del-node > 2. #crm_node -R node --force > 3. #crm corosync reload I'd expect all this to be wrapped in "crm node delete". Isn't that the case? Also, is "corosync reload" really required after node removal? Thanks, Dejan > Instead of steps 1 and 2you can delete certain node from the > corosync config manually and run: > #corosync-cfgtool -R > > On 03/03/2016 02:44 PM, Somanath Jeeva wrote: > > > >Hi, > > > >I am trying to remove a node from the pacemaker’/corosync cluster, > >using the command “crm_node -R dl360x4061 –force”. > > > >Though this command removes the node from the cluster, it is > >appearing as offline after pacemaker/corosync restart in the nodes > >that are online. > > > >Is there any other command to completely delete the node from the > >pacemaker/corosync cluster. > > > >Pacemaker and Corosync Versions. > > > >PACEMAKER=1.1.10 > > > >COROSYNC=1.4.1 > > > >Regards > > > >Somanath Thilak J > > > > > > > >___ > >Users mailing list: Users@clusterlabs.org > >http://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://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://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] Removing node from pacemaker.
Thanx for this tip , Andrei . I was complete unaware of this functionality of crm command line tool. - Debabrata From: Andrei Maruha mailto:andrei_mar...@epam.com>> Reply-To: Cluster Labs - All topics related to open-source clustering welcomed mailto:users@clusterlabs.org>> Date: Thursday, 3 March 2016 17:50 To: Cluster Labs - All topics related to open-source clustering welcomed mailto:users@clusterlabs.org>> Subject: Re: [ClusterLabs] Removing node from pacemaker. Hi, Usually I use the following steps to delete node from the cluster: 1. #crm corosync del-node 2. #crm_node -R node --force 3. #crm corosync reload Instead of steps 1 and 2you can delete certain node from the corosync config manually and run: #corosync-cfgtool -R On 03/03/2016 02:44 PM, Somanath Jeeva wrote: Hi, I am trying to remove a node from the pacemaker’/corosync cluster, using the command “crm_node -R dl360x4061 –force”. Though this command removes the node from the cluster, it is appearing as offline after pacemaker/corosync restart in the nodes that are online. Is there any other command to completely delete the node from the pacemaker/corosync cluster. Pacemaker and Corosync Versions. PACEMAKER=1.1.10 COROSYNC=1.4.1 Regards Somanath Thilak J ___ Users mailing list: Users@clusterlabs.org<mailto:Users@clusterlabs.org>http://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://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] Removing node from pacemaker.
Thanx Ken, Regards, Debabrata On 03/03/16 22:18, "Ken Gaillot" wrote: >On 03/03/2016 06:04 AM, Debabrata Pani wrote: >> >>http://clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s >>-n >> ode-delete.html >> >> >> >> Are we missing the deletion of the nodes from the cib ? > >That documentation is old; crm_node -R does remove the node from the CIB. > >> Regards, >> Debabrata >> >> >> From: Somanath Jeeva >> Reply-To: Cluster Labs - All topics related to open-source clustering >> welcomed >> Date: Thursday, 3 March 2016 17:14 >> To: "users@clusterlabs.org" >> Subject: [ClusterLabs] Removing node from pacemaker. >> >> >> Hi, >> >> I am trying to remove a node from the pacemaker¹/corosync cluster, using >> the command ³crm_node -R dl360x4061 force². > >The above command removes the node from pacemaker itself, but not the >underlying cluster layer, which should be done first. > >High-level tools often offer simple commands to handle both the >pacemaker and cluster layer parts for you. For pcs, it's "pcs cluster >node remove ". > >Otherwise, the process for removing the node from the cluster layer >varies by what you're using -- heartbeat, corosync 1 with plugin, >corosync 1 with CMAN, or corosync 2. Generally, you want to stop the >cluster software on the node to be removed first, then remove the node >from the layer's configuration on the remaining nodes if it is >explicitly specified there. > >> Though this command removes the node from the cluster, it is appearing >>as >> offline after pacemaker/corosync restart in the nodes that are online. >> >> Is there any other command to completely delete the node from the >> pacemaker/corosync cluster. >> >> Pacemaker and Corosync Versions. >> PACEMAKER=1.1.10 >> COROSYNC=1.4.1 >> >> Regards >> Somanath Thilak J > > >___ >Users mailing list: Users@clusterlabs.org >http://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://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] Removing node from pacemaker.
On 03/03/2016 06:04 AM, Debabrata Pani wrote: > http://clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-n > ode-delete.html > > > > Are we missing the deletion of the nodes from the cib ? That documentation is old; crm_node -R does remove the node from the CIB. > Regards, > Debabrata > > > From: Somanath Jeeva > Reply-To: Cluster Labs - All topics related to open-source clustering > welcomed > Date: Thursday, 3 March 2016 17:14 > To: "users@clusterlabs.org" > Subject: [ClusterLabs] Removing node from pacemaker. > > > Hi, > > I am trying to remove a node from the pacemaker¹/corosync cluster, using > the command ³crm_node -R dl360x4061 force². The above command removes the node from pacemaker itself, but not the underlying cluster layer, which should be done first. High-level tools often offer simple commands to handle both the pacemaker and cluster layer parts for you. For pcs, it's "pcs cluster node remove ". Otherwise, the process for removing the node from the cluster layer varies by what you're using -- heartbeat, corosync 1 with plugin, corosync 1 with CMAN, or corosync 2. Generally, you want to stop the cluster software on the node to be removed first, then remove the node from the layer's configuration on the remaining nodes if it is explicitly specified there. > Though this command removes the node from the cluster, it is appearing as > offline after pacemaker/corosync restart in the nodes that are online. > > Is there any other command to completely delete the node from the > pacemaker/corosync cluster. > > Pacemaker and Corosync Versions. > PACEMAKER=1.1.10 > COROSYNC=1.4.1 > > Regards > Somanath Thilak J ___ Users mailing list: Users@clusterlabs.org http://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] Removing node from pacemaker.
Hi, Usually I use the following steps to delete node from the cluster: 1. #crm corosync del-node 2. #crm_node -R node --force 3. #crm corosync reload Instead of steps 1 and 2you can delete certain node from the corosync config manually and run: #corosync-cfgtool -R On 03/03/2016 02:44 PM, Somanath Jeeva wrote: Hi, I am trying to remove a node from the pacemaker’/corosync cluster, using the command “crm_node -R dl360x4061 –force”. Though this command removes the node from the cluster, it is appearing as offline after pacemaker/corosync restart in the nodes that are online. Is there any other command to completely delete the node from the pacemaker/corosync cluster. Pacemaker and Corosync Versions. PACEMAKER=1.1.10 COROSYNC=1.4.1 Regards Somanath Thilak J ___ Users mailing list: Users@clusterlabs.org http://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://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] Removing node from pacemaker.
http://clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-n ode-delete.html Are we missing the deletion of the nodes from the cib ? Regards, Debabrata From: Somanath Jeeva Reply-To: Cluster Labs - All topics related to open-source clustering welcomed Date: Thursday, 3 March 2016 17:14 To: "users@clusterlabs.org" Subject: [ClusterLabs] Removing node from pacemaker. Hi, I am trying to remove a node from the pacemaker¹/corosync cluster, using the command ³crm_node -R dl360x4061 force². Though this command removes the node from the cluster, it is appearing as offline after pacemaker/corosync restart in the nodes that are online. Is there any other command to completely delete the node from the pacemaker/corosync cluster. Pacemaker and Corosync Versions. PACEMAKER=1.1.10 COROSYNC=1.4.1 Regards Somanath Thilak J ___ Users mailing list: Users@clusterlabs.org http://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