Check quorum in startall

This commit is contained in:
Dietmar Maurer 2011-09-09 11:32:53 +02:00
parent 32f9da6804
commit f669a2b1fb

4
qm
View File

@ -236,6 +236,8 @@ __PACKAGE__->register_method ({
my $vzlist = PVE::QemuServer::vzlist();
my $storecfg = PVE::Storage::config();
PVE::Cluster::check_cfs_quorum();
my $count = 0;
foreach my $vmid (keys %$vzlist) {
next if $vzlist->{$vmid}->{pid}; # already running
@ -243,6 +245,8 @@ __PACKAGE__->register_method ({
sleep(2) if $count != 0; # reduce load
$count++;
PVE::Cluster::check_cfs_quorum(); # abort when we loose quorum
eval {
my $conf = PVE::QemuServer::load_config($vmid);
if ($conf->{onboot}) {