mdadm raid 出现问题(可能已过时)并尝试将 raid6 挂载为 raid1

mdadm raid 出现问题(可能已过时)并尝试将 raid6 挂载为 raid1

发生了一些未知的硬件问题,看起来似乎导致所有 4 个硬盘驱动器脱机。扭动一些电线和硬盘又回来了(???)。现在遇到了袭击问题。

突袭不会开始

“/dev/md/1 由 3 个驱动器组装而成 - 不足以在不干净的情况下启动阵列”

但令人不安的是,当它是 raid 6 时,它似乎将其视为 raid 1。 4 个驱动器的 raid 6 阵列应该可以使用一个。

关于在保留数据的同时尝试再次进行此操作有什么建议吗?首先有任何非破坏性的选择吗?在我弄清楚为什么它似乎相信它的突袭1之前,我犹豫是否要强制执行。

         mdadm --examine /dev/sd[dcba]3 | egrep 'Event|/dev'
        /dev/sda3:
                 Events : 395
        /dev/sdb3:
                 Events : 318
        /dev/sdc3:
                 Events : 396
        /dev/sdd3:
                 Events : 396
    
    So not that out of sync right?
    
    mdadm --assemble --scan -o -u 69d7ed4a:8bbcae7b:7fddfd36:6f1fcf16  -v
    mdadm: /dev/sdd3 is identified as a member of /dev/md/1, slot 1.
    mdadm: /dev/sdc3 is identified as a member of /dev/md/1, slot 2.
    mdadm: /dev/sdb3 is identified as a member of /dev/md/1, slot 3.
    mdadm: /dev/sda3 is identified as a member of /dev/md/1, slot 0.
    mdadm: added /dev/sda3 to /dev/md/1 as 0
    mdadm: added /dev/sdc3 to /dev/md/1 as 2
    mdadm: added /dev/sdb3 to /dev/md/1 as 3 (possibly out of date)
    mdadm: added /dev/sdd3 to /dev/md/1 as 1
    mdadm: /dev/md/1 assembled from 3 drives - not enough to start the array while not clean - consider --force.

检查驱动器显示 raid6,并且 sdb3 是唯一不显示丢失驱动器的驱动器。

mdadm --examine /dev/sd[dcba]3
/dev/sda3:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : 69d7ed4a:8bbcae7b:7fddfd36:6f1fcf16
           Name : 1
  Creation Time : Sat Nov 24 17:11:48 2018
     Raid Level : raid6
   Raid Devices : 4

 Avail Dev Size : 15624915112 sectors (7.28 TiB 8.00 TB)
     Array Size : 15624915072 KiB (14.55 TiB 16.00 TB)
  Used Dev Size : 15624915072 sectors (7.28 TiB 8.00 TB)
   Super Offset : 15624915368 sectors
   Unused Space : before=0 sectors, after=296 sectors
          State : clean
    Device UUID : 53fb577d:03e1050b:3ab8b5b3:d5574384

    Update Time : Fri Jun 19 05:45:13 2020
       Checksum : 22c600bb - correct
         Events : 395

         Layout : left-symmetric
     Chunk Size : 64K

   Device Role : Active device 0
   Array State : AAA. ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdb3:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : 69d7ed4a:8bbcae7b:7fddfd36:6f1fcf16
           Name : 1
  Creation Time : Sat Nov 24 17:11:48 2018
     Raid Level : raid6
   Raid Devices : 4

 Avail Dev Size : 15624915112 sectors (7.28 TiB 8.00 TB)
     Array Size : 15624915072 KiB (14.55 TiB 16.00 TB)
  Used Dev Size : 15624915072 sectors (7.28 TiB 8.00 TB)
   Super Offset : 15624915368 sectors
   Unused Space : before=0 sectors, after=296 sectors
          State : clean
    Device UUID : ac920534:e5bc15e4:b2472221:ce16aa24

    Update Time : Fri Jun 19 05:32:52 2020
       Checksum : c05abf36 - correct
         Events : 318

         Layout : left-symmetric
     Chunk Size : 64K

   Device Role : Active device 3
   Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdc3:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : 69d7ed4a:8bbcae7b:7fddfd36:6f1fcf16
           Name : 1
  Creation Time : Sat Nov 24 17:11:48 2018
     Raid Level : raid6
   Raid Devices : 4

 Avail Dev Size : 15624915112 sectors (7.28 TiB 8.00 TB)
     Array Size : 15624915072 KiB (14.55 TiB 16.00 TB)
  Used Dev Size : 15624915072 sectors (7.28 TiB 8.00 TB)
   Super Offset : 15624915368 sectors
   Unused Space : before=0 sectors, after=296 sectors
          State : active
    Device UUID : 665a7028:041ce9d4:45396f7e:e9f45574

    Update Time : Fri Jun 19 05:45:18 2020
       Checksum : 528db8f6 - correct
         Events : 396

         Layout : left-symmetric
     Chunk Size : 64K

   Device Role : Active device 2
   Array State : AAA. ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdd3:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : 69d7ed4a:8bbcae7b:7fddfd36:6f1fcf16
           Name : 1
  Creation Time : Sat Nov 24 17:11:48 2018
     Raid Level : raid6
   Raid Devices : 4

 Avail Dev Size : 15624915112 sectors (7.28 TiB 8.00 TB)
     Array Size : 15624915072 KiB (14.55 TiB 16.00 TB)
  Used Dev Size : 15624915072 sectors (7.28 TiB 8.00 TB)
   Super Offset : 15624915368 sectors
   Unused Space : before=0 sectors, after=296 sectors
          State : active
    Device UUID : 9b1ebb07:6cf51bf4:b6a52bd7:e7beedf9

    Update Time : Fri Jun 19 05:45:18 2020
       Checksum : 2f5f8d02 - correct
         Events : 396

         Layout : left-symmetric
     Chunk Size : 64K

   Device Role : Active device 1
   Array State : AAA. ('A' == active, '.' == missing, 'R' == replacing)

使用 smartctl 检查了所有驱动器,没有发现任何问题。

答案1

我没有看到任何证据表明 mdadm 正在尝试使用 RAID 1。

我所看到的是 mdadm 尝试启动 RAID 6,发现一个磁盘已过期,两个磁盘丢失,并且相当合理地拒绝组装它。

如果您有一个过时的磁盘并且它是 RAID 6,您可能无法依赖此集合中的任何内容。如果您有备份,是时候从备份中恢复了。

相关内容