proxmox创建集群

发布时间:2025-09-27 点击:9
云计算
集群创建(任意节点)1.1 命令行创建集群
创建集群
上个教程也创建了集群,如果创建了这里就不需要创建了。
root@shaonian:~#?pvecmcreate?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:~#?
查看集群状态
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
----------------------
nodeidvotes?name
0x000000011?192.168.108.200?(local)
root@shaonian:~#?
查看集群节点
root@shaonian:~#?pvecm?nodes
membership?information
----------------------
nodeidvotes?name
?11?192.168.108.200?(local)
root@shaonian:~#?
1.2 节点加入集群
登录到其余节点
ip为创建集群的节点ip
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:~#?
查看状态
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
----------------------
nodeidvotes?name
0x000000011?192.168.108.200
0x000000021?192.168.108.201?(local)
root@proxmox2:~#?
查看节点
root@proxmox2:~#?pvecm?nodes
membership?information
----------------------
nodeidvotes?name
?11?192.168.108.200
?21?192.168.108.201?(local)
root@proxmox2:~#?
1.3 web界面添加节点加入集群
选择集群,选择加入信息
选择拷贝信息
登录节点界面,选择加入集群
将信息复制入信息栏,并输入集群密码
正在加入集群
添加成功
查看集群界面
喜欢请关注微信公众号-运维少年

百度云服务器要备案那
域名所有者信息小七邮箱地址山东 电话
网站怎么做才能有助于走向品牌化
重新提交备案-备案平台
阿里云搭建网站服务器
云服务器厂商
为何要建移动站?神马移动站该如何seo优化
path环境变量怎么恢复 注册表没有path环境变量的解决方法