Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] hp H222 SAS controller
Date: Tue, 09 Jul 2013 23:58:19
Message-Id: CAEH5T2MgPVsGHW5VQB-1FDMdZC9pQ7sfK6ERBiiDrRa9JjDLeg@mail.gmail.com
In Reply to: Re: [gentoo-user] hp H222 SAS controller by "Stefan G. Weichinger"
1 On Mon, Jul 8, 2013 at 1:27 PM, Stefan G. Weichinger <lists@×××××.at> wrote:
2 > Does it make sense to apply some sort of burn-in-procedure before
3 > actually formatting and using the disks? Running badblocks or something?
4 >
5 > I ask because I wait for that shiny new server and doing so might not
6 > hurt before installing gentoo. Or is that too paranoid and a waste of time?
7
8 Initially I ran the SMART long test and it found no errors. Then I did
9 badblocks read-only scan and it found some bad sectors. After that,
10 SMART tests failed to complete due to "failure reading LBA xxxxxxxxx".
11 I used hdparm to remap those sectors, but didn't feel entirely
12 confident in the disk at that point in time.
13
14 So I ran the badblocks destructive read-write test and it completed
15 (after a couple days) with zero errors! How can it be?
16
17 Checking the SMART statistics afterward, I can see now there are
18 dozens of newly reallocated sectors. So that means the drive silently
19 replaced those bad sectors with spares, which is good! That is what it
20 is supposed to do! I don't feel happy about the fact that those bad
21 sectors exist in the first place, but the drive did what it was
22 designed to do when it encountered them.
23
24 After the r/w badblocks test cycle finished, I ran SMART long-scan
25 again and this time it completed with no errors.
26
27 So I recommend to do the destructive read-write badblocks test, if you
28 can afford the hours (or days) spent waiting for it to complete.
29
30 SMART alone did not detect the errors initially, but neither did
31 badblocks actually identify the errors during its write test (because
32 the drive hides it). But the combination of badblocks and the
33 self-repairing code in the drive's firmware accomplished the goal of
34 making my disk free of errors (logically).
35
36 Notes:
37
38 WARNING! Be careful to give the correct device name when doing the
39 badblocks write test! There is no confirmation prompt! It immediately
40 starts destroying data at the beginning of the disk.
41
42 If you have a disk with 4k sector size, be sure to tell badblocks to
43 use a 4096 byte block size. It uses 1k block size by default, which
44 can cause the test to be very slow! In my system badblocks with 1k
45 block size read at 15MB/sec, while 4k block size read at over
46 160MB/sec! Using 1k block size on a 4k-sector disk also causes all
47 errors to be reported 4 times each.
48
49 Good luck :)

Replies

Subject Author
Re: [gentoo-user] hp H222 SAS controller "Stefan G. Weichinger" <lists@×××××.at>