Docs

Image backups and bad blocks

How a Windows volume image carries on past bad clusters and unreadable blocks, names the files affected, raises one alert with Windows' bad block events folded in, what a restore gives back, and when to replace the disk.

A disk that is starting to fail rarely fails all at once. It loses a few blocks here and there, and a backup that stopped at the first unreadable block would leave the whole volume without a backup exactly when it matters most.

For Windows volume images, Tenvara backs up everything it can read, stores what it cannot as zeros, names the files that lost data, and tells you once.

What the backup does

Bad clusters NTFS already knows about

NTFS keeps a list of clusters it has marked bad (after chkdsk, or after SQL Server or another application moved data off them). The backup never reads those clusters: it reads around them and stores them as zeros, so a restored volume still has them marked bad. Nothing is lost, because NTFS has already moved the data away, so this is only a note on the job: "D: 4 bad clusters skipped, marked bad by NTFS".

Blocks that will not read

When a read fails with a media error, the backup:

  1. Tries the read again three times, a little longer apart each time.
  2. If it still fails, narrows it down to the smallest ranges that will not read, down to a single cluster.
  3. Stores those ranges as zeros, and carries on with the rest of the volume.
  4. After the read, works out which file each range belongs to.

The recovery point is complete and usable, with a warning beside it. A disk failing all over is not read for days: past about a thousand unreadable ranges, or tens of megabytes that will not read, the volume's backup stops and fails with the counts, so the alert tells you the disk may be failing.

Linux and macOS images, and volumes whose file table cannot be read, fail on a read error as they always did.

Where it shows

  • The job ends Finished with warnings, for example "E: 4 unreadable blocks (16 KB) in E:\Data\app.mdf, stored as zeros; 4 bad clusters skipped, marked bad by NTFS; the rest of the volume was backed up". The status stays completed: the point can be restored.
  • The job panel and the device's backup section list each file with unreadable blocks on its own line, with its whole path, how many blocks and how much data, and the bad clusters skipped. Up to five files are named in the summary, then "and in N more files".

The alert

One warning alert per volume, told at once: "E: on SQL-01 has 4 unreadable blocks (16 KB) in E:\Data\app.mdf, stored as zeros in its backup; the rest of the volume was backed up. The disk or its datastore may be failing. Check the host storage, then run chkdsk, and check the file named (restore it from an earlier backup if it is damaged)."

  • The volume's other backup failure alerts are cleared: one problem, one alert.
  • The next night's backup with the same bad blocks counts on the same alert and tells nobody again. New ranges update its message.
  • A backup that reads the volume clean resolves it (bad clusters alone count as clean).
  • A volume that fails as a whole raises the same alert as critical.

Windows' own bad block events

Windows logs event 7 from the disk source ("The device, \Device\Harddisk7\DR7, has a bad block.") when it meets a bad block, and the default Disk errors in the event log check would raise its own alert for it. When those events are only bad blocks on the disk the backup alert already names, the check raises nothing: each event goes on the backup alert's timeline instead ("Windows logged a bad block on disk 7: ..."). Any other disk event (11, 51, 55, 153 or another source), or a bad block on a different disk, raises the check's alert as usual. See Backup alerts and troubleshooting.

What a restore gives back

Restoring the volume, a file or the whole machine gives back everything that was read. The ranges that could not be read come back as zeros:

  • a file named in the warning has zeros where its unreadable blocks were. Restore that file from an earlier recovery point taken before the blocks went bad, if there is one (the browser's time slider shows each point; see Searching and browsing backups);
  • everything else on the volume restores exactly as it was.

For a database file such as an .mdf, check it with the database's own tools after a restore, or restore the database from its own backups. See Application-aware and SQL Server backups.

When to replace the disk

Treat the first unreadable block as the warning it is:

  1. Check the host storage first for a virtual machine (the datastore or the host's disks), or the physical disk's health for a physical machine.
  2. Run chkdsk on the volume so NTFS marks the bad clusters and moves data off them.
  3. Check the files named, and restore any damaged one from an earlier point.
  4. If new ranges appear on later nights, or the count grows, replace the disk. Use the latest backup to restore onto the new disk: see Bare metal recovery.

Tip: Make sure the device has a good second copy and a recent passing boot check before you swap a failing disk. See Test restores, boot checks and malware scans.

Was this page helpful?

Thanks for the feedback.