From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0A5161580FD for ; Sat, 21 Dec 2024 16:36:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 529FCE0972; Sat, 21 Dec 2024 16:36:10 +0000 (UTC) Received: from mail.muc.de (mail.muc.de [193.149.48.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 16081E08F9 for ; Sat, 21 Dec 2024 16:36:08 +0000 (UTC) Received: (qmail 82824 invoked by uid 3782); 21 Dec 2024 17:36:06 +0100 Received: from muc.de (p4fe157a9.dip0.t-ipconnect.de [79.225.87.169]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 21 Dec 2024 17:36:06 +0100 Received: (qmail 2229 invoked by uid 1000); 21 Dec 2024 16:36:06 -0000 Date: Sat, 21 Dec 2024 16:36:06 +0000 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Fun with mdadm (Software RAID) Message-ID: References: <20241220145053.B361C85A435A@turkos.aspodata.se> <20241220174453.4E33285A435A@turkos.aspodata.se> <20241220220258.7422F85A435A@turkos.aspodata.se> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Archives-Salt: be706589-e3fe-4ba6-b3a9-0b3d9ff305d7 X-Archives-Hash: 090f589ad631992697fa003abe551fe0 Hello again, Karl. On Sat, Dec 21, 2024 at 12:43:50 +0000, Alan Mackenzie wrote: > On Fri, Dec 20, 2024 at 23:02:58 +0100, karl@aspodata.se wrote: > > Alan Mackenzie: > > > On Fri, Dec 20, 2024 at 18:44:53 +0100, karl@aspodata.se wrote: > > ... > > > > Please tell if you make booting with metadata 1.2 work. > > > > I havn't tested that. > > > I've just tried it, with metadata 1.2, and it doesn't work. I got error > > > messages at boot up to the effect that the component partitions were > > > lacking valid version 0.0 super blocks. > > > People without initramfs appear not to be in the sights of the > > > maintainers of this software. They could so easily have made the > > > assembly of metadata 1.2 components on the kernel command line work. > > > :-( > > ... I've now got working code which assembles a metadata 1.2 RAID array at boot time. The syntax needed on the command line is, again, md=124,1.2,/dev/nvme0n1p6,/dev/nvme1n1p6 .. In place of 1.2 can be any of 0.90, 1.0, 1.1, though I haven't tested it with anything but 1.2 as yet. > The pertinent functions are mainly in drivers/md/md-autodetect.c and > md.c (same directory). Actually, just in md-autodetect.c. [ .... ] > Nevertheless, I might make the above enhancement, just because. Done. > > Regards, > > /Karl Hammar -- Alan Mackenzie (Nuremberg, Germany).