7 ms·
(I'm this person.) It so happens that the solar inverter I'm using right now doesn't provide a data connection that I could use to shut down the computers clean
by amenonsen 7y ago
(I'm this person.) It so happens that the solar inverter I'm using right now doesn't provide a data connection that I could use to shut down the computers cleanly.
But I should also clarify that my long-running fsck isn't always the result of an unclean shutdown. There's something about my combination of iSCSI+crypttab+NFS that causes fsck to be run too often—even if I shut down the machine cleanly while the NAS is running, it usually decides to fsck when it comes back up.
Something to investigate next winter, perhaps.
- monitron 7y agoHi :) Thanks for the awesome write-up. I understand...I have a few devices in my house that resist all attempts at integration. I have considered doing something totally ridiculous like setting up a Raspberry Pi with a camera and machine vision software to watch the LED displays on these devices to glean status information. Silly, but... Interesting about fsck running for unclear reasons. "What is it up to now?" is a valid question at multiple levels!
- amenonsen 7y ago> Thanks for the awesome write-up. Glad you enjoyed it. :-) > I have considered doing something totally ridiculous like setting up a Raspberry Pi with a camera and machine vision software to watch the LED displays on these devices to glean status information. Silly, but... Ha! I actually have a PoE camera pointed at the display of my UPS. Here's what it looks like right now: https://toroid.org/misc/ups-display.jpg https://toroid.org/misc/ups-display.jpg Notice that horizontal blank row of dead pixels halfway down the right side of the display? The one that makes "54.6" look like "51.6"? That gap defeated my naïve five-minute attempt to use image recognition to extract the battery voltage.
- all2 7y agoI would be tempted to tie the LED lines to digital ins on an Arduino. I'm betting some finagling with the display data lines could get you the information from the display, as well. Depending on how the cabling to that display works, you might be able to do all of that without having to disable the display.
- mrguyorama 7y agoYou could run a cheap/small UPS off your main stores maybe? That could possibly provide the signal and management
- dfc 7y agoWhats up with the "[f]" in your grep command? grep '[f]sck'
- geraldcombs 7y agoIt keeps the grep command itself from showing up in the output.
- linsomniac 7y agoOoh, that's very cute! I usually throw a "| grep -v grep" on the end, but I'm gonna try to remember this.
- JdeBP 7y agoBetter to remember pgrep, instead of an incremental change that you'll find still has problem cases (such as matching usernames). * http://mywiki.wooledge.org/ProcessManagement#But_I.27m_on_some_old_legacy_Unix_system_that_doesn.27t_have_pgrep.21__What_do_I_do.3F http://mywiki.wooledge.org/ProcessManagement#But_I.27m_on_so... M. Wooledge's description of ps options is not quite accurate, but that is incidental to xyr main point.