On Tue Apr 16, 2013 at 06:02:40PM +0800, Robin Dong wrote: > Dear Raid experts, > > I have a soft RAID5 volume and after one disk failed I replaced it with > a new hard-disk. Then the raid5 volume begin to resync with WHOLE new > disk. > There is only 1G data in the RAID5 volume so I think resync whole disk > is not efficient. > Take ZFS for example, when replacing with a new disk, it only resync the > data which are written after the creation of the volume. > > Is there any method to just resync WRITTEN data to new-added-disk ? Or > any developing plan to add this feature? No, because md is a block device it has no knowledge of what data has actually been written to the disk or where it is stored. This means it has to rebuild the entire disk. There are plans to improve this by keeping track of which stripes have been written to, which should help (and will also mean no need for an initial RAID sync). I don't know whether this has progressed beyond the idea stage yet though. The alternative is to use a filesystem which incorporates RAID, hence knows what needs keeping in sync (ZFS, possibly btrfs - I don't know where they're up to with that). Cheers, Robin -- ___ ( ' } | Robin Hill <robin@xxxxxxxxxxxxxxx> | / / ) | Little Jim says .... | // !! | "He fallen in de water !!" |
Attachment:
signature.asc
Description: Digital signature