public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Something not right with LVM, I think.
@ 2023-10-29  8:16 Dale
  2023-10-29 10:40 ` Neil Bothwick
  0 siblings, 1 reply; 10+ messages in thread
From: Dale @ 2023-10-29  8:16 UTC (permalink / raw
  To: gentoo-user

Howdy,

I have several external hard drives. I have one that is, weird.  Others
work fine.  When I first power up the drive, cryptsetup can't open it
because it doesn't exist yet.  This is the relevant part of lsblk -f
when it doesn't work:


NAME               FSTYPE      FSVER    LABEL      
UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sdr                                                                                                      

└─sdr1             LVM2_member LVM2 001            
SLbMcr-d3M9-XONQ-jPtM-Meyd-H6tY-hjSc5S


Then I restart lvm, which I don't like doing when things are running.  :/ 


NAME               FSTYPE      FSVER    LABEL      
UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sdr                                                                                                      

└─sdr1             LVM2_member LVM2 001            
SLbMcr-d3M9-XONQ-jPtM-Meyd-H6tY-hjSc5S               
  └─10tb-10tb--lv  crypto_LUKS 2                   
eab6268e-721b-4c72-aef3-0ecc319f18d4


As you can see, when I restart the LVM service, it adds that last little
bit which is what cryptsetup needs to open.  My question is this, why do
I need to restart lvm for that?  Also, everything for that drive shows
up just fine in pvs, vgs and lvs.  They all recognize the drive as being
connected and ready.  I might add, it also shows up under /dev/mapper as
well, before I restart LVM that is. 

This seems to have started when I added some encryption options to the
new kernel.  Thing is, I also started using this external case about the
same time.  Also, it seems to work fine on the 770T.  I tested it on
that too.  Here is some additional info:



root@fireball / # emerge -pv sys-fs/lvm2 sys-fs/cryptsetup

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 63.13 s (backtrack: 0/50).

[ebuild   R    ] sys-fs/lvm2-2.03.21-r1::gentoo  USE="lvm readline udev
-sanlock (-selinux) -static -static-libs -systemd -thin -valgrind" 0 KiB
[ebuild   R    ] sys-fs/cryptsetup-2.6.1:0/12::gentoo  USE="argon2 nls
openssl udev -fips -gcrypt -kernel -nettle -pwquality -ssh -static
-static-libs -test -urandom" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB
root@fireball / #



Anyone have a idea on why I have to restart LVM to get this one drive to
work?  Once I restart LVM, everything works fine.  Is it LVM or
something else?  It seems LVM is working, it is seeing the drives. 
However, restarting LVM fixes it.  Is it something to do with cryptsetup
and restarting LVM fixes it?  Open to ideas.  Need more info, let me
know, maybe how to get it as well. 

Thanks.

Dale

:-)  :-) 


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

end of thread, other threads:[~2023-12-05 20:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-29  8:16 [gentoo-user] Something not right with LVM, I think Dale
2023-10-29 10:40 ` Neil Bothwick
2023-10-29 12:37   ` Michael
2023-10-29 22:24     ` Dale
2023-10-29 14:28   ` Dale
2023-10-29 21:03     ` Wol
2023-10-30 20:36     ` Mark Knecht
2023-10-30 22:32       ` Dale
2023-11-28  2:17         ` Dale
2023-12-05 20:45           ` Dale

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