pvecm add 185.90.81.6 --force
Can you tell a little more what your setup is and which steps you already executed? Was it a old cluster where you want to add a new node or did you rebuild the cluster?
If you have VMs running on it and you are really sure that there is no conflict with the node you want to add (e.g. no VMID are the same, storage definitions do not conflict, ...)
You may add the "--force" parameter to the "pvecm add" command, do that from the one where the "this host already contains virtual machines - please remove them first" error was thrown.
E.g.:
Code:pvecm add 185.90.81.6 --force
But ensure first that the VMs from this node and the other do not conflict!
Hello
root@Giga-vds2:~# pvecm add 185.90.81.6 --force
The authenticity of host '185.90.81.6 (185.90.81.6)' can't be established.
ECDSA key fingerprint is 16:bb:b4:c7:bb:6d:f6:2b:41:a0:e8:33:ee:02:54:98.
Are you sure you want to continue connecting (yes/no)? yes
root@185.90.81.6's password:
copy corosync auth key
stopping pve-cluster service
backup old database
generating node certificates
merge known_hosts file
restart services
successfully added node 'Giga-vds2' to cluster.
root@Giga-vds2:~#
3 virtual server virtual servers disappeared ?
pvecm e 1
rm /etc/pve/corosync.conf
rm /etc/corosync/corosync.conf
systemctl stop pve-cluster
systemctl stop corosync
rm /etc/corosync/authkey
cd /var/lib/pve-cluster/
mv config.db config.db.old
# note that the backup file may have another name, should begin with config- though.
gunzip -c backup/config-1448650048.sql.gz | sqlite3 config.db
systemctl start pve-cluster
cd /var/lib/pve-cluster/
mv config.db config.db.old
# note that the backup file may have another name, should begin with config- though.
gunzip -c backup/config-1448650048.sql.gz | sqlite3 config.db
Sqlite complains when overwriting files, sorry forgot that, just move the old db then do it again, I edited my post above, or here another time for sake of easiness:
Code:cd /var/lib/pve-cluster/ mv config.db config.db.old # note that the backup file may have another name, should begin with config- though. gunzip -c backup/config-1448650048.sql.gz | sqlite3 config.db