* Re: Nested raid operation and disk sizes
@ 2008-08-06 17:30 Mike Myers
0 siblings, 0 replies; 4+ messages in thread
From: Mike Myers @ 2008-08-06 17:30 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
(whoops, for got to copy the list list the first time)
Neil, thanks very much for this. I follow the calculations and it does
seem even with a 128K chunk size (he's doing media serving) that this
will work just fine. A couple quick questions:
1) I forgot to
take into account partitioning. If the max partition size is used
(i.e. using /dev/sdb1 as a raid set member instead of /dev/sdb), isn't
there some amount of space left over on the disk? Does that affect
this calculation any?
2) Is the md driver smart enough to
realize if a member of a raid set is another md device that it should
start that md set first before trying to bring up the larger set?
I
had forgotten that you could also grow the max size of each member as
you describe. That does sound foolproof, though requires two grow
operations... I am always impressed by the flexibility of linux
software raid - half this stuff I don't naturally think about because
you can only do it with linux software raid and not with other raid
solutions.
thx
mike
----- Original Message ----
From: Neil Brown <neilb@suse.de>
To: Mike Myers <mikesm559@yahoo.com>
Cc: linux-raid@vger.kernel.org
Sent: Tuesday, August 5, 2008 6:55:18 PM
Subject: Re: Nested raid operation and disk sizes
On Tuesday August 5, mikesm559@yahoo.com wrote:
> Hi. I friend asked me a question about reconfiguring his linux
> software raid system, and I think I know the answer, but thought I
> would ask here to make sure since I'd never done this before.
Sensible.
>
> My friend has 2 raid5 disk sets right now, one with 8 500 GB saegate
> 7200.10 disks, and the other with 5 1 TB Hitachi 7K1000 disks.
>
> He just bought 5 new seagate 7200.11 1 TB disks, and will format
> them as new raid5 set. He then plans to use lvm to move the data
> off the 8x500GB set to the new 5x1TB set, destroy the 8x500 set,
> and then use group 6 of the 500 GB disks into 3 raid0 sets of 2x500
> each, and then add the raid0 sets as members of the new 1TB raid set
> by expanding the array.
>
That should work.
> This enables him to replace the 500 GB drives later with 1TB disks
> as the price of the disks gets cheaper as make the best use of the
> SATA sleds that his case has. The new 7200.11's have 1,953,525,168
> 512 byte sectors each. The existing segate 500 GB drives have
> 976,773,168 512 byte sectors. If he combines two of the 500's
> together into a raid0, he should have a total of 1,953,546,336
> sectors available, which is greater number of sectors than the 1 TB
> drives, so there should be no problem using the 2 disk raid0 set as
> a member of the 7200.11 1 TB disk raid5 set, right?
Take the size of the 500GB drives, subtract 128K for overhead, then
divide by your chunksize (e.g.64K) and double to get the number of
chunks that will be available to the raid5.
Compare this with the size of the 1TB device divided by the chunk
size.
2 500GB get 7631038 64K chunks each, or 15262076 total.
1 1TB has 15261915. So the 2*500GB is still bigger, which is good.
If you want to be extra sure, you could create the raid5 on the 1TB
devices with a smaller size. e.g. --size 950000000
Then when all the devices are in place use "--grow --size=max",
and then grow the filesystem to use all the available size.
As you probably realise, you one need a single step to grow from 5
devices to 8. Just add the 3 raid0s as spares and "mdadm -G /dev/md0 -n8"
NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread* Nested raid operation and disk sizes
@ 2008-08-05 18:47 Mike Myers
2008-08-05 20:35 ` Peter Grandi
2008-08-06 1:55 ` Neil Brown
0 siblings, 2 replies; 4+ messages in thread
From: Mike Myers @ 2008-08-05 18:47 UTC (permalink / raw)
To: linux-raid
Hi. I friend asked me a question about reconfiguring his linux software raid system, and I think I know the answer, but thought I would ask here to make sure since I'd never done this before.
My friend has 2 raid5 disk sets right now, one with 8 500 GB saegate 7200.10 disks, and the other with 5 1 TB Hitachi 7K1000 disks.
He just bought 5 new seagate 7200.11 1 TB disks, and will format them as new raid5 set. He then plans to use lvm to move the data off the 8x500GB set to the new 5x1TB set, destroy the 8x500 set, and then use group 6 of the 500 GB disks into 3 raid0 sets of 2x500 each, and then add the raid0 sets as members of the new 1TB raid set by expanding the array.
This enables him to replace the 500 GB drives later with 1TB disks as the price of the disks gets cheaper as make the best use of the SATA sleds that his case has. The new 7200.11's have 1,953,525,168 512 byte sectors each. The existing segate 500 GB drives have 976,773,168 512 byte sectors. If he combines two of the 500's together into a raid0, he should have a total of 1,953,546,336 sectors available, which is greater number of sectors than the 1 TB drives, so there should be no problem using the 2 disk raid0 set as a member of the 7200.11 1 TB disk raid5 set, right?
Am I missing some overhead here that could be a problem? He really has to get this right the first time, since if there isn't enough space in the raid0 set to be a member of the 1 TB array, he'll have to reduce the size of the parition for the 1 TB disks before making the new raid5 set, as once the data is moved there, and the disks removed from the 8x500GB set, there is no going back... :-)
Does this sound like it should work?
thx
mike
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Nested raid operation and disk sizes
2008-08-05 18:47 Mike Myers
@ 2008-08-05 20:35 ` Peter Grandi
2008-08-06 1:55 ` Neil Brown
1 sibling, 0 replies; 4+ messages in thread
From: Peter Grandi @ 2008-08-05 20:35 UTC (permalink / raw)
To: Linux RAID
[ ... ]
> [ ... add to one 4+1 1TB RAID5 three 1+1 0.5TB RAID0s ... ]
> [ ... ] as once the data is moved there, and the disks removed
> from the 8x500GB set, there is no going back... :-)
So no backup? It is the cherry on the cake of a RAID5 that is
grown from 4 to 7 members.
> Does this sound like it should work?
"Do you feel lucky?" seems appropriate here.
This is a classic example of what I call a "syntactic" approach
to configuration: if the configuration is syntactically valid
(concats of 12+1 RAID5s, ...) then fine.
The idea of growing 3 times a 4+1 RAID5 into a 7+1 RAID5 three
of whose members are 1+1 RAID0s (thus 1 drive of redundancy for
10 drives of data) is indeed syntactically valid as well as
exceedingly clever; whether it is wise, especially with no
backups, depends on how lucky one feels.
Feeling very lucky like so many people on this list?
Go ahead and make your day :-).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Nested raid operation and disk sizes
2008-08-05 18:47 Mike Myers
2008-08-05 20:35 ` Peter Grandi
@ 2008-08-06 1:55 ` Neil Brown
1 sibling, 0 replies; 4+ messages in thread
From: Neil Brown @ 2008-08-06 1:55 UTC (permalink / raw)
To: Mike Myers; +Cc: linux-raid
On Tuesday August 5, mikesm559@yahoo.com wrote:
> Hi. I friend asked me a question about reconfiguring his linux
> software raid system, and I think I know the answer, but thought I
> would ask here to make sure since I'd never done this before.
Sensible.
>
> My friend has 2 raid5 disk sets right now, one with 8 500 GB saegate
> 7200.10 disks, and the other with 5 1 TB Hitachi 7K1000 disks.
>
> He just bought 5 new seagate 7200.11 1 TB disks, and will format
> them as new raid5 set. He then plans to use lvm to move the data
> off the 8x500GB set to the new 5x1TB set, destroy the 8x500 set,
> and then use group 6 of the 500 GB disks into 3 raid0 sets of 2x500
> each, and then add the raid0 sets as members of the new 1TB raid set
> by expanding the array.
>
That should work.
> This enables him to replace the 500 GB drives later with 1TB disks
> as the price of the disks gets cheaper as make the best use of the
> SATA sleds that his case has. The new 7200.11's have 1,953,525,168
> 512 byte sectors each. The existing segate 500 GB drives have
> 976,773,168 512 byte sectors. If he combines two of the 500's
> together into a raid0, he should have a total of 1,953,546,336
> sectors available, which is greater number of sectors than the 1 TB
> drives, so there should be no problem using the 2 disk raid0 set as
> a member of the 7200.11 1 TB disk raid5 set, right?
Take the size of the 500GB drives, subtract 128K for overhead, then
divide by your chunksize (e.g.64K) and double to get the number of
chunks that will be available to the raid5.
Compare this with the size of the 1TB device divided by the chunk
size.
2 500GB get 7631038 64K chunks each, or 15262076 total.
1 1TB has 15261915. So the 2*500GB is still bigger, which is good.
If you want to be extra sure, you could create the raid5 on the 1TB
devices with a smaller size. e.g. --size 950000000
Then when all the devices are in place use "--grow --size=max",
and then grow the filesystem to use all the available size.
As you probably realise, you one need a single step to grow from 5
devices to 8. Just add the 3 raid0s as spares and "mdadm -G /dev/md0 -n8"
NeilBrown
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-06 17:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 17:30 Nested raid operation and disk sizes Mike Myers
-- strict thread matches above, loose matches on Subject: below --
2008-08-05 18:47 Mike Myers
2008-08-05 20:35 ` Peter Grandi
2008-08-06 1:55 ` Neil Brown
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).