* Raid 5 to 6 is it do-able/safe?
@ 2009-12-29 11:55 Jon Hardcastle
2009-12-29 12:08 ` Mikael Abrahamsson
0 siblings, 1 reply; 6+ messages in thread
From: Jon Hardcastle @ 2009-12-29 11:55 UTC (permalink / raw)
To: linux-raid
Hi,
I run a 6 drive array with a multitude of drive sizes with 1 drive spare and 1 bay left.
I am running out of space! I want to take my drives past 1TB per drive (currently 500GB~1TB) but want RAID 6 for when the array goes to > 1TB per drive (coming soon)
I have deliberately kept 1 drive as a spare to give me the option of going to raid 6. Is this something mdadm can do? I have
mdadm - v3.1.1 - 19th November 2009
I run gentoo with kernel 2.6.22-gentoo-r8
Don't know if it is relevant but have lvm on top
LVM version: 2.02.56(1) (2009-11-24)
Library version: 1.02.40 (2009-11-24)
Driver version: 4.11.0
I have seen talk on Neil's site, just not sure if the support is definately there.
If it is would i run something like this
mdadm --grow /dev/md4 --level=6 --raid-disk=7
to convert my 6 drive +1 spare raid 5 to a 7 drive raid 6?
-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'
***********
Please note, I am phasing out jd_hardcastle AT yahoo.com and replacing it with jon AT eHardcastle.com
***********
-----------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Raid 5 to 6 is it do-able/safe?
2009-12-29 11:55 Raid 5 to 6 is it do-able/safe? Jon Hardcastle
@ 2009-12-29 12:08 ` Mikael Abrahamsson
2009-12-29 13:31 ` John Robinson
2009-12-31 11:19 ` Jon Hardcastle
0 siblings, 2 replies; 6+ messages in thread
From: Mikael Abrahamsson @ 2009-12-29 12:08 UTC (permalink / raw)
To: Jon; +Cc: linux-raid
On Tue, 29 Dec 2009, Jon Hardcastle wrote:
> I run gentoo with kernel 2.6.22-gentoo-r8
>
> to convert my 6 drive +1 spare raid 5 to a 7 drive raid 6?
No, you need at least kernel 2.6.32 to migrate from raid5 to raid6.
--
Mikael Abrahamsson email: swmike@swm.pp.se
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Raid 5 to 6 is it do-able/safe?
2009-12-29 12:08 ` Mikael Abrahamsson
@ 2009-12-29 13:31 ` John Robinson
2009-12-29 13:38 ` Kristleifur Daðason
2009-12-31 11:19 ` Jon Hardcastle
1 sibling, 1 reply; 6+ messages in thread
From: John Robinson @ 2009-12-29 13:31 UTC (permalink / raw)
To: Mikael Abrahamsson; +Cc: Jon, linux-raid
On 29/12/2009 12:08, Mikael Abrahamsson wrote:
> On Tue, 29 Dec 2009, Jon Hardcastle wrote:
>
>> I run gentoo with kernel 2.6.22-gentoo-r8
>>
>> to convert my 6 drive +1 spare raid 5 to a 7 drive raid 6?
>
> No, you need at least kernel 2.6.32 to migrate from raid5 to raid6.
But if you don't want to run 2.6.32 permanently/on your live system,
iirc you can just run it to do the migration, and once the migration and
reshape have completed, you can go back to your production kernel.
Having said that, 2.6.22's a bit old and I don't see it listed on
Gentoo's package web site, so you might think of updating to something
more recent anyway.
Cheers,
John.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Raid 5 to 6 is it do-able/safe?
2009-12-29 13:31 ` John Robinson
@ 2009-12-29 13:38 ` Kristleifur Daðason
0 siblings, 0 replies; 6+ messages in thread
From: Kristleifur Daðason @ 2009-12-29 13:38 UTC (permalink / raw)
To: linux-raid
On Tue, Dec 29, 2009 at 1:31 PM, John Robinson
<john.robinson@anonymous.org.uk> wrote:
>
> On 29/12/2009 12:08, Mikael Abrahamsson wrote:
>>
>> On Tue, 29 Dec 2009, Jon Hardcastle wrote:
>>
>>> I run gentoo with kernel 2.6.22-gentoo-r8
>>>
>>> to convert my 6 drive +1 spare raid 5 to a 7 drive raid 6?
>>
>> No, you need at least kernel 2.6.32 to migrate from raid5 to raid6.
>
> But if you don't want to run 2.6.32 permanently/on your live system, iirc you can just run it to do the migration, and once the migration and reshape have completed, you can go back to your production kernel.
>
Besides the kernel version issues, this type of migration is
definitely possible and should be safe. I just did one of these before
christmas - grew a 3 or 4-disk RAID-5 into a 6-disk RAID-6, all on
1.5TB drives. Lots of fun nail-biting moments watching /proc/mdstat!
As it turned out, the thing just started, went about its business, and
finished in a quiet and refined manner. Now my arrays are vast and
comfortably redundant ...
Just give yourself a set of big, physical reminders to update your
mdadm.conf when the reshape / relevel is done.
And you really, preferably ought to back your data up before you do
this. Even though the rearrangement will probably work just fine.
Merry everything!
-- Kristleifur
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Raid 5 to 6 is it do-able/safe?
2009-12-29 12:08 ` Mikael Abrahamsson
2009-12-29 13:31 ` John Robinson
@ 2009-12-31 11:19 ` Jon Hardcastle
2009-12-31 14:55 ` Mikael Abrahamsson
1 sibling, 1 reply; 6+ messages in thread
From: Jon Hardcastle @ 2009-12-31 11:19 UTC (permalink / raw)
To: Jon, Mikael Abrahamsson; +Cc: linux-raid
--- On Tue, 29/12/09, Mikael Abrahamsson <swmike@swm.pp.se> wrote:
> From: Mikael Abrahamsson <swmike@swm.pp.se>
> Subject: Re: Raid 5 to 6 is it do-able/safe?
> To: Jon@eHardcastle.com
> Cc: linux-raid@vger.kernel.org
> Date: Tuesday, 29 December, 2009, 12:08
> On Tue, 29 Dec 2009, Jon Hardcastle
> wrote:
>
> > I run gentoo with kernel 2.6.22-gentoo-r8
> >
> > to convert my 6 drive +1 spare raid 5 to a 7 drive
> raid 6?
>
> No, you need at least kernel 2.6.32 to migrate from raid5
> to raid6.
>
> --
> Mikael Abrahamsson email: swmike@swm.pp.se
> --
> 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
>
Ok,
Cheers for your help guys! I have spent the week getting system/world up to date on my gentoo system and that included the kernel!
Unfortuntely the latest non-masked gentoo-sources kernel is 2.6.31-r7 which is what i now have are you certain it is .32 i need? I can get 2.6.32-r1 but it is masked currently.... anyone got an experience with this?
Cheers.
--
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] 6+ messages in thread
* Re: Raid 5 to 6 is it do-able/safe?
2009-12-31 11:19 ` Jon Hardcastle
@ 2009-12-31 14:55 ` Mikael Abrahamsson
0 siblings, 0 replies; 6+ messages in thread
From: Mikael Abrahamsson @ 2009-12-31 14:55 UTC (permalink / raw)
To: Jon; +Cc: linux-raid
On Thu, 31 Dec 2009, Jon Hardcastle wrote:
> which is what i now have are you certain it is .32 i need? I can get
Yes, you need .32.
--
Mikael Abrahamsson email: swmike@swm.pp.se
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-12-31 14:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29 11:55 Raid 5 to 6 is it do-able/safe? Jon Hardcastle
2009-12-29 12:08 ` Mikael Abrahamsson
2009-12-29 13:31 ` John Robinson
2009-12-29 13:38 ` Kristleifur Daðason
2009-12-31 11:19 ` Jon Hardcastle
2009-12-31 14:55 ` Mikael Abrahamsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox