Re: Replacing a drive in RAID 0

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

 



On Tue, 3 Aug 2010 07:22:01 +0200 (CEST)
Mikael Abrahamsson <swmike@xxxxxxxxx> wrote:

> On Mon, 2 Aug 2010, Ben Nemec wrote:
> 
> > enough to do that, of course).  Can I just dd the entire drive over and
> > replace the bad drive?  Can the md tools do it somehow?  Maybe it's
> 
> Yes, you can binary copy the drive like that, that's what I usually do.

Of course you need to be sure that the old and new devices are exactly the
same size.  Normally they will but it is worth double checking that the
number of sectors (blockdev --getsize) is exactly the same.

NeilBrown

> 
> Use dd_rescue (or ddrescue, they are two different utils) instead of dd in 
> case you have any bad blocks.
> 

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