> Is there a limit how many md devices I can create?

Yes :-((

> My /dev contains md0 to md15. I'd like to leave some gaps between each
> device to be able to insert another later (to steer the resync order).

Do you know something I don't ?
Are you saying that the re-sync order is based on the /dev/md<N> number,
rather than the order it happens to find them on disk when auto-detecting ?

The reason I want lots is that for external SCSI disks in a JBoD, any SCSI
chain can be moved between servers (e.g. if one server blows up).
As such, I make the internal IDE md<N> numbers be small [ but not single
digit, as there is a bug in mkraid etc such that it does a simple grep in
/proc/mdstat to see if it is `active' -- md2 falsely `matches' with md27,
so it refuses to mkraid md2 as it is already busy :-( ] and local, whereas all
the external md<N>s are globally unique.  Kinds of burns up the address space!

> Is that possible?

Yes.

> I created md255 (with mknod) and made a metadevice.

Yup -- as I remember, that's the last one :-(

> It worked, but will there be future problems?

/proc/partitions isn't very pleasant :-(

baldock:~: grep md /proc/partitions | cat -v
   9     6    1052160 md6
   9   145    2104384 mdM-A
   9   147    2104384 mdM-C
   9   149    2104384 mdM-E
   9   151    2104384 mdM-G
   9   153    2104384 mdM-I
   9   154    2104384 mdM-J
baldock:~: 

Reply via email to