linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Replace drive in RAID5 without losing redundancy?
@ 2007-03-05 10:55 Ralf Müller
  2007-03-05 22:29 ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Müller @ 2007-03-05 10:55 UTC (permalink / raw)
  To: linux-raid

Hi

The day before I grew a 4 times 300GB disk RAID5. I replaced the 300GB
drives by 750GB ones. As far as I can see the proposed way to do that
is to kick a drive from RAID and let a spare drive take over - for
sensible data this is scary - at least for me, because I lose
redundancy for the whole time of rebuild. Everything worked fine - so
no harm is done - but is there a way to replace a disk without losing
redundancy?

Is it possible to mark a disk as "to be replaced by an existing spare",
then migrate to the spare disk and kick the old disk _after_ migration
has been done? Or not even kick - but mark as new spare.

This feature would be even more interesting for partially degraded
arrays with read problems on different disks which do not apply to the
same RAID chunk (up to now I've seen one array in such a state and this
one was able to recover by automatically rewriting the unreadable
sectors). The point is - I would have felt better if I had been able to
mark the old disks read only and migrate disk by disk without losing
the partially damaged redundancy.

Best Regards
Ralf Mueller

-- 
Van Roy's Law: -------------------------------------------------------
        An unbreakable toy is useful for breaking other toys.



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Replace drive in RAID5 without losing redundancy?
@ 2007-03-06  9:18 Ralf Müller
  0 siblings, 0 replies; 7+ messages in thread
From: Ralf Müller @ 2007-03-06  9:18 UTC (permalink / raw)
  To: Neil Brown


Am 05.03.2007 um 23:29 schrieb Neil Brown:

> On Monday March 5, ralf@bj-ig.de wrote:
>>
>> Is it possible to mark a disk as "to be replaced by an existing  
>> spare",
>> then migrate to the spare disk and kick the old disk _after_  
>> migration
>> has been done? Or not even kick - but mark as new spare.
>
> No, this is not possible yet.

It's a pity - this would be a cool feature. It would take a lot of
worrying out of RAID5 maintenance. Even when you have a backup it takes
hours over hours to rebuild data from it when you crash a big RAID.  
Do you
know if such a thing is on a ToDo list somewhere?

> You can get nearly all the way there by:
>
>   - add an internal bitmap.
> [ ... ]
>   - disassemble the raid1
>   - re-add the new drive to the raid5
> However that won't work as the superblock will be in the wrong place
> on the new drive.
> It wouldn't be hard to relocate the superblock, but there currently is
> no code to do this.

There has been an idea in PM to initially create the RAID5 out of  
RAID1's
with only one disk. For migration one could add a disk to one of the  
RAID1's,
let it sync and fail out the old disk. The question left had been if  
a RAID1
with only one disk would propagate read errors to the RAID5 above -  
so that
the RAID5 is be able to rewrite this sector - or simply fail the single
drive left.

Best regards
Ralf Mueller

-- 
Van Roy's Law: -------------------------------------------------------
        An unbreakable toy is useful for breaking other toys.



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

end of thread, other threads:[~2007-03-08 14:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05 10:55 Replace drive in RAID5 without losing redundancy? Ralf Müller
2007-03-05 22:29 ` Neil Brown
2007-03-06  7:37   ` dean gaudet
2007-03-06 12:02     ` Ralf Müller
2007-03-07 15:14   ` Bill Davidsen
2007-03-08 14:56     ` Ralf Müller
  -- strict thread matches above, loose matches on Subject: below --
2007-03-06  9:18 Ralf Müller

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