[ClusterLabs] Adding a node to an active cluster
Tomas Jelinek
tojeline at redhat.com
Thu Oct 29 08:55:51 EDT 2020
Hi Jiagi,
Yes, 'pcs cluster node add' can add a node to a cluster which is already
running resources.
Regards,
Tomas
Dne 28. 10. 20 v 22:09 Strahil Nikolov napsal(a):
> pcsd is another layer ontop of the crmd and thus , you need to use the pcs commands to manage the cluster (otherwise the outer layer will be out of sync with inner layers).
>
> pcs cluster auth is designed to be used to add a node to a cluster.If you are worried of the result - put the cluster in global maintenance before that.
> You got 2 steps :
> - pcs cluster auth -> allows the pcsd on the new node to communicate with pcsd daemons on the other members of the cluster
> - pcs cluster node add -> adds the node to the cluster
>
>
> Best Regards,
> Strahil Nikolov
>
>
>
>
>
>
> В сряда, 28 октомври 2020 г., 22:04:25 Гринуич+2, Jiaqi Tian1 <dylan.jiaqi.tian at ibm.com> написа:
>
>
>
>
>
> Hi,
>
> Is "pcs cluster auth" command capable of add a host when the cluster already has resources running? Also, is there a crmsh version of this command? I didn't find this for crmsh.
>
>
>
> Thanks,
>
> Jiaqi
>
>
>
>> ----- Original message -----
>> From: Strahil Nikolov <hunter86_bg at yahoo.com>
>> Sent by: "Users" <users-bounces at clusterlabs.org>
>> To: "users at clusterlabs.org" <users at clusterlabs.org>
>> Cc:
>> Subject: [EXTERNAL] Re: [ClusterLabs] Adding a node to an active cluster
>> Date: Tue, Oct 27, 2020 1:07 PM
>>
>> On RHEL, I would use "pcs cluster auth"/"pcs host auth" && "pcs cluster node add".For cluster nodes auth , you can check : https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/high-availability-and-clusters_considerations-in-adopting-rhel-8#new_commands_for_authenticating_nodes_in_a_cluster Best Regards,Strahil NikolovВ вторник, 27 октомври 2020 г., 18:06:06 Гринуич+2, Jiaqi Tian1 <dylan.jiaqi.tian at ibm.com> написа:Hi Xin,Thank you. The crmsh version is 4.1.0.0, OS is RHEL 8.0. I have tried crm cluster init -y, but it seems it cannot be run when the cluster is already up and running with resources running on it. is crm cluster join command used for this situation? Thanks,Jiaqi > ----- Original message -----> From: Xin Liang <XLiang at suse.com>> Sent by: "Users" <users-bounces at clusterlabs.org>> To: "users at clusterlabs.org" <users at clusterlabs.org>> Cc:>> Subject: [EXTERNAL] Re: [ClusterLabs] Adding a node to an active cluster> Date: Tue, Oct 27, 2020 3:29 AM> >> Hi Jiaqi,>> >> Which OS version do you use and which crmsh version do you use?> I highly recommend you update your crmsh to latest version.>> Besides that, did you mean you already have ceha03 and ceha04 nodes running the cluster service?>> From ha-cluster-bootstrapceha03.log, I can't see you have record of init cluster successfully.>> >> Ideally, you should run:>> 1. on ceha03: crm cluster init -y> 2. on ceha01: crm cluster join -c ceha03 -y>> > ________________________________> From: Users <users-bounces at clusterlabs.org> on behalf of Jiaqi Tian1 <Dylan.Jiaqi.Tian at ibm.com>> Sent: Tuesday, October 27, 2020 12:15 AM> To: users at clusterlabs.org <users at clusterlabs.org>> Subject: Re: [ClusterLabs] Adding a node to an active cluster> >> Hi Xin,>> I have ceha03 and ceha04 in cluster and trying to add ceha01 to the cluster. Running crm cluster join -c ceha03 -y on ceha01. Here are logs in ceha03 and ceha01. the log file in ceha04 is empty.>> >> Thanks,>> Jiaqi>> >>> ----- Original message ----->> From: Xin Liang <XLiang at suse.com>>> Sent by: "Users" <users-bounces at clusterlabs.org>>> To: "users at clusterlabs.org" <users at clusterlabs.org>>> Cc:>> Subject: [EXTERNAL] Re: [ClusterLabs] Adding a node to an active cluster>> Date: Mon, Oct 26, 2020 8:43 AM>> >> Hi Jiaqi>>>> >>>> Could you give me your "/var/log/crmsh/ha-cluster-bootstrap.log" or "/var/log/ha-cluster-bootstrap.log" on these 3 nodes?>>>> >>>> Thanks>>>> >> ________________________________>> From: Users <users-bounces at clusterlabs.org> on behalf of Jiaqi Tian1 <Dylan.Jiaqi.Tian at ibm.com>>> Sent: Saturday, October 24, 2020 5:48 AM>> To: users at clusterlabs.org <users at clusterlabs.org>>> Subject: Re: [ClusterLabs] Adding a node to an active cluster>> >>>> Hi,>>>> Thank you for your suggestion. The case I have is, I have host1 and host2 in cluster that has resources running, then I try to join host3 to the cluster by running "crm cluster join -c host1 -y". But I get this "Configuring csync2...ERROR: cluster.join: Can't invoke crm cluster init init csync2_remote on host3" issue. Are there any other requirements for running this command?>>>> >>>> Thanks>>>> >>>> Jiaqi Tian>>>> >>>>> ----- Original message ----->>> From: Xin Liang <XLiang at suse.com>>>> Sent by: "Users" <users-bounces at clusterlabs.org>>>> To: Cluster Labs - All topics related to open-source clustering welcomed <users at clusterlabs.org>>>> Cc:>>> Subject: [EXTERNAL] Re: [ClusterLabs] Adding a node to an active cluster>>> Date: Wed, Oct 21, 2020 9:44 PM>>> >>> Hi Jiaqi,>>>>>> >>>>>> Assuming you already have node1 running resources, you can try to run this command on node2:>>>>>> >>>>>> "crm cluster join -c node1 -y">>>>>> >>> ________________________________>>> From: Users <users-bounces at clusterlabs.org> on behalf of Jiaqi Tian1 <Dylan.Jiaqi.Tian at ibm.com>>>> Sent: Wednesday, October 21, 2020 10:03 PM>>> To: users at clusterlabs.org <users at clusterlabs.org>>>> Subject: [ClusterLabs] Adding a node to an active cluster>>> >>>>>> Hi,>>>>>> I'm trying to add a new node into an active pacemaker cluster with resources up and running.>>>>>> After steps:>>>>>> 1. update corosync.conf files among all hosts in cluster including the new node>>>>>> 2. copy corosync auth file to the new node>>>>>> 3. enable corosync and pacemaker on the new node >>>>>> 4. adding the new node to the list of node in /var/lib/pacemaker/cib/cib.xml>>>>>> >>>>>> Then I run crm status, the new node is displayed as offline. It will not become online, unless we run restart corosync and pacemaker on all nodes in cluster. But this is not what we want, since we want to keep existing nodes and resources up and running. Also in this case crm_node -l doesn't list the new node.>>>>>> >>>>>> So my question is:>>>>>> >>>>>> 1. Is there another approach to have the existing nodes aware of the new node and have crm status indicates the node is online while keeping other nodes and resources up and running?>>>>>> 2. which config file crm_node command reads?>>>>>> >>>>>> Thanks,>>>>>> >>>>>> Jiaqi Tian>>>>>> _______________________________________________Manage your subscription:https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
>>
>>>>
>>>>
>>>>
>>>> _______________________________________________Manage your subscription:https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
>>>
>>>
>>>
>>> _______________________________________________Manage your subscription:https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
>>
>>
>>
>>
>> _______________________________________________
>> Manage your subscription:
>> https://lists.clusterlabs.org/mailman/listinfo/users
>>
>> ClusterLabs home: https://www.clusterlabs.org/
>> _______________________________________________
>> Manage your subscription:
>> https://lists.clusterlabs.org/mailman/listinfo/users
>>
>> ClusterLabs home: https://www.clusterlabs.org/
>>
>>
>
>
>
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>
More information about the Users
mailing list