Nodes and IP Addresses:
Master: 192.168.84.139
Work: 192.168.84.140
Prerequisites:
PVE Version: pve-manager/6.3-2/22f57405 (running kernel: 5.4.73-1-pve)
1. The master node has already been installed and a cluster has been created.
pvecm add
For example, to create a cluster named `yunwei-cluster`:
pvecm add yunwei-cluster
2. This step is crucial. The FQDN of the work node (the hostname (FQDN) entered during the PVE system installation) must be different from the master node and the names cannot be the same.
Incorrect Example:
Master node name: pve.master
Work node name: pve.work
Adding to the cluster will result in an error:
root@pve:~# pvecm add 192.168.84.139
Please enter superuser (root) password for ‘192.168.84.139’: **********
Establishing API connection with host ‘192.168.84.139’
The authenticity of host ‘192.168.84.139’ can’t be established.
X509 SHA256 key fingerprint is 12:A3:84:89:20:80:1B:35:73:97:0F:78:94:A8:53:1B:72:14:AB:EA:0E:C4:71:35:16:37:B9:AC:14:C3:AC:2D.
Are you sure you want to continue connecting (yes/no)? yes
Login succeeded.
check cluster join API version
No cluster network links passed explicitly, fallback to local node IP ‘192.168.84.140’
Request addition of this node
An error occurred on the cluster node: can’t add existing node ‘pve’
Cluster join aborted!
Correct Example:
Master node: master.pve
Work node: work01.pve
Work Node Operations:
1. Run the following command on the work node:
pvecm add 192.168.84.139
2. Open a browser and visit:
Adding nodes is actually quite simple. It is important to ensure that the FQDN names of the nodes are correctly standardized.
Leave a Reply