Re: more then 15 partitions per SCSI device..

Heinz Mauelshagen (mauelsha@ez-darmstadt.telekom.de)
Tue, 02 Feb 1999 17:45:55 MET


On Tue, 02 Feb 1999 05:51:36 -0800, Luke Miller <millerlu@peak.org> wrote:
>
> Does anyone know if there is a way to get more then 15 paritions per SCSI
> device?

No.

> I have a 36 GB raid that looks like one drive /dev/sda. I have
> made more then 15 partitions /dev/sda1-/dev/sda21 and I have made the
> device files for the ones over 15, but I am not able to mount ones over
> 15. I get the following message:
>
> mount: /dev/sda16 already mounted or /u9 busy
> mount: /dev/sda17 already mounted or /ua busy
> etc...
>

This can't work, because the partition selection done by 4 bits of the minor
number only allows 16 values:
1 for the disk as a total and 15 for the partitions.

> It there a hard limit of 15 partitions or is there some way around this?

You can use my Logical Volume Manager <http://linux.msede.com/lvm> to
do the job.
It allows you to put your 36G Raid into one Volume Group (VG) and to configure
up 31 Logical Volumes (LVs) to put your filesystems or whatever into.

If 31 LVs is not sufficient for you, create 2 partitons, put them into
2 VGs and voila --> 62 LVs and so on.

O.k.: my proposal with 2 or more partitions is not absolute flexible any more
but the LVM is limited to 8 bit minor numbers too 8*(
You can have up to 8 VGs with up to 31 LVs each at this point in time.

BTW: you are able to resize VGs and LVs at runtime.
For eg. add another 100G raid subsystem and extend the existing VG's
capacity to a grand total of 136G.
Afterwards you are able to grow the LV(s) 8*)

Regards,
Heinz

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement Entwicklungsbereich 2 Deutsche Telekom AG Entwicklungszentrum Darmstadt Heinz Mauelshagen Otto-Roehm-Strasse 71c Postfach 10 05 41 mge@ez-darmstadt.telekom.de 64205 Darmstadt Germany +49 6151 886-425 FAX-386 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/