From: Michael <michael@rw23.de>
To: Keld Simonsen <keld@keldix.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Map Block number from hdd to md
Date: Wed, 17 Feb 2010 09:43:02 +0100 [thread overview]
Message-ID: <2d64e86876640084dedbcf93a7b9cc9a@rw23.de> (raw)
In-Reply-To: <20100217033438.GA8228@rap.rap.dk>
On Wed, 17 Feb 2010 05:34:38 +0200, Keld Simonsen <keld@keldix.com> wrote:
> On Tue, Feb 16, 2010 at 11:57:00AM +0100, Michael wrote:
>> Hi Keld,
>>
>> if you do a smartctl -A on /dev/sdX you sould see something under
>> Current_Pending_Sector and Offline_Uncorrectable.
>> Your hard drive replaces the bad blocks with spare blocks as far as you
>> are write something to them.
>>
>> i have solved the resync issue by using
>> dd if=/dev/zero of=/dev/sdX bs=512 seek=<bad-block-number> count=1
>>
>> you can test the block number to be really bad by
>> dd if=/dev/sdX of=/dev/null bs=512 skip=<bad-block-number> count=1
>> if that command causes a input/output error, the block is bad.
>
> Yes, that cleared some errors, but unfortunately not all.
> That is one divice had 72bad blocks beforehand, and 44 afterwaeds, and
> the other had 9 beforehand, and 5 after.
>
> The second dd command actuallly did not report any bad blocks, but a
> selective badblocks command did.
strange. if the 2nd command is working, you can recover the data and write
it back. i have heard about bad blocks that are "sometimes" bad, and other
times not. iam not sure.
>
> Anyway, is there something about Samsung disks not having spare blocks
> for this?
Model Family: SAMSUNG SpinPoint F1 DT series
Device Model: SAMSUNG HD103UJ
that's my disk, and it has spare blocks.
check smartctl -A /dev/sdX for Current_Pending_Sector and
Offline_Uncorrectable
> yes, I still would like to find the inode in the raid file system from
> the bad block on a physical disk.
yeah, me to.
next prev parent reply other threads:[~2010-02-17 8:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-12 0:24 Map Block number from hdd to md Michael
2010-02-16 1:20 ` Neil Brown
2010-02-16 4:02 ` Keld Simonsen
2010-02-16 4:38 ` Keld Simonsen
2010-02-16 10:57 ` Michael
2010-02-17 3:34 ` Keld Simonsen
2010-02-17 8:43 ` Michael [this message]
2010-02-16 11:14 ` Michael
2010-02-17 23:47 ` Neil Brown
2010-02-18 4:12 ` Keld Simonsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d64e86876640084dedbcf93a7b9cc9a@rw23.de \
--to=michael@rw23.de \
--cc=keld@keldix.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).