Dale
2023-10-29 08:20:01 UTC
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:
***@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
***@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
:-) :-)
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:
***@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
***@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
:-) :-)