Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2007 01:14:57 -0700
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "Grant Peel" <gpeel@thenetnow.com>, <freebsd-questions@freebsd.org>
Subject:   RE: camcontrol
Message-ID:  <BMEDLGAENEKCJFGODFOCKEBACAAA.tedm@toybox.placo.com>
In-Reply-To: <005101c7942f$ad805130$6501a8c0@GRANT>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Grant Peel
> Sent: Friday, May 11, 2007 5:51 PM
> To: freebsd-questions@freebsd.org
> Subject: Re: camcontrol
> 
> 
> I have already set camcontrol to tell the system to stop using 
> that part of the drive per the FAQ and Handbook:
> 
> AWRE (Auto Write Reallocation Enbld):  1
> ARRE (Auto Read Reallocation Enbld):  1
> But, it still tries to read the block in question (3abd5c1).

Then you are screwed.  The drive is using some sort of remapping and
the actual block with the problem is somewhere else.

> It 
> is always that same block, so the badness does not seem to be 
> growing.Is there a way to diagnose what file it is trying to 
> read? (perhaps I could remove that inode?)

No and no.

What you need to do is backup the disk, then boot into MS-DOS and
run the disk drive manufacturer's software that forces the SCSI disk
to update it's bad sector list and remap the bad block.

A modern SCSI disk should NEVER show an error because it is always
silently remapping bad sectors.

All disks lose a sector now and then, that is why they have spare
sectors and a bad sector list.  You will never see a report of a bad
sector until the day comes that the disk has had so many sectors
fail that it's used up it's spare sectors.

Years ago there were some disks that while they had this capability
it was disabled by default - I have no idea why - and when a bad sector
did develop the disk would report it until you sent the device a
scsi format command, then the remapping would happen.

There are some disk programs on the Internet that can do this as
well.

Ted




-Grant----- Original 
> Message ----- 
>   From: Lowell Gilbert 
>   To: Grant Peel 
>   Cc: freebsd-questions@freebsd.org 
>   Sent: Friday, May 11, 2007 10:51 AM
>   Subject: Re: camcontrol
> 
> 
>   "Grant Peel" <gpeel@thenetnow.com> writes:
> 
>   > I have a disk that may be going bad, SCSI.
>   >
>   > How do I tell camcontrol to stop using parts of the disk that 
> show errors?
>   >
>   > such as:
>   >
>   > (da0:ahc0:0:1:0): READ(10). CDB: 28 0 3 ab d5 c1 0 0 e 0 
>   > (da0:ahc0:0:1:0): MEDIUM ERROR info:3abd5c1 asc:11,1
>   > (da0:ahc0:0:1:0): Read retries exhausted sks:80,3f
> 
>   Please see the FAQ entry on this topic.
>   _______________________________________________
>   freebsd-questions@freebsd.org mailing list
>   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>   To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
> 
> ------------------------------------------------------------------
> ------------
>         Total Control Panel  Login  
>         To: gpeel@thenetnow.com  Block messages from this sender 
> (blacklist)  
>         From: owner-freebsd-questions@freebsd.org  Remove this 
> sender from my whitelist  
>           
>         You received this message because the sender is on your 
> whitelist.  
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BMEDLGAENEKCJFGODFOCKEBACAAA.tedm>