Proxmox VE 4.0 released!

Ok ok, I just say that's unusable in production environment.



Hi spirit, thank you for your how-to, but I don't think it can work.
When you run "pvecm add ipofnode1 -force" on a non-rebooted node, it will fail because it calls 'systemctl stop pve-cluster' and systemctl does not work yet (system not rebooted) :
Code:
pvecm add 192.168.0.203 -force
node test2 already defined
copy corosync auth key
stopping pve-cluster service
Failed to get D-Bus connection: Unknown error -1
can't stop pve-cluster service

yes, but the main part (copy corosync conf is done just before)

Code:
            print "copy corosync auth key\n";
            $cmd = ['rsync', '--rsh=ssh -l root -o BatchMode=yes', '-lpgoq',
                    "[$host]:$authfile $clusterconf", $tmpdir];


            system(@$cmd) == 0 || die "can't rsync data from host '$host'\n";


            mkdir "/etc/corosync";
            my $confbase = basename($clusterconf);


            $cmd = "cp '$tmpdir/$confbase' '/etc/corosync/$confbase'";
            system($cmd) == 0 || die "can't copy cluster configuration\n";


            my $keybase = basename($authfile);
            system ("cp '$tmpdir/$keybase' '$authfile'") == 0 ||
                die "can't copy '$tmpdir/$keybase' to '$authfile'\n";


            print "stopping pve-cluster service\n";


            system("umount $basedir -f >/dev/null 2>&1");
            system("systemctl stop pve-cluster") == 0 ||
                die "can't stop pve-cluster service\n";


That's why I shutdown pve-cluster and corosync manually just after
Code:
# killall -9 corosync
# /etc/init.d/pve-cluster stop
 
Still not working for me...

Code:
test1:~# corosync
notice  [MAIN  ] Corosync Cluster Engine ('2.3.5'): started and ready to provide service.
info    [MAIN  ] Corosync built-in features: augeas systemd pie relro bindnow
test1:~# /etc/init.d/pve-cluster start
Starting pve cluster filesystem : pve-clusteripcc_send_rec failed: Connection refused
ipcc_send_rec failed: Connection refused
ipcc_send_rec failed: Connection refused
.

Corosync is working and got quorum, but PVE FS does not mount, /etc/pve/.members show only local node without cluster.

Edit : OK found problem for this, config.db files to delete are located in /var/lib/pve-cluster, not /var/lib ;)
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!