LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   crypto luks UUID not found (https://www.linuxquestions.org/questions/linux-general-1/crypto-luks-uuid-not-found-4175650750/)

wandored 03-23-2019 02:11 PM

crypto luks UUID not found
 
my server died in november (CentOS 7), just now replaced the MOBO, CPU and Memory. I have 4 drives in lvm with LUKS encryption. I get the "UUID not found" when i try to startup. When I startup in rescue mode it asks for my passphrase and i can log in just fine. I can access everything in rescue mode.
I have looked over the crypttab and fstab and all seams to be consistent but i still get the error when i try regular login.

Code:

#
# /etc/fstab
# Created by anaconda on Sun Jan 28 16:01:35 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/luks-629475c3-6815-403b-af6a-2f40d8ded61c /                      ext4    defaults,x-systemd.device-timeout=0 1 1
UUID=a5707a15-bf94-4eb9-b6ee-a0ca6e2db2b9 /boot                  ext4    defaults        1 2
/dev/mapper/luks-4cb5c396-d282-48c2-bfb0-e271475e5118 /home                  ext4    defaults,x-systemd.device-timeout=0 1 2
/dev/mapper/luks-460e73c9-8cd2-4c77-9ce5-09b8460dd7f0 /var                    ext4    defaults,x-systemd.device-timeout=0 1 2
/dev/mapper/luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8 swap                    swap    defaults,x-systemd.device-timeout=0 0 0

Code:

[root@plexserver robert]# cat /etc/crypttab
luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8 UUID=cf1a9462-2f25-43ff-93f1-14e76f842ad8 none
luks-460e73c9-8cd2-4c77-9ce5-09b8460dd7f0 UUID=460e73c9-8cd2-4c77-9ce5-09b8460dd7f0 none
luks-629475c3-6815-403b-af6a-2f40d8ded61c UUID=629475c3-6815-403b-af6a-2f40d8ded61c none
luks-4cb5c396-d282-48c2-bfb0-e271475e5118 UUID=4cb5c396-d282-48c2-bfb0-e271475e5118 none

What am i missing!

Brains 03-24-2019 07:01 AM

I know it would be silly to think the kernel parameters are different for normal boot and booting in rescue mode, but would be worth looking at. At the grub menu, hit the "e" key for each entry and see if there's a difference in the kernel lines.

wandored 03-24-2019 01:58 PM

rescue:
link removed

normal boot:
link removed

a few differences. I don't know which might be the issue. The root UUID's are different, and that is the UUID it cannot find when i get the error.

Brains 03-24-2019 05:09 PM

Yeah..
Have you tried manually changing out root=/dev/mapper/luks-629475c3-6815-403b-af6a-2f40d8ded61c for: root=UUID=d3215eff-2f78-47de-9d78-8582dda2e90a?

They both have:
rd.luks.uuid=luks-629475c3-6815-403b-af6a-2f40d8ded61c
rd.luks.uuid=luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8
Which is / and swap. Maybe these two only come into effect after the passphrase is entered.

wandored 03-24-2019 05:49 PM

ill give that a try. Here is the blkid info. Dont know if this info helps.

Code:

[root@plexserver robert]# blkid
/dev/sdb1: UUID="a5707a15-bf94-4eb9-b6ee-a0ca6e2db2b9" TYPE="ext4"
/dev/sdb2: UUID="YjBQrR-gFRl-IUNC-2Kzt-WSXv-ZBTA-ZThaGr" TYPE="LVM2_member"
/dev/sdb3: UUID="629475c3-6815-403b-af6a-2f40d8ded61c" TYPE="crypto_LUKS"
/dev/sdb5: UUID="cf1a9462-2f25-43ff-93f1-14e76f842ad8" TYPE="crypto_LUKS"
/dev/sdc1: UUID="5DH18J-Oc2G-37ya-jBly-SXAC-QtBC-4mniX3" TYPE="LVM2_member"
/dev/sde1: UUID="xDCSI7-MHEe-ywcQ-q1qF-exLs-O50u-MMmTMW" TYPE="LVM2_member"
/dev/sdd1: UUID="OF6Jzh-nwqd-g3qA-Qb62-5pvF-YHLR-jpjIED" TYPE="LVM2_member"
/dev/mapper/centosVG-01: UUID="460e73c9-8cd2-4c77-9ce5-09b8460dd7f0" TYPE="crypto_LUKS"
/dev/mapper/centosVG-00: UUID="4cb5c396-d282-48c2-bfb0-e271475e5118" TYPE="crypto_LUKS"
/dev/mapper/luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8: UUID="db0f1885-5d8e-4b12-8647-0ec61ab8069c" TYPE="swap"
/dev/mapper/luks-629475c3-6815-403b-af6a-2f40d8ded61c: LABEL="root" UUID="d3215eff-2f78-47de-9d78-8582dda2e90a" TYPE="ext4"
/dev/mapper/luks-4cb5c396-d282-48c2-bfb0-e271475e5118: UUID="96e11679-8863-460c-a11f-f1a342075947" TYPE="ext4"
/dev/mapper/luks-460e73c9-8cd2-4c77-9ce5-09b8460dd7f0: UUID="e5a9ea33-fff7-40d6-b084-c07a8e8d874a" TYPE="ext4"


wandored 03-28-2019 08:39 PM

I haven't had any time to work on this all week. I left it running in rescue mode all week. It downloaded updates and when i re-booted, i was able to log in with normal boot. still not sure what the problem was but there you go.


All times are GMT -5. The time now is 01:19 PM.