Programming projects

From Linux Raid Wiki
Revision as of 17:43, 12 October 2016 by Anthony Youngman (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Make ddrescue disks safe

If ddrescue fails to copy a disk completely, it's not a good idea to put the copy back into the array, as it will silently corrupt the data. Unfortunately, you may have little choice. However, ddrescue creates a log of sectors it has failed to copy, and hdparm can "corrupt" sectors so that they will return a read error.

https://linux.die.net/man/1/ddrescue

https://linux.die.net/man/8/hdparm

A utility that can read the log from ddrescue and use the --make-bad-sector option of hdparm to flag the bad sectors as "unreadable" would be great. This would mean that the chances of recovering an array with multiple disk failure is much higher - only if there are bad sectors in the same place on multiple original drives will data be lost. The raid code will be able to tell which sectors are bad and be able to recompute them.

  • Extend the resize functionality

Not all raid versions can be updated. In particular, you cannot add disks to a raid10

Personal tools