Gracefully "Ask" XO to Reboot After Tasks Are Done
-
Howdy - So I schedule automated updates and reboots for my homelab early on Saturday mornings. I've seen some things that this could be dangerous as there are possibilities that XO might be running tasks that would die if the machine reboots under it.
Is there a way to "ask" or inform XO that a reboot is required and to stop processing tasks until the system boots back up, or is it sufficient to just NOT schedule anything that could bump into that update/reboot timeframe?
-
Hi,
Can you be more specific on how you schedule automated updates and reboots? (and what do you reboot exactly)
-
@olivierlambert - So I use Rundeck to schedule the commands apt-update, apt full-upgrade, apt autoremove, and then a vm reboot after that's all successfully completed. I have about a dozen VMs, and that's the process for all of them.
I also don't have any tasks scheduled within XO (with the exception of XO pool metadata & XO Config). It runs everyday at 9am, so that wouldn't conflict.
The Saturday update/reboot cycles start at around 3am, and take about an hour to complete through the 12 VMs.
-
Anything you do inside your "regular" VMs won't have any impact on XO. A reboot could cause maybe some wait for the VM to be actually snap before doing a backup, but no biggie.
Are you talking about rebooting XO VM itself based on a schedule?
-
@olivierlambert said in Gracefully "Ask" XO to Reboot After Tasks Are Done:
Are you talking about rebooting XO VM itself based on a schedule?
Yes. All the other VMs are fine, but this is another VM just like the others that needs to be updated, patched, etc. So I want to add that to the automated updates, but I don't want to screw up XO in the process.
-
If you have running backups, yes, that will interrupt them. Otherwise, there's no risk to restart the VM with XO server running into it.
-
@olivierlambert - Awesome! Thanks.
And Oliver, as a Founder and CEO, man are you connected to your product. Don't ever change!!
-
That's how I can make the choices to improve it into the right direction