You are not logged in.

#1 2014-02-22 13:04:12

08flonk
Member
Registered: 2014-02-22
Posts: 1

Arch setup on software raid1 + luks on lvm -> root device not found

Hi I have some trouble to boot into system after encryption. The root device is not found.

System configuration:

2 x sata on software raid1

sdb1 + sdc1 -> md0 -> boot
sdb2 + sdc2 -> md1 -> luks -> lvm -> main-root main-home main-swap

/etc/fstab

# /dev/mapper/main-root
UUID=de56.....        /        ext4        rw,realtime,data=ordered        0 1

# /dev/md0
UUID=de56.....        /boot        ext4        rw,realtime,stripe=4,data=ordered        0 2

# /dev/mapper/main-home
UUID=f497.....        /home        ext4        rw,realtime,data=ordered        0 2

# /dev/maspper/masin-swap
UUID=8379.....        none        swap        defaults        0 0

/etc/mkinitcpio.conf

MODULES="dm_mod raid1"

HOOKS="base udef autodetect modconf block mdadm_udev keyboard keymap encrypt lvm2 filesystems fsck"

I did mkinitcpio -p linux

/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=/dev/md1:main root=/dev/mapper/main-root"

I did grub-mkconfig -o /boot/grub/grub.cfg

ERROR comes every time:

running early hook [udev]
running early hook [lvm2]
running hook [udev]
Triggering uevents ...
running hook [keymap]
Loading [keymap] done.
running hook [encrypt]

password prompt for lvm -> entering the password is working fine!

Waiting 10 Seconds dor device /dev/mapper/main-root
Error: device ' /dev/mapper/main-root' not found. skipüping fsck.
Error: unable to find device ' /dev/mapper/main-root'
You ar being dropped to a recovery shell.

From time to time it is possible to enter 'exit' and continue booting system -> sometimes there are all needed devices in /dev/mapper (main main-root main-home main-swap)
Most of the time 'exit' doesn't work and the devices  main-root main-home main-swap) are not there only (main) is available.



Any ideas whats going wrong? Is it possible failing because of the early hook of lvm2?

Offline

#2 2014-02-25 15:28:03

Infinity
Member
From: EU
Registered: 2013-12-16
Posts: 18

Re: Arch setup on software raid1 + luks on lvm -> root device not found

Offline

Board footer

Powered by FluxBB