Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] smartctrl drive error @60%
Date: Wed, 25 Jun 2014 14:03:39
Message-Id: CAGfcS_=8Wob9DWAPH-pzX-PRjpEuQab6sXO1n3=v0ScANwiaqg@mail.gmail.com
In Reply to: Re: [gentoo-user] smartctrl drive error @60% by Dale
1 On Wed, Jun 25, 2014 at 9:15 AM, Dale <rdalek1967@×××××.com> wrote:
2 > thegeezer wrote:
3 >> On 06/25/2014 08:49 AM, Dale wrote:
4
5 >>> thegeezer wrote:
6
7 >> this says there are 104 pending sectors i.e. bad blocks on the drive
8 >> that have not been reallocatd yet
9 >
10 > Wonder why it hasn't? Isn't it supposed to do that sort of thing itself?
11 >
12
13 It can't relocate the sectors until it successfully reads them, or
14 until something else writes over them.
15
16 However, the last few drives I've had this happen to never really
17 relocated things. If I scrubbed the drives mdadm would overwrite the
18 unreadable sectors, which should trigger a relocation, but then a day
19 or two later the errors would show up again. So, the drive firmware
20 must be avoiding relocation or something. Either that or there is a
21 large region of the drive that is failing (which would make sense) and
22 I was just playing whack-a-mole with the bad sectors. In any case, if
23 the drive is under warranty I've yet to have a complaint returning it
24 with a copy of the smartctl output showing the failed test/etc. With
25 advance replacement I can keep the old drive until the new one
26 arrives.
27
28 > I usually just run the test manually but I sort of had family stuff
29 > going on for the past year, almost a year anyway. Sort of behind on
30 > things although I have been doing my normal updates.
31
32 rc-update add smartd default
33
34 I don't know that I even had to configure it - it is set to email
35 root@localhost when there is a problem. I also run mdadm to monitor
36 raid.
37
38 I don't think anybody makes a monitor for btrfs, though my boot is
39 mirrored across all my btrfs drives using mdadm so a drive failure
40 should be detected in any case. I need to check up on that, though -
41 I'd like an email if something goes wrong with btrfs storage.
42
43 >
44 > I ordered a drive. It should be here tomorrow. In the meantime, I
45 > shutdown and re-seated all the cables, power too. I got the test running
46 > again but results is a few hours off yet. It did pass the short test
47 > tho. I'm not sure that it means much.
48
49 Short test generally doesn't do much - you need the long ones. I'd be
50 shocked if it passed with offline uncorrectable sectors.
51
52 And do check on your warranty. You can migrate all your data to the
53 new drive, and then replace the old one as a backup disk. Either use
54 it with raid, or as an offline backup. If you want to do raid you can
55 set up mdadm with a degraded raid1 so that you can copy your data over
56 from your old drive, and then when it is replaced you just partition
57 the new one, add it to the raid, and watch it rebuild automatically.
58
59 Rich

Replies

Subject Author
Re: [gentoo-user] smartctrl drive error @60% Dale <rdalek1967@×××××.com>
Re: [gentoo-user] smartctrl drive error @60% Douglas J Hunley <doug.hunley@×××××.com>
Re: [gentoo-user] smartctrl drive error @60% Dale <rdalek1967@×××××.com>