Score:0

Systemd cgroups disrupted after unmounting

br flag

We have many virtualization hosts with VM disks residing typically on LVM. When VM is migrated across hosts it maybe required to do some work like rebuilding initramfs. We got used to mount VM disk to the host /mnt, mount proc-dev-sys inside mnt and chrooting into mnt.

kpartx -a /dev/kubrick/vm-pooi-arr
mount /dev/mapper/kubrick-vm--pooi--arr2 /mnt/
cd /mnt
mount -t proc /proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/

chroot /mnt /bin/bash

This worked fine till newer systems. Fedora Server 36/37 become unusable after umounting /mnt/sys /mnt/dev/ and /mnt/proc. Typically /mnt/dev is busy with [kdevtmpfs] process, but lazy umount do the work, but then all the system become totally unusable. Daemons report:

Jan 24 17:50:25 kubrick virtqemud[1916]: Failed to open file '/sys/fs/cgroup/machine.slice/machine-qemu\x2d33\x2dexchange.scope/libvirt/cpu.stat': No such file or directory

Nothing can be restarted:

Jan 24 17:52:08 kubrick systemd[1]: virtqemud.service: Failed to create cgroup /system.slice/virtqemud.service: No such file or directory

/sys/fs/cgroup/ is empty, but /sys is still intact. Nobody can log in via ssh, even reboot will not be finished ever. I am not sure its an issue of Fedora, I think I saw it on latest Oracle Linux too.

What may cause cgroups disruption? Can it be avoided? Can it be fixed if once happened?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.