linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid6 creation with mdadm
@ 2004-04-22 12:57 Brad Campbell
  2004-04-22 14:52 ` raid6 raidreconf progress Brad Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Brad Campbell @ 2004-04-22 12:57 UTC (permalink / raw)
  To: RAID Linux

G'day all,

I'm currently adding raid6 support to raidreconf, and as part of my testing I'm doing all sorts of
nasty things to a 200GB usb2 hard disk.
What happens when I create a raid5 or raid6 with devices of differing sizes? ie the partition list
below.
I can create a raid6 of /dev/sda[5-9] /dev/sda1[0-2] and it lets me do it, it runs and everyone is
happy, except for raidreconf. When I get right to the end of the disk, what happens to the block
calculations if the required blocks don't exist on one of the disks? Or does the md driver base the
whole /dev/md size on the smallest device?

I'm just wondering how to go about assisting raidreconf in coping with this really odd case, as at
the moment it converts everything and then dies painfully before it restores anything to a workable
state. What Would The Kernel Do? (WWKD)


brad@tv:~$ fdisk -l /dev/sda

Disk /dev/sda: 199.9 GB, 199998918656 bytes
255 heads, 63 sectors/track, 24315 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1217     9775521    5  Extended
/dev/sda2            1218        1248      249007+  83  Linux
/dev/sda3            1249        1279      249007+  83  Linux
/dev/sda4            1280        1310      249007+  83  Linux
/dev/sda5               1          31      248944+  83  Linux
/dev/sda6              32          62      248976   83  Linux
/dev/sda7              63          93      248976   83  Linux
/dev/sda8              94         124      248976   83  Linux
/dev/sda9             125         155      248976   83  Linux
/dev/sda10            156         186      248976   83  Linux
/dev/sda11            187         217      248976   83  Linux
/dev/sda12            218         248      248976   83  Linux
/dev/sda13            249         279      248976   83  Linux
/dev/sda14            280         310      248976   83  Linux
/dev/sda15            311         341      248976   83  Linux

Regards,
Brad


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

end of thread, other threads:[~2004-05-04 20:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 12:57 raid6 creation with mdadm Brad Campbell
2004-04-22 14:52 ` raid6 raidreconf progress Brad Campbell
2004-05-04 20:18   ` H. Peter Anvin

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).