Linux Raid5 故障阵列

Linux Raid5 故障阵列

事实优先:

mdadm --examine /dev/sd[abcd]3 |egrep 'dev|Update|Role|State|Chunk Size'

/dev/sda3:
    Update Time : Thu Jul 19 22:42:40 2012
          State : active
     Chunk Size : 64K
      Number   Major   Minor   RaidDevice State
this     0       8        3        0      active sync   /dev/sda3
   0     0       8        3        0      active sync   /dev/sda3
   3     3       8       51        3      active sync   /dev/sdd3
/dev/sdb3:
    Update Time : Thu Jul 19 22:42:07 2012
          State : active
     Chunk Size : 64K
      Number   Major   Minor   RaidDevice State
this     1       8       19        1      active sync   /dev/sdb3
   0     0       8        3        0      active sync   /dev/sda3
   1     1       8       19        1      active sync   /dev/sdb3
   3     3       8       51        3      active sync   /dev/sdd3
/dev/sdc3:
    Update Time : Mon Sep 12 18:12:24 2011
          State : active
     Chunk Size : 64K
      Number   Major   Minor   RaidDevice State
this     2       8       35        2      active sync   /dev/sdc3
   0     0       8        3        0      active sync   /dev/sda3
   1     1       8       19        1      active sync   /dev/sdb3
   2     2       8       35        2      active sync   /dev/sdc3
   3     3       8       51        3      active sync   /dev/sdd3
/dev/sdd3:
    Update Time : Thu Jul 19 22:42:40 2012
          State : active
     Chunk Size : 64K
      Number   Major   Minor   RaidDevice State
this     3       8       51        3      active sync   /dev/sdd3
   0     0       8        3        0      active sync   /dev/sda3
   3     3       8       51        3      active sync   /dev/sdd3
------------------------------------------------------------------
Smartctl says for disk b,c,d PASSED
Disk A is:

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.11
Device Model:     ST31500341AS
Serial Number:    9VS38YXA
LU WWN Device Id: 5 000c50 01a5e61f6
Firmware Version: CC1H
User Capacity:    1,500,301,910,016 bytes [1.50 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:    Fri Jul 20 16:24:39 2012 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.

有人知道如何重建 raid 吗?问题是我们的备份系统有 2 个驱动器发生故障(均在 24 小时内发生),重建系统并重新上传所有数据需要几天时间,因此任何帮助都非常感谢。谢谢!

答案1

也许我遗漏了一些东西,但这看起来像是一个相当直接的磁盘替换。

  • 从阵列中删除 /dev/sda3,
  • 找到序列号为 9VS38YXA 的磁盘并将其从机器中移除
  • 用新磁盘替换
  • 将新磁盘添加到阵列

然后阵列应该开始重建

相关内容