Shutdown watchdog timeout increase

Status
Not open for further replies.

petr

Contributor
Joined
Jun 13, 2013
Messages
142
Hi,

I've included a moderately time-consuming tasks as part of my jails shutdown to save state of my VMs properly. As it takes a few seconds each to complete, I am now having trouble during the shutdown process - namely the shutdown watchdog timer.

After 90s, the watchdog kicks me out of the shutdown process, even if it was running OK until then.

My question is - how can I change the shutdown watchdog timer?
 

petr

Contributor
Joined
Jun 13, 2013
Messages
142
Sorry to bump - but is there really no way of changing the shutdown watchdog? It takes approx. 45s for my VM to save state, and I would like the shutdown to be reliable.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I don't have the answer for you but I'm sure someone in #freenas in freenode in the evening USA time would have the answer. Developers don't hang out in the forums, but they are in IRC. I'm in there regularly too along with the CTO of iXsystems and such.
 

C.MA

Cadet
Joined
Mar 15, 2015
Messages
1
There are two system parameters that control the max. system shutdown time:

rcshutdown_timeout in rc.conf -> default value as seconds: 90
kern.init_shutdown_timeout
in sysctl -> default value as seconds: 120

Setting the value of rcshutdown_timeout to more than 120 seconds will have no effect until you increase the value of kern.init_shutdown_timeout too.
(see -> https://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5)


In Freenas 9.3 you can set both parameters with the web GUI under System-> Tuneables.

In my case setting both parameters to 200 secs allows virtualbox to shutdown the virtual machines properly.
 
Status
Not open for further replies.
Top