What's new

Possibilities to trigger storage ejection remotely? (a more graceful hard shutdown/reboot)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Aziron5

Regular Contributor
Hi

An industrial place is experiencing frequent losses of power but more than half of them is voluntary because of repairs, manufacturing, testing and they just hit the main breaker ... the employees know how to shutdown the PCs, but they don't have a quick way to shutdown the networking stuff.

Thankfully, a Mikrotik LTE antenna which does seem to be more intolerant of ungraceful shutdowns because it screams about it in the logs, unlike routers, and does indeed support a graceful programmatically triggered shutdown which I was able to quickly work into a script that can be triggered by SMS from a phone, which solves the problem for one of the networking devices completely. The Asus Router remains.

In most optimal possible situation, I'd still like to have a more graceful shutdown, just to be extra sure, I am, and neither there are any IT specialists on premises, I wouldn't be able to resolve anything remotely if things break with the router in a major way.
Normally this wouldn't be an issue, as shutting down Routers by just cutting power doesn't seem to be that of an issue, potentially creating permanent errors. Though in general I still disagree with the whole design having no concept of a graceful shutdown.

However this Asus router is running external storage, entware, scripts, diversion etc., and that is a problem, I've had disk check report issues in past, they happened to be resolved. Cutting power to a mounted filesystem is ofcourse not a good thing in linux in general and I've had enough experience with multiple distros.

The creator of AsusWrt-Merlin explained in the past that ejecting storage would then trigger a graceful shutdown of diversion, entware, scripts an a proper unmount of the filesystem and the external storage device, flushing caches, the usual stuff.

So the logical next step is to find a way to more conveniently remotely trigger a storage ejection for Asus Merlin FW ... if I could somehow combine the SMS triggered script functionality of the LTE Antenna providing WAN for this router.

Thanks a lot for ideas.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top