Score:0

On linux filesystem becoming RO, how to reliably reboot?

id flag

When the main Linux partition becomes ro for some reason (errors), I am trying to use cron job to check and reboot (so that fsck can run and attempt a fix), but I see that even the cron may not run!

If, I detect that mount on / has become ro, what can I do to reliably reboot a Linux host?

-- Thanks

Romeo Ninov avatar
in flag
As filesystem is in RO mode any method of reboot is safe. Even pull the power cord.
id flag
That is not possible (the device does not have any operator closeby!) need to do it in some automated way
Romeo Ninov avatar
in flag
This site is for corporate systems. So your system is for example in datacenter so you can open service request to datacenter personnel to do it. Or your enterprise system have own service processor so you can login there from the interface power off/on the machine.
id flag
thanks @RomeoNinov but my question is more to understand if I can use `cron` or any other mechanisms to take a remedial action
Romeo Ninov avatar
in flag
You can try command `reboot`. But if it not work I explain you how you should proceed.
A.B avatar
cl flag
A.B
And reboot of course is not the answer to the problem: the cause (most probably hardware failure, or else, much more rare, kernel bug) has to be addressed, usually with money and new hardware.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.