Kill LXC containers dont release cgroup in /sys/fs

pacopad

Member
Sep 26, 2022
14
2
8
Hi everybody,

Here is a practical case that happend yesterday and 2 days ago

I got ubuntu LXC that runs on PVE8.4.1. PBS Backup stop on this ct during night and the ct state is still locked for backup. CT is unavailable by ssh , and i cant stop it inside it by lxc-attach. I have to kill the pid on the pve. Aftrr that i cant restart the ct on the same PVE because some cgroup ressources are busy , for example

lxc-start 16010 20250829061734.274 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 16010 lxc pre-start produced output: failed to remove directory '/sys/fs/cgroup/cpuacct/lxc/16010/ns': Device or resource busy

Is there a way to "clean" the PVE without rebooting it ?


Best regards
Pacopad