In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Cluster creation (any node) 1.1 Command line create cluster
Create a cluster
A cluster was also created in the last tutorial, but there is no need to create it here.
Root@shaonian:~# pvecm create yunwei-cluster
Corosync Cluster Engine Authentication key generator.
Gathering 1024 bits for key from / dev/urandom.
Writing corosync key to / etc/corosync/authkey.
Writing corosync config to / etc/pve/corosync.conf
Restart corosync and cluster filesystem
Root@shaonian:~#
View cluster status
Root@shaonian:~# pvecm status
Quorum information
-
Date: Mon May 20 16:23:08 2019
Quorum provider: corosync_votequorum
Nodes: 1
Node ID: 0x00000001
Ring ID: 1/8
Quorate: Yes
Votequorum information
--
Expected votes: 1
Highest expected: 1
Total votes: 1
Quorum: 1
Flags: Quorate
Membership information
--
Nodeid Votes Name
0x00000001 1 192.168.108.200 (local)
Root@shaonian:~#
View cluster nodes
Root@shaonian:~# pvecm nodes
Membership information
--
Nodeid Votes Name
1 1 192.168.108.200 (local)
Root@shaonian:~#
1.2 nodes join the cluster
Log in to the remaining nodes
IP is the node IP that created the cluster
Root@proxmox2:~# pvecm add 192.168.108.200
Please enter superuser (root) password for '192.168.108.200:
Password for root@192.168.108.200: *
Establishing API connection with host '192.168.108.200'
The authenticity of host '192.168.108.200' can't be established.
X509 SHA256 key fingerprint is 77:48:DE:3A:E7:59:C0:47:0D:F1:6A:1A:ED:70:86:C3:53:EC:A3:D8:C6:2C:63:53:E5:46:15:C2:EB:7B:BC:0C.
Are you sure you want to continue connecting (yes/no)? Yes
Login succeeded.
Request addition of this node
Join request OK, finishing setup locally
Stopping pve-cluster service
Backup old database to'/ var/lib/pve-cluster/backup/config-1558409605.sql.gz'
Waiting for quorum...OK
(re) generate node files
Generate new node certificate
Merge authorized SSH keys and known hosts
Generated new node certificate, restart pveproxy and pvedaemon services
Successfully added node 'proxmox2' to cluster.
Root@proxmox2:~#
View statu
Root@proxmox2:~# pvecm status
Quorum information
-
Date: Tue May 21 11:40:31 2019
Quorum provider: corosync_votequorum
Nodes: 2
Node ID: 0x00000002
Ring ID: 1/28
Quorate: Yes
Votequorum information
--
Expected votes: 2
Highest expected: 2
Total votes: 2
Quorum: 2
Flags: Quorate
Membership information
--
Nodeid Votes Name
0x00000001 1 192.168.108.200
0x00000002 1 192.168.108.201 (local)
Root@proxmox2:~#
View Node
Root@proxmox2:~# pvecm nodes
Membership information
--
Nodeid Votes Name
1 1 192.168.108.200
2 1 192.168.108.201 (local)
Root@proxmox2:~#
1.3 WEB interface to add nodes to join the cluster
Select cluster, select join information
Select copy information
Log in to the node interface and select to join the cluster
Copy the information into the information bar and enter the cluster password
Joining the cluster
Added successfully
View the cluster interface
If you like, please follow the official account of Wechat-Operation and maintenance Youth.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.