All of lore.kernel.org
 help / color / mirror / Atom feed
* naming system of raid devices
@ 2021-01-01 15:28 c.buhtz
  2021-01-01 16:15 ` Reindl Harald
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: c.buhtz @ 2021-01-01 15:28 UTC (permalink / raw)
  To: linux-raid

In the last weeks I played around with mdadm - on VMs, Odroid-Devices,
PCs - all with Debian 10.

I observed a (for me) curious behavior about the naming of RAID
devices.

I did "--create /dev/md0" all the time.

But sometimes it results in /dev/md127.
Sometimes it is /dev/md/0.
Sometimes it switches between upgrade of the kernel image (/dev/md127
become /dev/md0 and booting fails).

Googleing this topic brings up a lot of other users discussing about
that problem.

My current solution is to ignore the /dev/*-name and mount the
device/partition by its UUID.

Another often reported "solution" is to edit the mdadm.conf. But this
is not a good solution for me. mdadm looks in the superblock and knows
(nearly) everything. Each conf-file I need to edit keeps the
possibility for errors/mistakes/faults (because I am not a sysop/admin
but a simple home-server-wannabe-admin).

My Question is how this names come up? How does mdadm, the kernel or
what ever component is responsible here, decide about the "name" of a
raid device?
And which factors influence the re-nameing of such devices (e.g.
between boot or kernel-updates)?

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

end of thread, other threads:[~2021-01-03 19:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-01 15:28 naming system of raid devices c.buhtz
2021-01-01 16:15 ` Reindl Harald
2021-01-01 19:09 ` Phil Turmel
2021-01-02 15:39   ` c.buhtz
2021-01-02 18:18     ` Wols Lists
2021-01-02 21:44       ` Rudy Zijlstra
2021-01-02 22:12     ` Rudy Zijlstra
2021-01-03 19:19       ` Anthony Youngman
2021-01-01 19:22 ` antlists

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.