Proxmox VE 4.0 released!

Discussion in 'Proxmox VE: Installation and configuration' started by martin, Oct 6, 2015.

  1. spirit

    spirit Well-Known Member

    Joined:
    Apr 2, 2010
    Messages:
    3,302
    Likes Received:
    131
    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
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Florent

    Florent Member

    Joined:
    Apr 3, 2012
    Messages:
    91
    Likes Received:
    2
    Ok that's just for corosync key, understood.

    I will try this.
     
  3. spirit

    spirit Well-Known Member

    Joined:
    Apr 2, 2010
    Messages:
    3,302
    Likes Received:
    131
    Feel free to comment and improve the howto .

    (I'll put it in the wiki soon)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Florent

    Florent Member

    Joined:
    Apr 3, 2012
    Messages:
    91
    Likes Received:
    2
    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 ;)
     
    #104 Florent, Dec 1, 2015
    Last edited: Dec 1, 2015
  5. spirit

    spirit Well-Known Member

    Joined:
    Apr 2, 2010
    Messages:
    3,302
    Likes Received:
    131
    Ok, thanks, I have fixed the howto
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. maykel535

    maykel535 Member

    Joined:
    Mar 26, 2012
    Messages:
    51
    Likes Received:
    0
    Congratulations, great work!!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice