Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two sets of RAID1 drives - 16 partitions - naming?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
galahad7
n00b
n00b


Joined: 18 Mar 2003
Posts: 50

PostPosted: Mon Jul 07, 2008 6:37 pm    Post subject: Two sets of RAID1 drives - 16 partitions - naming? Reply with quote

Hi there,

I've got two sets of RAID1 drives (four drives in total, two mirrors).

The number of RAID partitions across the two raid sets adds up to greater than 14, so I need more partition names.
For instance if there are 8 partitions on the first mirror and 8 partitions on the second mirror then I'm going to run out of numbers as Linux only allows a maximum of 14 or 15, i.e.
/dev/md1 /dev/md2 /dev/md3.... /dev/md14

So, am wondering if it is going to work if I create /dev/mda and /dev/mdb as follows:-
mknod /dev/mda1 b 9 1
mknod /dev/mda2 b 9 2
mknod /dev/mda3 b 9 3
....
mknod /dev/mdb1 b 9 1
mknod /dev/mdb2 b 9 2
mknod /dev/mdb3 b 9 3
...

Thanks for your help.
Stephen
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54312
Location: 56N 3W

PostPosted: Mon Jul 07, 2008 10:44 pm    Post subject: Reply with quote

galahad7,

That idea is doomed because you all allocating the same major and minor device numbers to each set.
usr/src/linux/Documentation/devices.txt reads as if your should be able to have 256 raid devices as major block device 9 is only used for that purpose.

There may be a kernel limit, in which case you need a kernel patch.

You are not confusing the SCSI partition limit (15 max) with kernel raid limit are you ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
galahad7
n00b
n00b


Joined: 18 Mar 2003
Posts: 50

PostPosted: Tue Jul 08, 2008 5:10 am    Post subject: [resolved] Reply with quote

Quote:

That idea is doomed because you all allocating the same major and minor device numbers to each set.
usr/src/linux/Documentation/devices.txt reads as if your should be able to have 256 raid devices as major block device 9 is only used for that purpose.


I didn't know what the "b 9 0" business meant, and so yes, assumed that it would be limited to 15 devices like the SCSI partition limit.

Have had a look in /usr/src/linux/Documentation/devices.txt and that is exactly the information source I was trying to find. Yes, as you've said, it looks like it will take up to 255 devices.

Great. Thanks for your help.

Stephen
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Tue Jul 08, 2008 7:55 pm    Post subject: Reply with quote

Another possible suggestion is to look into LVM with dynamically allocated major/minor numbers via device mapper - LVM partition names are arbitrary and you can have quite a few of them within the physical volumes (could even span the two RAIDs if you so desire.)

I'm running LVM with md-raid5. Though I only have a handful of partitions (Logical Volumes) the limit to the number of them is much more than I could ever use... Right now my logical volumes do not span physical volumes (or partitions) but I could... Vg0-l0 and Vg0-l1 are actually in the same RAID volume, /dev/md2.

Code:
root@doujima:/dev/mapper# ls -l
total 0
lrwxrwxrwx 1 root root     16 Jun 16 09:54 control -> ../device-mapper
brw-r----- 1 root disk 253, 0 Jun 16 09:54 vg0-l0
brw-r----- 1 root disk 253, 1 Jun 16 09:54 vg0-l1
brw-r----- 1 root disk 253, 2 Jun 16 09:54 vg0-tmp

_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum