Sander Jansen
Explorer
- Joined
- Dec 26, 2015
- Messages
- 87
Hey,
I recently bought a UPS and I have a little problem with FreeNAS shutting down.
It takes so long that the UPS dies before FreeNAS has shutdown. Even in general, i had to extend the watchdog timeouts for it to even shutdown properly.
I'm running the latest FreeNAS 11 and i have 2 plugins (couchpotato and sabnzb) and one VM running.
My shutdown script that I use, first shuts down the VM over SSH, then waits 10 seconds (the VM takes about 6 to shutdown)
and then FreeNAS itself shuts down. For FreeNAS, shutting down local daemons takes forever and also exceeds the 90 seconds watchdog timeout (i upped the watchdog to 120).
The system is running from a SSD on USB 2 but still... I've seen better shutdown times on usb 2.
Is there anything i can do to get FreeNAS to shutdown faster? Maybe its because of the 2 plugins? Is there a way that i can change my shutdown script so it first starts shutting down the plugins and the VM and then after shuts down FreeNAS? for now I'm only shutting down the VM manually (i don't trust FreeNAS to actually shut it down properly)
My script:
My target is to have FreeNAS shutdown within 90 seconds instead of the 130~ it takes now.
I recently bought a UPS and I have a little problem with FreeNAS shutting down.
It takes so long that the UPS dies before FreeNAS has shutdown. Even in general, i had to extend the watchdog timeouts for it to even shutdown properly.
I'm running the latest FreeNAS 11 and i have 2 plugins (couchpotato and sabnzb) and one VM running.
My shutdown script that I use, first shuts down the VM over SSH, then waits 10 seconds (the VM takes about 6 to shutdown)
and then FreeNAS itself shuts down. For FreeNAS, shutting down local daemons takes forever and also exceeds the 90 seconds watchdog timeout (i upped the watchdog to 120).
The system is running from a SSD on USB 2 but still... I've seen better shutdown times on usb 2.
Is there anything i can do to get FreeNAS to shutdown faster? Maybe its because of the 2 plugins? Is there a way that i can change my shutdown script so it first starts shutting down the plugins and the VM and then after shuts down FreeNAS? for now I'm only shutting down the VM manually (i don't trust FreeNAS to actually shut it down properly)
My script:
Code:
ssh sander@VM-IP sudo shutdown now sleep 10 poweroff
My target is to have FreeNAS shutdown within 90 seconds instead of the 130~ it takes now.
Last edited by a moderator: