mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 16:36:30 +00:00
VZDump: switch ha managed check from enabled to started
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9a60a19b4a
commit
83ec8f816a
@ -770,9 +770,9 @@ sub exec_backup_task {
|
||||
die "unable to find VM '$vmid'\n" if !$plugin;
|
||||
|
||||
# for now we deny backups of a running ha managed service in *stop* mode
|
||||
# as it interferes with the HA stack (enabled services should not stop).
|
||||
# as it interferes with the HA stack (started services should not stop).
|
||||
if ($opts->{mode} eq 'stop' &&
|
||||
PVE::HA::Config::vm_is_ha_managed($vmid, 'enabled'))
|
||||
PVE::HA::Config::vm_is_ha_managed($vmid, 'started'))
|
||||
{
|
||||
die "Cannot execute a backup with stop mode on a HA managed and".
|
||||
" enabled Service. Use snapshot mode or disable the Service.\n";
|
||||
|
Loading…
Reference in New Issue
Block a user