From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#38086: RAID installation script with =?UTF-8?Q?=E2=80=98mdadm=E2=80=99?= no longer works Date: Tue, 12 Nov 2019 00:28:58 +0100 Message-ID: <877e46m1qd.fsf@gnu.org> References: <87sgn18g92.fsf@inria.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46315) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUJ8F-0001tq-S5 for bug-guix@gnu.org; Mon, 11 Nov 2019 18:30:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUJ8E-0000MM-Pa for bug-guix@gnu.org; Mon, 11 Nov 2019 18:30:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUJ8E-0000LY-MP for bug-guix@gnu.org; Mon, 11 Nov 2019 18:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUJ8E-0000DS-Gv for bug-guix@gnu.org; Mon, 11 Nov 2019 18:30:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Wed, 6 Nov 2019 12:07:39 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 38086@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi G=C3=A1bor, G=C3=A1bor Boskovits skribis: >> + mdadm --create /dev/md0 --verbose --level=3Dstripe --raid-devices=3D2 >> /dev/vdb2 /dev/vdb3 >> mdadm: chunk size defaults to 512K >> mdadm: Defaulting to version 1.2 metadata >> [ 13.890586] md/raid0:md0: cannot assemble multi-zone RAID0 with >> default_layout setting >> [ 13.894691] md/raid0: please set raid0.default_layout to 1 or 2 >> [ 13.896000] md: pers->run() failed ... >> mdadm: RUN_ARRAY failed: Unknown error 524 >> [ 13.901603] md: md0 stopped. >> --8<---------------cut here---------------end--------------->8--- >> >> Anyone knows what it takes to =E2=80=9Cset raid0.default_layout to 1 or = 2=E2=80=9D? >> > > On kernel 5.3.4 and above the > raid0.default_layout=3D2 kernel boot paramter should be set. We should > generate our grub configuration accordingly. That=E2=80=99s part of the solution, thank you! With the patch below, the =E2=80=9Craid-root-os=E2=80=9D test successfully = installs the system to a RAID0 device, but then that system fails to boot with: --8<---------------cut here---------------start------------->8--- Booting from Hard Disk... GRUB loading. Welcome to GRUB! error: invalid arch-independent ELF magic. Entering rescue mode... --8<---------------cut here---------------end--------------->8--- (It sits there forever.) Are we missing something in =E2=80=98grub.cfg=E2=80=99? If so, I wonder if= that problem arose with the upgrade in commit 069ab3bbfde704760acaca20dff8a29d167c6be5. Thoughts? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/tests/install.scm b/gnu/tests/install.scm index 22c9554705..5e421f7c54 100644 --- a/gnu/tests/install.scm +++ b/gnu/tests/install.scm @@ -543,7 +543,8 @@ where /gnu lives on a separate partition.") (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/vdb"))) - (kernel-arguments '("console=ttyS0")) + (kernel-arguments '("console=ttyS0" + "raid0.default_layout=2")) ;; Add a kernel module for RAID-0 (aka. "stripe"). (initrd-modules (cons "raid0" %base-initrd-modules)) @@ -578,9 +579,11 @@ export GUIX_BUILD_OPTIONS=--no-grafts parted --script /dev/vdb mklabel gpt \\ mkpart primary ext2 1M 3M \\ mkpart primary ext2 3M 600M \\ - mkpart primary ext2 600M 1200M \\ + mkpart primary ext2 600M 1.4G \\ set 1 boot on \\ set 1 bios_grub on +modprobe raid0 +echo 1 > /sys/module/raid0/parameters/default_layout mdadm --create /dev/md0 --verbose --level=stripe --raid-devices=2 \\ /dev/vdb2 /dev/vdb3 mkfs.ext4 -L root-fs /dev/md0 --=-=-=--