SERVER1:
pvecm create CLUSTER01
# pvecm create CLUSTER01
Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
28:8f:da:10:2e:1b:64:a6:cf:ef:da:a7:09:6c:72:6e root@x701
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| . |
| +. . . S |
|=o . + |
|= B . . |
| @E* .. |
|..*+Bo |
+-----------------+
Restarting pve cluster filesystem: pve-cluster[dcdb] notice: wrote new cluster config '/etc/cluster/cluster.conf'
.
Starting cluster:
Checking if cluster has been disabled at boot... [ OK ]
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... [ OK ]
Starting fenced... [ OK ]
Starting dlm_controld... [ OK ]
Unfencing self... [ OK ]
SERVER2:
pvecm create CLUSTER01
# pvecm create CLUSTER01
Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
bf:10:f0:35:ee:ce:9e:3c:3b:58:11:8d:41:ad:f6:09 root@x702
The key's randomart image is:
+--[ RSA 2048]----+
| .o= |
| o o |
| . oo |
| o oE. |
| S..+ . |
| +. o |
| .oo |
| .=oo |
| .O+ |
+-----------------+
Restarting pve cluster filesystem: pve-cluster[dcdb] notice: wrote new cluster config '/etc/cluster/cluster.conf'
.
Starting cluster:
Checking if cluster has been disabled at boot... [ OK ]
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... [ OK ]
Starting fenced... [ OK ]
Starting dlm_controld... [ OK ]
Unfencing self... [ OK ]
SERVER1:
pvecm s
# pvecm s
Version: 6.2.0
Config Version: 1
Cluster Name: CLUSTER01
Cluster Id: 37345
Cluster Member: Yes
Cluster Generation: 4
Membership state: Cluster-Member
Nodes: 1
Expected votes: 1
Total votes: 1
Node votes: 1
Quorum: 1
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: x701
Node ID: 1
Multicast addresses: 239.192.145.115
Node addresses: 80.190.120.8
cat /etc/pve/cluster.conf
# cat /etc/pve/cluster.conf
<?xml version="1.0"?>
<cluster name="CLUSTER01" config_version="1">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey">
</cman>
<clusternodes>
<clusternode name="x701" votes="1" nodeid="1"/>
</clusternodes>
</cluster>
SERVER2:
pvecm s
# pvecm s
Version: 6.2.0
Config Version: 1
Cluster Name: CLUSTER01
Cluster Id: 37345
Cluster Member: Yes
Cluster Generation: 4
Membership state: Cluster-Member
Nodes: 1
Expected votes: 1
Total votes: 1
Node votes: 1
Quorum: 1
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: x702
Node ID: 1
Multicast addresses: 239.192.145.115
Node addresses: 80.190.120.9
SERVER1:
pvecm add 80.190.120.9 [-force]
# pvecm add 80.190.120.9
authentication key already exists
pvecm add 80.190.120.9 -force
# pvecm add 80.190.120.9 -force
The authenticity of host '80.190.120.9 (80.190.120.9)' can't be established.
RSA key fingerprint is 8e:72:38:a7:23:97:15:f0:37:d8:0a:d1:c1:cb:87:c7.
Are you sure you want to continue connecting (yes/no)? yes
root@80.190.120.9's password:
copy corosync auth key
stopping pve-cluster service
Stopping pve cluster filesystem: pve-cluster.
backup old database
Starting pve cluster filesystem : pve-cluster.
Starting cluster:
Checking if cluster has been disabled at boot... [ OK ]
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... [ OK ]
Starting fenced... [ OK ]
Starting dlm_controld... [ OK ]
Unfencing self... [ OK ]
generating node certificates
merge known_hosts file
restart services
Restarting PVE Daemon: pvedaemon.
Restarting web server: apache2 ... waiting .
successfully added node 'x701' to cluster.
cat /etc/pve/cluster.conf
<?xml version="1.0"?>
<cluster name="CLUSTER01" config_version="2">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey">
</cman>
<clusternodes>
<clusternode name="x702" votes="1" nodeid="1"/>
<clusternode name="x701" votes="1" nodeid="2"/></clusternodes>
</cluster>
pvecm n
# pvecm n
Node Sts Inc Joined Name
1 M 4 2012-05-26 15:12:41 x701
SERVER2:
pvecm n
# pvecm n
Node Sts Inc Joined Name
1 M 4 2012-05-26 15:13:38 x702
2 X 0 x701
SERVER1 + SERVER2
reboot
Those only (SERVER2 = [URL="https://x702.saverserver.eu:8006"]https://<server2>:8006[/URL]) available ... with two nodes!