One more data point… A user-initiated sync usually runs/exits immediately but sometimes takes 30 seconds to exit. Happens at random. I suspect it’s related to my slow shutdowns if systemd is having to SIGKILL it…
The error messages you had, I get those as well and I have seen others who get those. I would not worry about those unless you find out you are having corruption issues. I have not noticed any at all.
As for the slower shutdown, you have not provided any information for someone to really figure it out. No system specs and no mention of how your system is configured, Version of TrueNAS, VM’s, Dockers, etc. Did this ever run faster and if so, under what different conditions?
Because I have little faith that it’s actionable information for anyone. What I’m asking is how to plug the “logging gap” to determine what’s happening in that final 30 seconds before reboot. This is generic linux troubleshooting that has nothing to do with specs.
I should hope that any VMs or Dockers would be long-since shut down so late in the shutdown process. Regardless, there are neither.
Edit: I don’t recall when this issue began. I plan to back out every customization and tunable and untwist every knob I’ve twisted. Fortunately I have good notes so it won’t take long to undo…