Re: RAID 1 | Changing HDs

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

 



On Wed, 3 Sep 2025 13:55:05 +0200
"Stefanie Leisestreichler (Febas)" <stefanie.leisestreichler@xxxxxxxxxxxxxx>
wrote:

> Hi.
> I have the system layout shown below.
> 
> To avoid data loss, I want to change HDs which have about 46508 hours of 
> up time.

Do you have a free drive bay and connector in your computer (or just the
connector)?

If so, the safest would be to connect all three drives, and then:

  mdadm --add (new drive)
  mdadm --grow -n3 (array)
  mdadm --fail --remove (old drive).
  mdadm --grow -n2 (array)

> I thought, instead of degrading, formatting, rebuilding and so on, I could
> - shutdown the computer
> - take i.e. /dev/sda and do
> - dd bs=98304 conv=sync,noerror if=/dev/sda of=/dev/sdX (X standig for 
> device name of new disk)

Very peculiar dd line you give as an example here.

  - calculator tells us 98304 is 96K, but why? Usually one would just use "1M"
    or the like here for performance reasons, and shorter to remember and type.

  - noerror is "continue after read errors", but do you want it to? I don't
    think the regular dd has the logic to pad output to an exact amount
    of unreadable data on input errors, and if not, then the result is useless.

    If you expect input to have read errors, "ddrescue" should be used.

But that's all beside the point as I don't see a reason to rely on offline
migration with dd here either.

-- 
With respect,
Roman




[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