[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating config for new RAID array

From: Pascal Hambourg
Subject: Re: Generating config for new RAID array
Date: Sun, 27 Aug 2017 11:56:41 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Le 24/08/2017 à 22:42, Kjetil Kjernsmo a écrit :

I'm trying to migrate a Debian Jessie system from a single disk to an md
raid1. I have created the RAID and copied everything over to the array
(single partition before and after), but I struggle to get the grub config
generated with the new array.

I have mostly been following
But when it says "Now run grub-mkconfig. It should detect your array",
that's not happening for me, as far as I can see. I've grepped through it
for the UUID too...

Did you run grub-mkconfig from the system installed on the RAID array or from another system ? Using Debian too, I observed that os-prober does not detect a Linux system on a bare RAID array. However it detects Linux systems on LVM over RAID. Of course grub-mkconfig/update-grub detects the RAID array the current system is installed on.

Both because it looks a little scary and because it is a good idea to stick
to the distro way of doing things, I'd like to do it the Debian way and
generate the config rather than write it by hand.

I would suggest to edit grub.cfg manually for the first boot on the RAID array, then you can check that grub-mkconfig generates proper menu entries.

Do not forget to edit /etc/fstab too.
Also, check that the initramfs is setup to start at least required RAID arrays (root, /usr). See /etc/default/mdadm.

Allthough I don't see an menuentry generated for the new array, I see the
domdadm getting onto the boot line, so at least the /etc/default/grub is

What's "domdadm" ? I have never seen this on Debian and cannot find it in Debian initramfs scripts. AFAIK, it is not used to boot from RAID with an initramfs generated by the default initramfs generator (initramfs-tools).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]