mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-04-28 22:14:29 +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 $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}) {
|
||||
|
Loading…
Reference in New Issue
Block a user