atom feed30 messages in org.freebsd.freebsd-currentRe: A tool for remapping bad sectors ...
FromSent OnAttachments
Eugeny N DzhurinskyMar 8, 2010 2:26 am 
Alexander MotinMar 8, 2010 2:31 am 
Eugene DzhurinskyMar 8, 2010 2:52 am 
Eugene DzhurinskyMar 8, 2010 2:54 am 
Eugene DzhurinskyMar 8, 2010 3:08 am 
Miroslav LachmanMar 8, 2010 3:21 am 
Wes MorganMar 8, 2010 3:46 am 
Eugene DzhurinskyMar 8, 2010 3:50 am 
Miroslav LachmanMar 8, 2010 5:28 am 
Alex KedaMar 8, 2010 12:14 pm 
Ulrich SpörleinMar 11, 2010 5:47 am 
Dag-Erling SmørgravMar 11, 2010 7:20 am 
Svein Skogen (Listmail Account)Mar 11, 2010 7:23 am 
Miroslav LachmanMar 13, 2010 12:44 pm 
Dag-Erling SmørgravMar 13, 2010 1:24 pm 
Miroslav LachmanMar 14, 2010 1:54 am 
Gary JennejohnMar 14, 2010 4:38 am 
Miroslav LachmanMar 14, 2010 9:18 am 
Gary JennejohnMar 14, 2010 10:47 am 
Dag-Erling SmørgravMar 17, 2010 3:58 am 
Miroslav LachmanMar 17, 2010 4:35 am 
Miroslav LachmanMar 17, 2010 4:41 am 
Dag-Erling SmørgravMar 17, 2010 4:59 am 
Gary JennejohnMar 17, 2010 5:05 am 
Miroslav LachmanMar 18, 2010 3:29 am 
Miroslav LachmanMar 18, 2010 3:32 am 
Dag-Erling SmørgravMar 18, 2010 4:10 am 
Pieter de GoejeMar 18, 2010 4:33 am 
Miroslav LachmanMar 18, 2010 4:45 am 
Dag-Erling SmørgravMar 18, 2010 5:17 am 
Subject:Re: A tool for remapping bad sectors in CURRENT?
From:Eugene Dzhurinsky (bo@redwerk.com)
Date:Mar 8, 2010 3:50:26 am
List:org.freebsd.freebsd-current

On Mon, Mar 08, 2010 at 12:21:44PM +0100, Miroslav Lachman wrote:

Eugeny N Dzhurinsky wrote: We have this problem from time to time on bunch of machines. As we are using gmirror, the easiest way is to force re-synchronization (rewrite) of the whole drive. The problem is when there are Pending unreadable sectors on both drives - it ends up with read error and some file(s) are corrupted, but there is no easy way (on FreeBSD) to find what file.

I tried it in the past with fsdb / findblk, but it does not work as I expect or I do not fully understand the needed calculations with slices + partitions offsets / LBAs and right meaning of the term "block". It seems there are several meaning in different contexts.

It would be nice if somebody with enough FS / GEOM knowledge can write some HowTo or shell script to do the calculations and operations to find file containing bad sector(s) and put it in FAQ, Handbook, or Wiki.

Miroslav, thank you for the suggestion - but I am not using gmirror, that HDD is the one on my laptop. However suggestions about using dd to write something into bad block to force IDE controller do it's service stuff about remapping seems did the trick. And I was able to not calculate LBA but use it as block offset, which seemed to be correct way :)