I’m running TrueNAS Scale Dragonfish-24.04.2 on KVM/Qemu. I allocate 64G of RAM and 16 CPU Cores to the system. After I added a brand new WD-HA340 to a pool to make a mirror, my system started to shutdown randomly, every around 30 min. The shutdowns are graceful, seemed to correctly triggered ix-shutdown.service. But I don’t know what on earth has cause the shutdown process. I found some logs in syslog, hope can be some help.
/var/log/syslog:Oct 24 22:03:22 truenas kernel: raid6: using avx2x2 recovery algorithm
/var/log/syslog:Oct 24 22:03:22 truenas kernel: input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input5
/var/log/syslog:Oct 24 22:03:22 truenas kernel: ACPI: button: Power Button [PWRF]
/var/log/syslog:Oct 24 22:03:44 truenas systemd[1]: mdadm-shutdown.service - Prepare mdadm shutdown initramfs was skipped because of an unmet condition check (ConditionFileIsExecutable=/usr/bin/dracut).
/var/log/syslog:Oct 24 22:03:44 truenas systemd[1]: Finished systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.
/var/log/syslog:Oct 24 22:03:44 truenas systemd[1]: Finished ix-shutdown.service - Exec TrueNAS shutdown tasks.
I’ve already set HandlePowerKey=ignore in /etc/systemd/logind.conf, but it didn’t work. I don’t think any of my hardware(CPU, RAM, cooling, HDD) has problem, because my host and other VMs running on KVM/Qemu are totally fine.