gmirror - recovering from a failed HDD

2009-05-13 15:32:33来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


I like RAID. On my development server, I use both hardware and software RAID. For hardware RAID on
[url=javascript:;]FreeBSD[/url]
, I like 3Ware. For software RAID, I tend to use
[url=javascript:;]gmirror[/url]
, because I don't need more than RAID-1.
Some time ago I added two 120GB HDD to this system. One was SATA, one was PATA. They were joined together via gmirror. Tonight I received some errors that one of the drives was failing. I replaced the drive, and recovered the mirror. I'll show you what I did, mostly so I know what to do the next time it happens, but also so you can see what to do as well.
You may wish to read
Adding gmirror to an existing installation
first.
The errors
The errors I encountered were (reformatted to better fit):Aug 30 00:10:20 ngaio
[url=javascript:;]kernel[/url]
: ad0: FAILURE - READ_DMA status=51
                              error=40 LBA=82797535
Aug 30 00:10:20 ngaio kernel: GEOM_MIRROR: Request failed (error=5). ad0
                              [READ(offset=42392337920, length=2048)]
Aug 30 00:10:20 ngaio kernel: GEOM_MIRROR: Device gm0: provider ad0 disconnected.
The following command identified the HDD in question:# atacontrol list
ATA channel 0:
    Master:  ad0  ATA/ATAPI revision 7By 'identified', I mean I knew which HDD to look for. There was only one Samsung in the machine.
Checking the gmirror status I saw:# gmirror status
      Name    Status  Components
mirror/gm0  DEGRADED  ad3
In addition, I installed
sysutils/smartmontools
and got the following output:
# /usr/local/sbin/smartctl -a /dev/ad0
smartctl version 5.38 [i386-portbld-freebsd6.3] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint P80 series
Device Model:     SAMSUNG SP1203N
Serial Number:    S00QJ10Y282854
Firmware Version: TL100-30
User Capacity:    120,060,444,672 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 0
Local Time is:    Sat Aug 30 01:32:29 2008 BST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Adding gmirror to an existing installation

下一篇:Syslog的格式说明