gmirror - recovering from a failed HDD
2009-05-13 15:32:33来源:未知 阅读 ()
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash