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:Miroslav Lachman (000.@quip.cz)
Date:Mar 18, 2010 3:29:04 am
List:org.freebsd.freebsd-current

Dag-Erling Smørgrav wrote:

Miroslav Lachman<000.@quip.cz> writes:

Dag-Erling Smørgrav<de@des.no> writes:

Uh, 79725167 - 63 = 79725104 and 79725104 - 39845888 = 39879216. How did you arrive at 39879105?

I am sorry, it was my confusion. My calculation was for *LBA=79725056* reported in messages:

ad4: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE>
LBA=79725056

off-by-111...

Are you sure 'smartctl -l error' reports only one error?

There is really only one error. The example from my e-mail is half a year old, but the disk is running fine from this time. The error occured at the initial gmirror sync. No more errors shown after rewriting the disk with zeros.

As you can see, there are really two different numbers LBA=79725056 in messages and LBA = 0x04c0826f = 79725167 in SMART log.

root@edith ~/# zcat /var/log/messages.3.bz2 | grep LBA

Sep 23 23:58:00 edith kernel: ad4: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=79725056

-----------------------------

root@edith ~/# smartctl -l error /dev/ad4

smartctl version 5.38 [amd64-portbld-freebsd7.2] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION === SMART Error Log Version: 1 ATA Error Count: 1 CR = Command Register [HEX] FR = Features Register [HEX] SC = Sector Count Register [HEX] SN = Sector Number Register [HEX] CL = Cylinder Low Register [HEX] CH = Cylinder High Register [HEX] DH = Device/Head Register [HEX] DC = Device Command Register [HEX] ER = Error register [HEX] ST = Status register [HEX] Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes, SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 0 hours (0 days + 0 hours) When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 00 6f 82 c0 44 Error: UNC at LBA = 0x04c0826f = 79725167

Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 00 00 82 c0 44 00 25d+23:23:36.710 READ DMA c8 00 00 00 81 c0 44 00 25d+23:23:36.710 READ DMA c8 00 00 00 80 c0 44 00 25d+23:23:36.710 READ DMA c8 00 00 00 7f c0 44 00 25d+23:23:36.710 READ DMA c8 00 00 00 7e c0 44 00 25d+23:23:36.710 READ DMA