Score:0

Reassign drive index number of mdadm software raid devices

us flag

My RAID 1 array has two disks as stated by # mdadm --detail /dev/md0

...
...
...
    Number   Major   Minor   RaidDevice State
       5       8       32        0      active sync   /dev/sdc
       4       8       16        1      active sync   /dev/sdb

Somehow mdadm assigned /dev/sdc on raid device index 0 and /dev/sdb on raid device index 1

Is it possible to reassign driver so /dev/sdb gets raid device index 0 and /dev/sdb raid device index 1?

Score:1
za flag

No and that's absolutely pointless.

First of all, this is impossible. Drives are scanned asynchronously, what is sda now can become sdb after a reboot. On some hardware when you build a kernel without this feature you can have more controlled ordering, but no guarantees even in that case.

Then, why bother at all? Don't stare to those numbers. They are internals, they aren't meant for you. They only have some limited interest for those who do forensics or data recovery, but not for you; you should do proper backups rather that relying on black magic for data recovery.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.