[Top] [All Lists]

Re: Recover a XFS on raid -1 (linear) when one disk is broken

To: Chris Wedgwood <cw@xxxxxxxx>
Subject: Re: Recover a XFS on raid -1 (linear) when one disk is broken
From: "Net Llama!" <netllama@xxxxxxxxxxxxx>
Date: Sat, 31 Jul 2004 09:58:15 -0700
Cc: Jan Banan <b@xxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <20040731091220.GA6158@xxxxxxxxxxxxxxxxxxxxx>
Organization: HAL V
References: <40F6DBC1.6050909@xxxxxxxxxxxx> <20040715205910.GA9948@xxxxxxxxxxxxxxxxxxxxx> <40F9321C.7060403@xxxxxxxxxxxx> <20040717203943.GL20260@xxxxxxxxxxxxxxx> <410ADC0A.6060100@xxxxxxxxxxxx> <20040731054924.GA4748@xxxxxxxxxxxxxxxxxxxxx> <410B4BC3.8000404@xxxxxxxxxxxx> <20040731091220.GA6158@xxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040716
On 07/31/2004 02:12 AM, Chris Wedgwood wrote:
On Sat, Jul 31, 2004 at 09:35:31AM +0200, Jan Banan wrote:

Where do I find those SMART values? (sorry for being stupid)

'smartctl -a /dev/hda' or similar.  smartctl is usually part of of the
smart-suite package.  Looking at a craptop drive here which has been
abused heavily I see:

pain:~# smartctl -a /dev/hda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen


  1 Raw_Read_Error_Rate     0x000d   100   100   050    Pre-fail  Offline      
-       12884901912
  2 Throughput_Performance  0x0005   099   096   050    Pre-fail  Offline      
-       3210
  3 Spin_Up_Time            0x0007   100   100   050    Pre-fail  Always       
-       0
  4 Start_Stop_Count        0x0032   094   094   000    Old_age   Always       
-       6591
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       
-       7


The last line show says 7 sectors have been reallocated.  I did this
deliberately when I got some read errors by noting the location of the
errors (so I could determine which file(s) were affected) and then
writing data over those blocks to force the drive to reallocate.

It's not a perfect solution but it was quick and easy to do and I
don't have to get another craptop drive (assuming things don't get
significantly worse).

Out of sheer curiosity, what kind of 'craptop' drive is this?

L. Friedman                                    netllama@xxxxxxxxxxxxx
Linux Step-by-step & TyGeMo:                    http://netllama.ipfox.com

 09:55:00 up 40 days, 20:39,  2 users,  load average: 0.04, 0.10, 0.08

<Prev in Thread] Current Thread [Next in Thread>