All of lore.kernel.org
 help / color / mirror / Atom feed
* mdadm will only start root device degraded
@ 2017-08-07  7:51 Felix Koop
  2017-08-11 18:00 ` Wols Lists
  0 siblings, 1 reply; 6+ messages in thread
From: Felix Koop @ 2017-08-07  7:51 UTC (permalink / raw)
  To: linux-raid

Hello,

I have the following problem: /dev/md2 is my root device. This is a
raid1 device consisting of 2 partitions (sdg1 and sdf1). Booting in
this configuration worked fine.

When I decided to encrypt those partitions, I started to encrypt one of
them (sdg1). Now the array always starts degraded with the encrypted
sdg1 (cryptorootg) missing. I am asked during boot process for the
password and the encrypted device is unlocked successfully. But the
raid is not set up correctly. I have to run after every boot

mdadm /dev/md2 --add /dev/mapper/cryptorootg

and then device is sync'ing and working fine until next reboot. An
entry in /etc/crypttab was created.

What do I have to configure differently to have mdadm recognising the
raid device correctly during boot?



-- 
Mit freundlichen Grüßen

Felix Koop
fkoop@fkoop.de

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

end of thread, other threads:[~2017-08-14  5:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07  7:51 mdadm will only start root device degraded Felix Koop
2017-08-11 18:00 ` Wols Lists
2017-08-12  9:20   ` Felix Koop
2017-08-12 14:17     ` Reindl Harald
2017-08-12 17:25     ` Anthony Youngman
2017-08-14  5:18       ` Felix Koop

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.