VMs hang on shutdown during backup job

Attachments

  • cat :proc:2198253:cgroup.txt
    74 bytes · Views: 1
  • cat :proc:2198253:cmdline.txt
    2.1 KB · Views: 1
  • qm status 134 --verbose.txt
    2.1 KB · Views: 1
Again, replacing XYZ with the VM ID of a stuck VM, can you check what the following show?
Code:
systemctl status XYZ.scope
cat /proc/$(cat /var/run/qemu-server/XYZ.pid)/status | grep PPid
and then using the result of the last command
Code:
cat /proc/PPID/cmdline

Are there any systemd settings you modified?
 
Again, replacing XYZ with the VM ID of a stuck VM, can you check what the following show?
Code:
systemctl status XYZ.scope
cat /proc/$(cat /var/run/qemu-server/XYZ.pid)/status | grep PPid
and then using the result of the last command
Code:
cat /proc/PPID/cmdline

Are there any systemd settings you modified?
i see this:

root@pve:~# systemctl status 134.scope
Unit 134.scope could not be found.
root@pve:~# cat /proc/$(cat /var/run/qemu-server/134.pid)/status | grep PPid
PPid: 1
root@pve:~# cat /proc/1/cmdline
/sbin/initroot@pve:~#


No any systemd settings dont modified
 
Last edited:
i see this:

root@pve:~# systemctl status 134.scope
Unit 134.scope could not be found.
root@pve:~# cat /proc/$(cat /var/run/qemu-server/134.pid)/status | grep PPid
PPid: 1
root@pve:~# cat /proc/1/cmdline
/sbin/initroot@pve:~#


No any systemd settings dont modified
@fiona

Do you have any ideas?
 
I do have a patch in the works that would go back to getting the VM ID from the process's commandline rather than the cgroup file, which would be a workaround.

But the real question is why does the cgroup file look like it does in your case. We always run the QEMU command in the qemu.slice/ID.scope systemd scope: https://git.proxmox.com/?p=qemu-ser...88629e1fa1b96f500ab902ccbaffb77;hb=HEAD#l5861
So there has to be a bug either in our code for setting this up or in systemd itself. But I wasn't able to reproduce the issue yet and am still investigating.
 
I do have a patch in the works that would go back to getting the VM ID from the process's commandline rather than the cgroup file, which would be a workaround.

But the real question is why does the cgroup file look like it does in your case. We always run the QEMU command in the qemu.slice/ID.scope systemd scope: https://git.proxmox.com/?p=qemu-ser...88629e1fa1b96f500ab902ccbaffb77;hb=HEAD#l5861
So there has to be a bug either in our code for setting this up or in systemd itself. But I wasn't able to reproduce the issue yet and am still investigating.
@fiona

Can I install proxmox ve7.4?
Maybe it will helps with this bugs?
 
You can't downgrade Proxmox VE installation (or Debian) across major versions. As a workaround, you can use snapshot mode backup. You should install and enable the guest agent for VMs that don't have it yet, so filesystem consistency is not an issue.
 
You can't downgrade Proxmox VE installation (or Debian) across major versions. As a workaround, you can use snapshot mode backup. You should install and enable the guest agent for VMs that don't have it yet, so filesystem consistency is not an issue.
@fiona
But I can make backup my VMs on backup server and after reinstall proxmox version 7.4 and restore my VMs
 
Can you explain me how to use this patch?

maybe I should use special commands, or edit some configs ?
It's intended to be reviewed by other developers and if they deem it acceptable, it will be applied and rolled out in a future version. You could apply and build it yourself, but do so at your own risk.

@fiona

I use Stop mode backup cuz this is full backup and it’s safely for me
snapshot mode backup is also a full backup and as long as the guest agent is installed and enabled, the filesystem status will be consistent too. Of course, there can be special applications that do require even more than that, e.g. databases which can be handled with a hook script.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!