linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: partitions in meta devices
@ 2003-05-05 22:49 Chuck Ebbert
  0 siblings, 0 replies; 12+ messages in thread
From: Chuck Ebbert @ 2003-05-05 22:49 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel

>       No, it should not.  And devfs, for once, has nothing to do with it.
> RAID devices (md*) have _one_ (1) minor allocated to each.  Consequently,
> they could not be partitioned by any kernel - there is no device numbers
> to be assigned to their partitions.
>  
> > Could you please tell us which kernel version you're using?
> 
>       What would be much more interesting, which kernel are _you_ using
> and what device numbers, in your experience, do these partitions get?

 These patches appear to contain raid partitioning code of some sort:

   http://www.cse.unsw.edu.au/~neilb/patches/linux-stable/

Only the first 16 md devices can be partitioned, though... major is 60,
minors are 0-15 for md0, 16-31 for md1, etc.



^ permalink raw reply	[flat|nested] 12+ messages in thread
* partitions in meta devices
@ 2003-05-05 16:44 Ezra Nugroho
  2003-05-05 16:39 ` Carl-Daniel Hailfinger
  0 siblings, 1 reply; 12+ messages in thread
From: Ezra Nugroho @ 2003-05-05 16:44 UTC (permalink / raw)
  To: linux-kernel

I am curious if partitioning meta devices is allowed or not.

I just created a software raid array, md0 with 240G logical size.
I want to partition that into two, 100G and the rest.

I used fdisk to create the partitions, and it worked, result:

bangalore exports # fdisk /dev/md0

Command (m for help): p

Disk /dev/md0: 247.0 GB, 247044636672 bytes
2 heads, 4 sectors/track, 60313632 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

    Device Boot    Start       End    Blocks   Id  System
/dev/md0p1             1  24414064  97656254   83  Linux
/dev/md0p2      24414065  60313632 143598272   83  Linux


however, I couldn't create any file system for them, or mount them.
/dev/md0px just don't exist.

Do I need to partition the drives first before creating the raids?
I use devfs instead of file based /dev

Thanks, 



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-05-06 23:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-05 22:49 partitions in meta devices Chuck Ebbert
  -- strict thread matches above, loose matches on Subject: below --
2003-05-05 16:44 Ezra Nugroho
2003-05-05 16:39 ` Carl-Daniel Hailfinger
2003-05-05 16:57   ` Ezra Nugroho
2003-05-05 16:59     ` Carl-Daniel Hailfinger
2003-05-05 17:21       ` Ezra Nugroho
2003-05-05 19:16       ` viro
2003-05-05 19:57         ` Carl-Daniel Hailfinger
2003-05-05 21:38         ` Wakko Warner
2003-05-07  0:06           ` Neil Brown
2003-05-05 17:17     ` Bernd Schubert
2003-05-05 17:18   ` Jörn Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).