HAMMER and bad disk sectors
Matthew Dillon
dillon at apollo.backplane.com
Mon Jan 10 20:32:57 PST 2011
:What does HAMMER do about bad sectors? Does it mark them as corrupt, and
:allow system to function normally?
:
:Petr
You will get read errors. EIO for any related files/directories.
It may or may not be able to reallocate them but HAMMER does not keep
a bad-block table. media errors generally mean the media must be
replaced. If the media error occurs in a bad place, like a bitmap or
undo record, the filesystem will be knocked down to read-only mode.
If the media errors prevent you from being able to backup the filesystem
you can use the hammer recover directive to exhaustively locate and copy
the directory tree to another hammer filesystem on different media.
-Matt
Matthew Dillon
<dillon at backplane.com>
More information about the Users
mailing list