Following question. I have several containers with heavy usb disk io running. I did an ax3 firmware update with reboot and after starting back up i now have corrupted files on my usb stick and the container services therefore don’t work anymore. How can this be?
My assumption was when i do a reboot RouterOS stops all the running containers beforehand, then safely ejects the USB drive and only then performs the Reboot.
It doesn’t seem like this is the case.
It seems that ROS is just kills container processes without waiting them (or is very short wait timeout) to be properly terminated on ROS shutdown, when comparing ROS shutdown/reboot time with all running containers stop time, containers stop takes more time which concludes that container processes are ended prematurely on shutdown.
Because of this to avoid issues I’m using this script for any reboot (same can be reused for shutdown by replacing in script at end /system/reboot with /system/shutdown):
Also when running containers avoid performing Download&Install in System->Packages->Check For Updares which also peforms reboot, just use Download and execute script above when packages are downloaded.