RAID1 错误,但似乎找不到错误在哪里?

RAID1 错误,但似乎找不到错误在哪里?

我无法确定问题出在哪里。我看到我的两个驱动器...我移除了一个故障驱动器并安装了一个空驱动器。我以为我把它添加到了 raid 中,但它说它正在重建。

joshua@tree-nas:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : active raid1 sdc[2](S) sdb[0]
      1953513424 blocks super 1.2 [2/1] [U_]

unused devices: <none>



joshua@tree-nas:~$ sudo mdadm --examine /dev/sdc
/dev/sdc:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 40b712ad:e014e9fb:db87b836:e4b78943
           Name : tree-nas2:STORE
  Creation Time : Fri Aug 23 07:04:04 2013
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 3907027120 (1863.02 GiB 2000.40 GB)
     Array Size : 1953513424 (1863.02 GiB 2000.40 GB)
  Used Dev Size : 3907026848 (1863.02 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 26e9cad3:049f0638:7401a39a:f81da93d

    Update Time : Fri Mar 27 05:02:02 2015
       Checksum : 56132f6a - correct
         Events : 22632


   Device Role : spare
   Array State : A. ('A' == active, '.' == missing)
joshua@tree-nas:~$ sudo mdadm --examine /dev/sdb
/dev/sdb:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 40b712ad:e014e9fb:db87b836:e4b78943
           Name : tree-nas2:STORE
  Creation Time : Fri Aug 23 07:04:04 2013
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 3907027120 (1863.02 GiB 2000.40 GB)
     Array Size : 1953513424 (1863.02 GiB 2000.40 GB)
  Used Dev Size : 3907026848 (1863.02 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : d999fb65:e8c350d9:873eeb53:b33e27b6

    Update Time : Fri Mar 27 05:02:02 2015
       Checksum : bb5462cd - correct
         Events : 22632


   Device Role : Active device 0
   Array State : A. ('A' == active, '.' == missing)

有人能帮我理解这两项检查的结果吗?请原谅我的无知。

我想我需要做的另一件事可能是完全删除旧驱动器......

mdadm --detail /dev/md127 的输出:

joshua@tree-nas:~$ sudo mdadm --detail /dev/md127
/dev/md127:
        Version : 1.2
  Creation Time : Fri Aug 23 07:04:04 2013
     Raid Level : raid1
     Array Size : 1953513424 (1863.02 GiB 2000.40 GB)
  Used Dev Size : 1953513424 (1863.02 GiB 2000.40 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Fri Mar 27 05:02:02 2015
          State : clean, degraded
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

           Name : tree-nas2:STORE
           UUID : 40b712ad:e014e9fb:db87b836:e4b78943
         Events : 22632

    Number   Major   Minor   RaidDevice State
       0       8       16        0      active sync   /dev/sdb
       1       0        0        1      removed

       2       8       32        -      spare   /dev/sdc

答案1

这个问题处理相同的问题,其中指示可能是磁盘上的块错误。很久以前,我在运行 raid1 md 阵列时遇到了同样的问题。同步会在中途停止,内核日志中显示 IO 错误dmesg

相关内容