来源:http://pve.proxmox.com/wiki/Proxmox_VE_2.0_Cluster
环境:
主服务器: P2(10.194.153.9)
从服务器: P22(10.194.153.10)
1. 在主服务器(P2)上创建集群
p2:~# pvecm create abc #创建群集名称
cluster master successfully created
2.在从服务器上加入到集群
p22:~# pvecm add 10.194.153.9 #输入集群所在的主服务器的IP
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘10.194.153.9′ (RSA) to the list of known hosts.
root@10.194.153.9’s password:
....一大堆重启服务的信息....
successfully added node 'p2' to cluster.
3.在主服务器上查看集群的节点状态
说明一切正常工作。
4.到主服务器的控制台下检查
5.到从服务器的控制台下检查
接下来,就可以基于这个集群创建高可用(HA)的虚拟服务了。