Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Hard Drive Bad Blocks
Date: 2000/10/23	[thread overview]
Message-ID: <8t1t3q$o9a$1@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 39F462FB.FBA6E7@nospam.guacamole.com


In article <39F462FB.FBA6E7@nospam.guacamole.com>, Marble Head <Marble.Head@nospam.guacamole.com> writes:

>If a hard drive has bad blocks, can Tru64 mark them in the FS, and
>continue to use the drive?  Or does the drive simply need to be
>replaced?

To answer the question asked, wouldn't answer the real question
because you've made an assumption about how it works that doesn't
apply.  Neither UFS nor AdvFS do any management of bad blocks.
They leave that to the drive and underlying driver.  They'll
report bad blocks when they encounter them and react appropriately
(if inconviently).

Most well behaved SCSI drives support a command called "Reassign
Blocks".  In SCSI-2 this is an optional command and not all drives
may support it.  The scu(8) gives access to the command using
"reassign lba".  Most well behaved drives will try fairly extensive
error recovery and if allowed by their firmware options will replace
the block themselves.  The driver will do the same thing they and
if it manages to get a good copy of data, will use the command to
replace the block.

When a good copy of data can't be obtained, the only real choice
is to leave the block bad since the consumers of the block are
the only ones that know how to deal with corrupt data.  As mentioned
before, both UFS and AdvFS will report the block.  Each has tools
that allow finding how the block is used, so you can best determine
how to handle the corruption.  The AdvFS admin. guide (usually on
with the AdvFS Utilities on the Associated Product CDROM), should
discuss how to deal with bad blocks.  For file data is may be a
simple matter of replacing the bad block with scu(8) and restoreing
the file from a backup to write the correct data to whatever block
is allocated for it.

Errors in file system metadata area are harder to deal with, which
is why reading the documentation may be of use.

>

--
Alan Rollow				alan@nabeth.cxo.dec.com




  reply	other threads:[~2000-10-23  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23  4:00 Hard Drive Bad Blocks Marble Head
2000-10-23  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2000-10-23  4:00   ` Marble Head
2000-10-23  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox