ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

proxmox创建集群

2019-05-21 16:57:34  阅读:468  来源: 互联网

标签:information 创建 108.200 192.168 集群 proxmox root corosync


集群创建(任意节点)

1.1 命令行创建集群

  • 创建集群

上个教程也创建了集群,如果创建了这里就不需要创建了。

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:~# 
  • 查看集群状态

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:~# 
  • 查看集群节点

root@shaonian:~# pvecm nodes

Membership information
----------------------
    Nodeid      Votes Name
         1          1 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
----------------------
    Nodeid      Votes Name
0x00000001          1 192.168.108.200
0x00000002          1 192.168.108.201 (local)
root@proxmox2:~# 
  • 查看节点

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界面添加节点加入集群

  • 选择集群,选择加入信息

  • 选择拷贝信息

  • 登录节点界面,选择加入集群

  • 将信息复制入信息栏,并输入集群密码

  • 正在加入集群

  • 添加成功

  • 查看集群界面

喜欢请关注微信公众号-运维少年


标签:information,创建,108.200,192.168,集群,proxmox,root,corosync
来源: https://blog.51cto.com/xiaowangzai/2398005

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有