public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns.
@ 2022-09-12  1:56 Dale
  2022-09-12  3:40 ` tastytea
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Dale @ 2022-09-12  1:56 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-09-13 17:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox