<div dir="ltr"><div>Hi All!</div><div><br></div><div>Unless there is a specific known thing that is a known risk in a power loss event, I just let 'em die when the UPS gives up the ghost. When the UPS comes back online, they boot back up, and life goes back to normal. Messing about with auto-shutdown, and then restarting, generally means more brittle config, higher likelyhood of being down until you are physically there, and all for what -- you would have been down anyway, and if there was no reasonable chance of damage, then why add that complexity?</div><div><br></div><div>I particularly dislike the situation where the server shuts down, the load on the UPS drops, and then the UPS never *actually* loses power, since it's got no real draw on it anymore. Now the strategy needs to accommodate reaching back into the downed server and starting it back up again, or you have to go there. Yay.</div><div><br></div><div>Small UPSs on small systems are to avoid inconvenience of unexpected reboots from blips, and to ensure clean power (a decent line-interactive UPS, presumably). I've had enough issues with dirty power glitches over the years that the power cleaning and filtering is more important to me than power loss protection (though I certainly like having that!).</div><div><br></div><div>On the other hand, putting effort into ensuring you can put a bullet into your system anywhere, any time, and still have it recover nicely on restart, is the sort of thing that pays long term dividends. Unless you're doing retro-computing stuff, why run databases, filesystems, etc, that aren't durable in the face of a sudden restart? What is making you run systems that care what order they come up in?</div><div><br></div><div>There are certainly limits to this strategy, but it has served me well with small things for a long time.</div><div><br></div><div> Hope that helps,</div><div> -Cedric</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:monospace,monospace">| CCj/ClearLine - Hosting and TCP/IP Network Services since 1997</span><br style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">| 118 Louisa Street, Kitchener, Ontario, N2H 5M3, 519-489-0478x102</span><br style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">\________________________________________________________ </span><br style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"> Cedric Puddy, IS Director cedric@ccj.host</span><br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 24 Nov 2024 at 17:26, Khalid Baheyeldin <<a href="mailto:kb@2bits.com">kb@2bits.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small" class="gmail_default">I finally have a working configuration for NUT.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">I could not get upssched.conf working with custom timers</div><div style="font-size:small" class="gmail_default">(e.g. start a timer on ONBATT, then cancel it when ONLINE).</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">But I did get the other features working like this (ups.conf)<br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"> ignorelb<br> override.battery.runtime.low=900<br> override.battery.charge.low=15<br> override.battery.runtime.restart=60</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">That will shutdown the server if there is only 15% remaining</div><div style="font-size:small" class="gmail_default">charge in the battery, or 15 minutes.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">The one thing that is not to my liking is this: when these <br></div><div style="font-size:small" class="gmail_default">conditions are met, the server will shutdown (as I want it <br></div><div style="font-size:small" class="gmail_default">to), but it also shuts down the UPS.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Is there a way to shutdown only the server, and leave the</div><div style="font-size:small" class="gmail_default">UPS running until the battery is drained? That way internet</div><div style="font-size:small" class="gmail_default">access will continue with the router and modem powered.<br></div></div>
_______________________________________________<br>
kwlug-disc mailing list<br>
To unsubscribe, send an email to <a href="mailto:kwlug-disc-leave@kwlug.org" target="_blank">kwlug-disc-leave@kwlug.org</a><br>
with the subject "unsubscribe", or email<br>
<a href="mailto:kwlug-disc-owner@kwlug.org" target="_blank">kwlug-disc-owner@kwlug.org</a> to contact a human being.<br>
</blockquote></div>