Table of Contents

SnapRAID - Disks - Replace a parity disk

Ensure the array is synced

If the disk is still accessible, first ensure to have a synced array running a sync command:

snapraid sync

Copy the parity file to the new disk

Copy the big parity file to the new disk

A good copy command is ddrescue:

ddrescue /OLD_DISK/parity /NEW_DISK/parity /tmp/copy.log

NOTE: This will copy the parity file from the old to new location, and in case of errors, it will continue copying what can be copied.

  • To retry to copy the problematic sections, just retry the same copy command.

Having a partial parity file, is still beneficial, as it will still allow to recover data as long it uses the valid part.

  • If the parity file is partially damaged or totally lost, try run the “fix” command to recreate it, but ensure to use the -d option to fix only the interested parity and not the other disks.
    snapraid fix -d PARITY_NAME

Update the configuration file

Configure the new parity location in the configuration file.


Synchronize

Run sync again to make snapraid recognize the new disk.

snapraid sync

NOTE: This command will be almost immediate.