Hi.
I'm doing some tests with a PVE 2.1 cluster to learn it.
I create a new cluster configuration on the master server:
And I enabled the unicast communication in the cluster:
I added the nodes to /etc/hosts:
The cluster is correctly created:
Now to the second node:
No quorum from the master server.
Now I cannot retry:
How I can restore the cluster configuration reverting it back before the "pvecm add" command to retry to add it to the master server?
I see that the /etc/pve/priv folder does not exist and I cannot create it:
The network does not support multicast because the servers are not connected in a local network (they are in housing at Hetzner).
Thank you very much!
Bye.
I'm doing some tests with a PVE 2.1 cluster to learn it.
I create a new cluster configuration on the master server:
Code:
root@vetest1:/var/lib/vz/template/iso# pvecm create testcluster
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:
79:f1:5a:d4:4f:d6:3d:7a:2a:ab:a3:ae:30:14:48:73 root@vetest1
The key's randomart image is:
+--[ RSA 2048]----+
| o E |
|. + . o|
| . . . . ..=|
| . . + .+.|
| . S . o. ..|
| . . o o |
| o .. . |
| o . o |
| .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 ]
And I enabled the unicast communication in the cluster:
Code:
<?xml version="1.0"?>
<cluster name="testcluster" config_version="1">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey" transport="udpu">
</cman>
<clusternodes>
<clusternode name="vetest1" votes="1" nodeid="1"/>
</clusternodes>
</cluster>
I added the nodes to /etc/hosts:
Code:
127.0.0.1 localhost
123.123.123.1 vetest1.domain.com vetest1
123.123.123.2 vetest2.domain.com vetest2
The cluster is correctly created:
Code:
root@vetest1:/var/lib/vz/template/iso# pvecm status
Version: 6.2.0
Config Version: 1
Cluster Name: testcluster
Cluster Id: 31540
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: vetest1
Node ID: 1
Multicast addresses: 239.192.123.175
Node addresses: 123.123.123.1
Now to the second node:
Code:
root@vetest2:~# pvecm add vetest1.domain.com
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:
1d:bb:f6:0b:39:a3:62:41:6e:5b:a6:92:9b:d8:b2:46 root@vetest1
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| . |
| . . o |
| o S o |
| E + o o |
| . o * B |
| ooo.= o = |
| .oo++ .. o. |
+-----------------+
The authenticity of host 'vetest1.domain.com (123.123.123.1)' can't be established.
RSA key fingerprint is cb:76:18:7d:b9:01:cc:43:90:5c:cb:e7:a4:14:ea:3a.
Are you sure you want to continue connecting (yes/no)? yes+
root@vetest1.domain.com's password:
node vetest1 already defined
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...
Timed-out waiting for cluster Check cluster logs for details
[FAILED]
waiting for quorum...
No quorum from the master server.
Now I cannot retry:
Code:
root@vetest2:~# pvecm add vetest1.domain.com
can't create shared ssh key database '/etc/pve/priv/authorized_keys'
authentication key already exists
How I can restore the cluster configuration reverting it back before the "pvecm add" command to retry to add it to the master server?
I see that the /etc/pve/priv folder does not exist and I cannot create it:
Code:
root@vetest2:~# mkdir /etc/pve/priv
mkdir: cannot create directory `/etc/pve/priv': Permission denied
The network does not support multicast because the servers are not connected in a local network (they are in housing at Hetzner).
Thank you very much!
Bye.