Re: Replace drive in RAID5 without losing redundancy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday March 5, ralf@xxxxxxxx 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.
You can get nearly all the way there by:

  - add an internal bitmap.
  - fail one drive
  - --build a raid1 with that drive (and the other missing)
  - re-add the raid1 into the raid5
  - add the new drive to the raid1
  - wait for resync

This has just a very tiny window when the array is degraded.  The
bitmap allows the re-added drive to be resynced very quickly.
The next step should be:
  - fail out the raid1
  - 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.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux