From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-199635-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 49556158012
	for <garchives@archives.gentoo.org>; Mon, 12 Sep 2022 05:08:31 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 602C6E08CD;
	Mon, 12 Sep 2022 05:08:25 +0000 (UTC)
Received: from icp-osb-irony-out3.external.iinet.net.au (icp-osb-irony-out3.external.iinet.net.au [203.59.1.153])
	by pigeon.gentoo.org (Postfix) with ESMTP id 7414AE089C
	for <gentoo-user@lists.gentoo.org>; Mon, 12 Sep 2022 05:08:23 +0000 (UTC)
IronPort-SDR: MG7pjUQxEtKd3OTN5QTltZTX8WWJDPDzJJkbFcxkJo3Amu79jMjZLeN4S/mq0FesKsYNv17V9e
 8Tfk7HhYZeKkASx5ZE47x1ve4+mlzvxs9VsbXgVfd88Jecd1gBtvNqn9F8AhCR8Sfz47SN5ZAQ
 kttUDsDUaq4LVo5KnqAR9knLniwfE4EPl7k1m0Hwgqs1M4GHFaKww3h8mK+W9XNWgeMyMrumoz
 jMXg43JPqm4P33aYZqtdv+YKUHPuOyZUuE07NjdNXwmP+HAsimCelL8VY+xzBrdumIpcQhw36t
 DPI=
X-SMTP-MATCH: 0
X-IPAS-Result: =?us-ascii?q?A2BqAACRvR5j/ylZ69xaHAEBAQEBAQcBARIBAQQEAQFAC?=
 =?us-ascii?q?YE0BQEBCwGBe4dPkGQuA4s4kVaBfAsBAQEBAQEBAQEJQgQBAYUFAoRoJjYHD?=
 =?us-ascii?q?gECBAEBAQEDAgMBAQcBAQEFAQEBAQEBBgMBgRyFL0aGQwEBAQ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UlItPieocYsXhkwTbcBPcgKXzBa/+QvZkCh2p21pEIQa+2i
 8kxMFKDaDzKYhlLOX8WCZQzgKGui2W5eiAwRFe9+fJsuTmIklEuuFTrGNvyaoa0G8JxpRi3p
 WGew3X6UzRLbNPKnFJp9Vrp3IcjhxjTV48UCLq/s+NxjUe7wm0IFAZQWla9vf6+zEmkVLpix
 1c8oHB26PJpqQn7H5yhBlu0sXjCvx8aVsYWFeAmrgiQokbJ3zuk6qE/ZmYpQLQbWAUeHFTGC
 nfhcwvVOAFS
IronPort-HdrOrdr: A9a23:mLzzSa6pgNmD0urrlgPXwMPXdLJyesId70hD6qm+c203TiXqrb
 HKoB1773TJYVkqNU3I9ervBEDEewK5yXcX2+Us1NWZNjUO0VHARL2Kr7GSoQEIcBeeygcy78
 ddmuRFZ+HNMQ==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.93,308,1654531200"; 
   d="scan'208";a="403293657"
Received: from 220-235-89-41.dyn.iinet.net.au (HELO mail.infra.localdomain) ([220.235.89.41])
  by icp-osb-irony-out3.iinet.net.au with ESMTP; 12 Sep 2022 13:08:20 +0800
Received: from localhost (mail.infra.localdomain [127.0.0.1])
	by mail.infra.localdomain (Postfix) with ESMTP id 495BBCB2
	for <gentoo-user@lists.gentoo.org>; Mon, 12 Sep 2022 13:08:20 +0800 (AWST)
X-Virus-Scanned: amavisd-new at localdomain
Received: from mail.infra.localdomain ([127.0.0.1])
	by localhost (mail.infra.localdomain [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id OV0VCq7k4PfJ for <gentoo-user@lists.gentoo.org>;
	Mon, 12 Sep 2022 13:08:16 +0800 (AWST)
Message-ID: <550b03e7-d11e-2d01-f058-86069a45555b@iinet.net.au>
Date: Mon, 12 Sep 2022 13:08:15 +0800
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.12.0
Subject: Re: [gentoo-user] Encrypted hard drives on LVM and urgent power
 shutdowns.
Content-Language: en-AU
To: gentoo-user@lists.gentoo.org
References: <1b6f36dd-f378-2d04-3df1-0541b9d944e9@gmail.com>
From: William Kenworthy <billk@iinet.net.au>
In-Reply-To: <1b6f36dd-f378-2d04-3df1-0541b9d944e9@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Archives-Salt: 37d68382-cedc-4191-96c6-fc795fc8b644
X-Archives-Hash: 2dc07660935602538fe5024fda32af1f

If your using nut, it has to be setup - and should be regularly tested 
to make sure it works.

BillK

'

On 12/9/22 09:56, Dale wrote:
> Howdy,
>
> Last night we had some bad weather where I live and we ended up with
> some power problems.  Ironically they went out a few hours after the
> storm was gone.  Anyway.  I had all sorts of encrypted drives open.  My
> usual drives inside my puter plus the large 14TB external backup drive
> that is still copying files over.  Glad my UPS held up while I closed
> all those drives and did a proper shutdown.  Doing all that tho, it made
> me think about if I wasn't here to do all that.  Being Linux, I'd
> suspect that upsmon would tell the puter to do a proper shutdown which
> includes unmounting the file system, closing the encrypted drives, like
> I do with cryptsetup close <name> etc and then shutting down.  However,
> one has to ask, is it set up to do so by default?  I manage the
> encrypted drives manually.  I don't use the crypt services for that like
> people do when all of the system drive(s) is encrypted or when just
> /home is encrypted.  My encrypted stuff is mounted within /home or for
> the external backups, in /mnt.  Thing is, some aren't open unless I'm
> using them or are external.  Since I do it manually, is there a tool
> that sees they need unmounting and closing and does it or do I need to
> do something to make sure it is done before a shutdown?
>
> I suspect this would happen on its own but I'd like to make sure.  I'd
> hate to mess up the file system badly on any of my drives or in a worst
> case scenario, brick a hard drive with some 1 in a million chance problem.
>
> I thought about having a drive connected, open and mounted that I don't
> really need and just do a shutdown, see what happens.  Then again, why
> not ask and see if anyone else has had this happen and if things turned
> out OK or if there was problems.  I'm lucky, most of the time I'm either
> home or very close by.  Still, it can happen when I'm not here.  I
> already wonder if upsmon will kick in correctly and do a proper
> shutdown.  After all, it has never had to before.  I'm running on faith
> that it will.  I hope I'm right.
>
> Thoughts?  Default will take care of things?  I need to take steps to be
> sure in case I'm not here?  Personal experience?  A good theory?  ;-)
>
> Thanks.
>
> Dale
>
> :-)  :-)
>