Debian/Linux 奇怪的 mdraid 状态

Debian/Linux 奇怪的 mdraid 状态

为什么 md1 状态为 UU,md0 状态为 U_,而 md2 状态为 _U?

nvme1n1 这里坏了。

我现在可以安全地更换 nvme1n1 吗?

您可以看到 md2 状态,nvme0n1p3 似乎已移除,但 nvme1n1p3 似乎处于活动状态。我如何安全地更换此处损坏的磁盘 nvme1n1?这里发生了什么?

我可以将 /dev/nvme1n1p3 克隆到 /dev/nvme0n1p3 吗?或者我如何简单地重新同步 md2 阵列中的 raid?/dev/nvme0n1p3 有 2 个月前的状态,当前操作系统状态在 /dev/nvme1n1p3 上

编辑:现在我要复制分区:

dd if=/dev/nvme1n1p3 of=/dev/nvme0n1p3

我之后是否应该重建 RAID 还是只能更换有故障的磁盘?

cat /prod/mdstat 输出

Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 nvme0n1p2[0] nvme1n1p2[1]
      523264 blocks super 1.2 [2/2] [UU]

md0 : active raid1 nvme0n1p1[0]
      33520640 blocks super 1.2 [2/1] [U_]

md2 : active raid1 nvme1n1p3[1]
      465894720 blocks super 1.2 [2/1] [_U]
      bitmap: 4/4 pages [16KB], 65536KB chunk

unused devices: <none>

MD 指出:

/dev/md0:
           Version : 1.2
     Creation Time : Sun Mar 15 21:50:14 2020
        Raid Level : raid1
        Array Size : 33520640 (31.97 GiB 34.33 GB)
     Used Dev Size : 33520640 (31.97 GiB 34.33 GB)
      Raid Devices : 2
     Total Devices : 1
       Persistence : Superblock is persistent

       Update Time : Thu Jun 17 14:43:33 2021
             State : clean, degraded
    Active Devices : 1
   Working Devices : 1
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : resync

              Name : rescue:0
              UUID : 41a6fa02:cafe993c:ba95e089:69e1cee9
            Events : 3691713

    Number   Major   Minor   RaidDevice State
       0     259        1        0      active sync   /dev/nvme0n1p1
       -       0        0        1      removed
/dev/md1:
           Version : 1.2
     Creation Time : Sun Mar 15 21:50:15 2020
        Raid Level : raid1
        Array Size : 523264 (511.00 MiB 535.82 MB)
     Used Dev Size : 523264 (511.00 MiB 535.82 MB)
      Raid Devices : 2
     Total Devices : 2
       Persistence : Superblock is persistent

       Update Time : Thu Jun 17 06:26:55 2021
             State : clean
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : resync

              Name : rescue:1
              UUID : 28bb218f:54e5dcee:56f85d57:5c4577ba
            Events : 131

    Number   Major   Minor   RaidDevice State
       0     259        2        0      active sync   /dev/nvme0n1p2
       1     259        6        1      active sync   /dev/nvme1n1p2
/dev/md2:
           Version : 1.2
     Creation Time : Sun Mar 15 21:50:15 2020
        Raid Level : raid1
        Array Size : 465894720 (444.31 GiB 477.08 GB)
     Used Dev Size : 465894720 (444.31 GiB 477.08 GB)
      Raid Devices : 2
     Total Devices : 1
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Thu Jun 17 14:52:09 2021
             State : clean, degraded
    Active Devices : 1
   Working Devices : 1
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : bitmap

              Name : rescue:2
              UUID : 3340d601:90ff36ca:da246d8d:c26b994f
            Events : 46166134

    Number   Major   Minor   RaidDevice State
       -       0        0        0      removed
       1     259        7        1      active sync   /dev/nvme1n1p

/dev/nvme1n1 已损坏:

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
- NVM subsystem reliability has been degraded

SMART/Health Information (NVMe Log 0x02, NSID 0x1)
Critical Warning:                   0x04
Temperature:                        59 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    149%

相关内容