md126-7
Hi everyone,
I've been using the RAID subsystem quite a bit over the years. This week, for the first time, I created a RAID6 array over loop devices that point to files.
To my surprise the device showing in /proc/mdstat for this new array is /dev/md127. This is a fresh system and RAID has never been configured on it. I tried re-doing everything from scratch again and was sometimes even given /dev/md126 (though I wasn't able to reproduce this one, it happened once).
My kernel is 2.6.20.4. Can anyone give me a hint about what's going on?
Thanks,
Marc
Quoted 6 lines · On Tuesday April 3, [email protected] wrote:
Hi everyone,
I've been using the RAID subsystem quite a bit over the years. This week, for the first time, I created a RAID6 array over loop devices that point to files.
Quoted 7 lines
To my surprise the device showing in
/proc/mdstatfor this new array is/dev/md127. This is a fresh system and RAID has never been configured
on it. I tried re-doing everything from scratch again and was sometimes even given/dev/md126(though I wasn't able to reproduce this one, it happened once).My kernel is 2.6.20.4. Can anyone give me a hint about what's going on?
Maybe if you tell us what commands you ran, we could explain what you did?
Maybe you did
mdadm -C /dev/bigdev -amd -l6 -n5 /dev/sd[a-e]
As the name "bigdev" doesn't look like "md%d", it will just choose an unused number up around 127.
NeilBrown
Hello Neil,
Quoted 10 lines
Maybe if you tell us what commands you ran, we could explain what you did?
Maybe you didmdadm -C /dev/bigdev -amd -l6 -n5 /dev/sd[a-e]As the name "bigdev" doesn't look like "md%d", it will just choose an unused number up around 127.
You were absolutely right, thank you. I was simply missing the device name when creating the array, something I usually do specify :)
It is a bit odd though that it picks an unused number that high, why doesn't it start from 0?
Thanks,
Marc