From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns.
Date: Mon, 12 Sep 2022 08:49:51 +0100 [thread overview]
Message-ID: <2198550.iZASKD2KPV@lenovo.localdomain> (raw)
In-Reply-To: <6e5fa1b1-305d-00aa-a02b-9ccc133a7986@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3423 bytes --]
On Monday, 12 September 2022 06:57:58 BST Dale wrote:
> William Kenworthy wrote:
> > If your using nut, it has to be setup - and should be regularly tested
> > to make sure it works.
> >
> > BillK
>
> I think upsmon is part of nut. I keep forgetting that since the service
> is ups something. Thing is, I've never quite figured out how to test it
> without unplugging and running down the batteries. I do have everything
> configured and have ever since I built this puter. I did the same on
> previous puter and UPS. Pretty sure it will work. When power blinks
> etc, it does notice it and logs it in messages file. Also, the upsc
> command outputs the info correctly when run.
>
> I wish I could send a command to the UPS to fake a power failure, wait
> say one minute and then it tell puter to shutdown all on its own. If it
> does it correctly, it should work in the event of a actual power failure
> and not run down my batteries either. I try to keep the batteries
> topped off at all times since we do on occasion have some crazy driver
> not watching where he/she is going and hits a power pole. Doesn't do
> the pole any good and the car seems to not enjoy it either. :/
> Sometimes the driver is no longer caring about it.
>
> I actually wish I had a much larger external battery. Thing is, I'm
> concerned about the charging bit. The charging section in a UPS isn't
> really that powerful since it mostly just keeps the batteries topped
> off. I have 7Amp/hr batteries and I think it takes like 7 or 8 hours to
> charge from almost dead. I'd guess it is at most a 1 to 1.5 amp
> charging circuit.
Many UPSs containing two batteries connected in series always end up with one
battery less charged than the other. This is because although the current
which flows through the circuit is the same, due to Ohm's Law the voltage
drops across each battery as the resistance decreases along the circuit.
Therefore the first battery never gets fully charged. The opposite happens
with a discharge cycle.
Once every three months or every time I experience a noticeably prolonged
power cut, I shutdown the loads, take the UPS off line, disconnect the
batteries and top up each battery's charge with a car battery charger. Then I
replace them but make sure I reverse their positions. I have found this is
the best way to maximise their service life.
I also use the car battery charger to top up single battery UPSs, but I only
do this twice a year. I have found the charge these single batteries need is
comparably shorter.
> If you know of a command to test without running down batteries, I have
> a Cyberpower UPS and I'm certainly interested. It's only a decade or so
> old so has quite a few features. There may be a way to do this but I've
> yet to find it.
>
> Thanks.
>
> Dale
>
> :-) :-)
Check the NUT command set and options, in particular upsmon. You'll probably
want to try issuing a 'forced shutdown' command 'upsmon -c fsd', which won't
wait for the batteries to discharge first, like it does with upssched. Before
you try this, best sync your disks first and remount them read only just in
case.
There may be some UPS specific test function too, this very much depends on
the UPS and driver. You can check what variables a UPS has and how to tweak
them to cause a shutdown by running 'upsrw -l', if any of the exposed UPS
variable are tweakable.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-09-12 7:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-12 1:56 [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns Dale
2022-09-12 3:40 ` tastytea
2022-09-12 3:58 ` Dale
2022-09-12 5:08 ` William Kenworthy
2022-09-12 5:57 ` Dale
2022-09-12 7:49 ` Michael [this message]
2022-09-12 16:54 ` Laurence Perkins
2022-09-13 5:47 ` [gentoo-user] " Thomas Mueller
[not found] ` <20220913055043.4A6B2E08F6@pigeon.gentoo.org>
2022-09-13 8:40 ` Michael
[not found] ` <20220913055043.A31A2E0919@pigeon.gentoo.org>
2022-09-13 17:58 ` Laurence Perkins
2022-09-12 17:27 ` Rich Freeman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2198550.iZASKD2KPV@lenovo.localdomain \
--to=confabulate@kintzios.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox