mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 09:23:23 +00:00
Check quorum in startall
This commit is contained in:
parent
32f9da6804
commit
f669a2b1fb
4
qm
4
qm
@ -236,6 +236,8 @@ __PACKAGE__->register_method ({
|
|||||||
my $vzlist = PVE::QemuServer::vzlist();
|
my $vzlist = PVE::QemuServer::vzlist();
|
||||||
my $storecfg = PVE::Storage::config();
|
my $storecfg = PVE::Storage::config();
|
||||||
|
|
||||||
|
PVE::Cluster::check_cfs_quorum();
|
||||||
|
|
||||||
my $count = 0;
|
my $count = 0;
|
||||||
foreach my $vmid (keys %$vzlist) {
|
foreach my $vmid (keys %$vzlist) {
|
||||||
next if $vzlist->{$vmid}->{pid}; # already running
|
next if $vzlist->{$vmid}->{pid}; # already running
|
||||||
@ -243,6 +245,8 @@ __PACKAGE__->register_method ({
|
|||||||
sleep(2) if $count != 0; # reduce load
|
sleep(2) if $count != 0; # reduce load
|
||||||
$count++;
|
$count++;
|
||||||
|
|
||||||
|
PVE::Cluster::check_cfs_quorum(); # abort when we loose quorum
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $conf = PVE::QemuServer::load_config($vmid);
|
my $conf = PVE::QemuServer::load_config($vmid);
|
||||||
if ($conf->{onboot}) {
|
if ($conf->{onboot}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user