Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Re: bad blocks on disk
  2000-10-24  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2000-10-24  4:00   ` Gulnara Ajupova
  0 siblings, 0 replies; 3+ messages in thread
From: Gulnara Ajupova @ 2000-10-24  4:00 UTC (permalink / raw)


"Alan Rollow - Dr. File System's Home for Wayward Inodes." wrote:
> 
> In article <39F59CEE.F2CA6374@cyclotronmail.tamu.edu>, Gulnara Ajupova <gulnara@cyclotronmail.tamu.edu> writes:
> >
> >Would someone know (and share the knowledge) how to remap bad blocks on
> >the disk?
> >
> >I have had the SCSI disk crash  (/users) on a DECstation 5000/200
> >running Ultrix.
> 
> What version of ULTRIX.  Later versions (V4.3A and there-abouts)
> support scu(8), which allows access to the SCSI Reassign Block
> command with its "reassign lba" command.  On older versions you
> can use rzdisk with the -r option.

I have Ultrix4.4. I ran rzdisk -r block /dev/rrz* and it sounded 
like it failed, but the second attempt showed that the blocks were 
actually replaced. I also did the scanning for bad blocks with the 
same rzdisk utility before I tried to repair them (just to see if 
any more sprang up). And I am doing fsck on it right now. Thanks 
a lot!

> 
> If the driver had managed to read a good copy of the data on one
> of its many retries, it would have replaced the block for you
> and written the new block with the good data.  So, wherever the
> block is, it has corrupt data.  If fsck(8) is noticing the
> blocks then they're at least in the file system metadata space;
> cylinder group blocks, inodes, etc.  Fsck(8) doesn't read user
> data.
> 
> Once you fix those blocks, you'll need to run fsck again and
> see what's broken, note the files affected and use other tools
> to determine the full extent of the damage.  Some files may
> be lost, others may simply end up being misplaced (in lost+found).
> 
> You'll also want to scan for more bad blocks in the file data
> area.  Both scu(8) and rzdisk(8) have this feature.  If the
> disk isn't getting any better, then you may not be able to
> fix the blocks faster than new ones go bad.  If that's the
> case see if the conv=noerror option of dd(1) will let you
> skip over bad blocks.
> 
> 
> >Please help!
> >--
> > Gulnara Ajupova
> >-----------------------------------------------------------------------------
> >  gulnara@cyclotronmail.tamu.edu // Phone (979) 845-1411 // Fax (979)
> >845-1899
> >
> >3366 Cyclotron Institute, Texas A&M University, College Station, TX
> >77843-3366
> >-----------------------------------------------------------------------------
> >
> --
> Alan Rollow                             alan@nabeth.cxo.dec.com

-- 
 Gulnara Ajupova
-----------------------------------------------------------------------------
  gulnara@cyclotronmail.tamu.edu // Phone (979) 845-1411 // Fax (979)
845-1899 

3366 Cyclotron Institute, Texas A&M University, College Station, TX
77843-3366
-----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* bad blocks on disk
@ 2000-10-24  4:00 Gulnara Ajupova
  2000-10-24  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 3+ messages in thread
From: Gulnara Ajupova @ 2000-10-24  4:00 UTC (permalink / raw)



Would someone know (and share the knowledge) how to remap bad blocks on
the disk? 

I have had the SCSI disk crash  (/users) on a DECstation 5000/200
running Ultrix. It started giving I/O errors and doing fsck on the disk
fixed some of the problems. Two bad blocks ("cannot read" and "cannot
write" error) remain. I understand that the straightforward way is to
newfs, and restore from backup, but I neglected to do backups on this
disk... I have run dd on it and of course it exited with "I/O error".

Please help!
-- 
 Gulnara Ajupova
-----------------------------------------------------------------------------
  gulnara@cyclotronmail.tamu.edu // Phone (979) 845-1411 // Fax (979)
845-1899 

3366 Cyclotron Institute, Texas A&M University, College Station, TX
77843-3366
-----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bad blocks on disk
  2000-10-24  4:00 bad blocks on disk Gulnara Ajupova
@ 2000-10-24  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2000-10-24  4:00   ` Gulnara Ajupova
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-10-24  4:00 UTC (permalink / raw)



In article <39F59CEE.F2CA6374@cyclotronmail.tamu.edu>, Gulnara Ajupova <gulnara@cyclotronmail.tamu.edu> writes:
>
>Would someone know (and share the knowledge) how to remap bad blocks on
>the disk? 
>
>I have had the SCSI disk crash  (/users) on a DECstation 5000/200
>running Ultrix.

What version of ULTRIX.  Later versions (V4.3A and there-abouts)
support scu(8), which allows access to the SCSI Reassign Block
command with its "reassign lba" command.  On older versions you
can use rzdisk with the -r option.

If the driver had managed to read a good copy of the data on one
of its many retries, it would have replaced the block for you
and written the new block with the good data.  So, wherever the
block is, it has corrupt data.  If fsck(8) is noticing the
blocks then they're at least in the file system metadata space;
cylinder group blocks, inodes, etc.  Fsck(8) doesn't read user
data.

Once you fix those blocks, you'll need to run fsck again and
see what's broken, note the files affected and use other tools
to determine the full extent of the damage.  Some files may
be lost, others may simply end up being misplaced (in lost+found).

You'll also want to scan for more bad blocks in the file data
area.  Both scu(8) and rzdisk(8) have this feature.  If the
disk isn't getting any better, then you may not be able to
fix the blocks faster than new ones go bad.  If that's the
case see if the conv=noerror option of dd(1) will let you
skip over bad blocks.
 

>Please help!
>-- 
> Gulnara Ajupova
>-----------------------------------------------------------------------------
>  gulnara@cyclotronmail.tamu.edu // Phone (979) 845-1411 // Fax (979)
>845-1899 
>
>3366 Cyclotron Institute, Texas A&M University, College Station, TX
>77843-3366
>-----------------------------------------------------------------------------
>
--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-10-24  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-24  4:00 bad blocks on disk Gulnara Ajupova
2000-10-24  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-10-24  4:00   ` Gulnara Ajupova

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