From: Brad Campbell <brad@wasp.net.au>
To: RAID Linux <linux-raid@vger.kernel.org>
Subject: raid6 creation with mdadm
Date: Thu, 22 Apr 2004 16:57:49 +0400 [thread overview]
Message-ID: <4087C14D.6030605@wasp.net.au> (raw)
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
next reply other threads:[~2004-04-22 12:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-22 12:57 Brad Campbell [this message]
2004-04-22 14:52 ` raid6 raidreconf progress Brad Campbell
2004-05-04 20:18 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4087C14D.6030605@wasp.net.au \
--to=brad@wasp.net.au \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).