Hello,
I've Googled a bit and haven't found a very clear answer ... I have a server that needs to run without human intervention. It is connected to a UPS with a USB link so I can use monitoring programs to tell when power has been lost and when battery backup is about to run out. My server BIOS is setup to automatically boot the computer after power loss once power is restored.
The issue is I don't want to halt the system when batteries are "almost" depleted because if power comes back on after halting, but before power to the server is lost (i.e. before batteries are totally depleted) then the system will just sit in halt state forever unless there is manual intervention.
But I also want to sync disks and generally prepare for anticipated power loss.
So the quetion is: is there a good way to "harden" a running server for expected power loss without halting it? My system is really only running one user level program that I can shutdown with scripts, so that is solved. But I am concerned about root filesystem corruption. Is running "sync" when battery is at say, 1%, enough?
I hope my question is clear.
One "hardware" alternative is to use wake on LAN ... but AFAIK this will require opening ports that I would much prefer to keep closed.
Thanks!
I've Googled a bit and haven't found a very clear answer ... I have a server that needs to run without human intervention. It is connected to a UPS with a USB link so I can use monitoring programs to tell when power has been lost and when battery backup is about to run out. My server BIOS is setup to automatically boot the computer after power loss once power is restored.
The issue is I don't want to halt the system when batteries are "almost" depleted because if power comes back on after halting, but before power to the server is lost (i.e. before batteries are totally depleted) then the system will just sit in halt state forever unless there is manual intervention.
But I also want to sync disks and generally prepare for anticipated power loss.
So the quetion is: is there a good way to "harden" a running server for expected power loss without halting it? My system is really only running one user level program that I can shutdown with scripts, so that is solved. But I am concerned about root filesystem corruption. Is running "sync" when battery is at say, 1%, enough?
I hope my question is clear.
One "hardware" alternative is to use wake on LAN ... but AFAIK this will require opening ports that I would much prefer to keep closed.
Thanks!