What determines mdraid minor device numbers
I have existing mdraid arrays. They get mounted as /dev/md0 through /dev/md2.
After some sweat and tears, I reduces the size of one of them, and used the free disk space to assemble a new array (all arrays we're talking here are raid 1, with two disks). I formatted the new md device as ext3. I added "UUID=<uuid> /mountpoint" to /etc/fstab. At bootup, the new array gets automounted on /dev/md127 for some reason. Everything's fine, I see no issues except for the unexpected device minor number. Anyone care to enlighten me, how mdraid minor numbers get handed out, and why the one I manually created comes up as a high number, even though the next free minor device is, obviously, /dev/md3. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines |
What determines mdraid minor device numbers
On Sun, Nov 13, 2011 at 15:30:32 -0500,
Sam Varshavchik <mrsam@courier-mta.com> wrote: > > At bootup, the new array gets automounted on /dev/md127 for some > reason. Everything's fine, I see no issues except for the unexpected > device minor number. > > Anyone care to enlighten me, how mdraid minor numbers get handed > out, and why the one I manually created comes up as a high number, > even though the next free minor device is, obviously, /dev/md3. Some of this is controlled by /etc/mdadm.conf. This file is used when running dracut to build an initramfs. For arrays that aren't listed in /etc/mdadm.conf, I think udev gets to pick the names. They seem to start at 127 and go up. There is also a minor number that is stored in the superblocks, but it doesn't seem to force that number to be part of the device name. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org |
| All times are GMT. The time now is 04:02 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.