public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Wols Lists <antlists@youngman.org.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Fun with mdadm (Software RAID)
Date: Sun, 22 Dec 2024 12:02:49 +0000	[thread overview]
Message-ID: <581a87bd-2578-47b2-8a68-2decc3db8991@youngman.org.uk> (raw)
In-Reply-To: <20241220174453.4E33285A435A@turkos.aspodata.se>

On 20/12/2024 17:44, karl@aspodata.se wrote:
>> If I understand things correctly, with this mechanism one can have the
>> kernel assemble the RAID arrays at boot up time with a modern metadata,
>> but still without needing the initramfs.  My arrays are still at
>> metadata 0.90.

> Please tell if you make booting with metadata 1.2 work.
> I havn't tested that.

It is NOT supported. The kernel has no code to do so, you need an 
initramfs. That said, nowadays I believe you can actually load the 
initramfs into the kernel so it's one monolithic blob ...

By the way, as to the other point of putting /dev/sda etc on the kernel 
command line, it's the kernel that's messing up and scrambling which 
physical disk is which logical sda sdb et al device, so explicitly 
specifying that will have exactly NO effect when your hardware/software 
combo changes again. I guess it was the fact your rescue disk booted 
from CDROM or whatever made THAT sda, and pushed the other disks out of 
the way.

sda, sdb, sdc et al are allocated AT RANDOM by the kernel. It just so 
happens that the "seed" rarely changes, so in normal use the same values 
happen to get chosen every time - until something DOES change, and then 
you wonder why everything falls over. The same is also true of md127, 
md126 et al. If your raid counts up from md1, md2 etc then those I 
believe are stable, but I haven't seen them for pretty much the entire 
time I've been involved in mdraid (maybe a decade or so?)

You need to use those UUID/GUID things. I know it's a hassle finding out 
whether it's a guid or a uuid, and what it is, and all that crud, but 
trust me they don't change, you can shuffle your disks, stick in another 
SATA card, move it from SATA to USB (BAD move - don't even think of it 
!!!), and the system will still find the correct disk.

Cheers,
Wol


  parent reply	other threads:[~2024-12-22 12:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20 10:47 [gentoo-user] Fun with mdadm (Software RAID) Alan Mackenzie
2024-12-20 14:50 ` karl
2024-12-20 15:28   ` Alan Mackenzie
2024-12-20 17:44     ` karl
2024-12-20 20:19       ` Alan Mackenzie
2024-12-20 20:38         ` Hoël Bézier
2024-12-20 20:53           ` Alan Mackenzie
2024-12-20 22:02         ` karl
2024-12-30  4:08           ` Frank Steinmetzger
2024-12-20 22:02         ` karl
2024-12-21 12:43           ` Alan Mackenzie
2024-12-21 16:36             ` Alan Mackenzie
2024-12-21 16:45               ` karl
2024-12-21 16:58                 ` Alan Mackenzie
2024-12-22 13:08                   ` Alan Mackenzie
2024-12-22 12:16             ` Wols Lists
2024-12-22 12:08         ` Wols Lists
2024-12-22 12:02       ` Wols Lists [this message]
2024-12-22 13:43         ` Alan Mackenzie
2024-12-22 15:29           ` Peter Humphrey
2024-12-22 16:53             ` Wols Lists
2024-12-22 20:05               ` Alan Mackenzie
2024-12-25 21:16                 ` Steven Lembark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=581a87bd-2578-47b2-8a68-2decc3db8991@youngman.org.uk \
    --to=antlists@youngman.org.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox