Dear all,
im running pve 7.4 in a 6 node ceph cluster and active ha manager.
We are currently running nightly backups.
My goal is to stop specific services on a windows guest vm during the
As we have the vm in a HA cluster, using the backup mode stop is not an working option.
Now to do so,i read about the
The issue that im having right now is, that there is no hook on the
The only events suitable would be
As the backup is pretty large, it takes long time to copy to our network storage and i do not want to wait until this is completed to resume the service on the guest.
the only thing i can think of right now is to delay the resume of the service for a few seconds and call both commands on the
But that seems a bit off to me.
here are some detailed information:
pveversion --v:
is there any other way to achive this? Did i get the hooks wrong and need to use
The only information i found about the process timing was this:
https://forum.proxmox.com/threads/e...fsfreeze-thaw-failed-got-timeout.68082/page-2
but maybe the log messages are not in the correct order?
im running pve 7.4 in a 6 node ceph cluster and active ha manager.
We are currently running nightly backups.
My goal is to stop specific services on a windows guest vm during the
fs-freeze
command which is called during snapshot backup to prevent database corruption.As we have the vm in a HA cluster, using the backup mode stop is not an working option.
Now to do so,i read about the
--script
argument and implemented a script for my vm, which should use qm exec
to stop and start the service on the guest.The issue that im having right now is, that there is no hook on the
fs-freeze
command and also no hook after fs-thaw
is called.The only events suitable would be
backup-start
to stop the service and backup-end
to resume.As the backup is pretty large, it takes long time to copy to our network storage and i do not want to wait until this is completed to resume the service on the guest.
the only thing i can think of right now is to delay the resume of the service for a few seconds and call both commands on the
backup-start
hook.But that seems a bit off to me.
here are some detailed information:
pveversion --v:
Code:
proxmox-ve: 7.4-1 (running kernel: 5.13.19-3-pve)
pve-manager: 7.4-16 (running version: 7.4-16/0f39f621)
pve-kernel-5.15: 7.4-4
pve-kernel-5.13: 7.1-9
pve-kernel-5.15.108-1-pve: 5.15.108-2
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-3-pve: 5.13.19-7
ceph: 16.2.13-pve1
ceph-fuse: 16.2.13-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx4
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4.1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.4-2
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.7
libpve-storage-perl: 7.4-3
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.3-1
proxmox-backup-file-restore: 2.4.3-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.7.3
pve-cluster: 7.3-3
pve-container: 4.4-6
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-4~bpo11+1
pve-firewall: 4.3-5
pve-firmware: 3.6-5
pve-ha-manager: 3.6.1
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-2
qemu-server: 7.4-4
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
is there any other way to achive this? Did i get the hooks wrong and need to use
pre-stop
and post-restart
?The only information i found about the process timing was this:
https://forum.proxmox.com/threads/e...fsfreeze-thaw-failed-got-timeout.68082/page-2
but maybe the log messages are not in the correct order?
Last edited: