故障磁盘已更换但在 RAID 1 中不可见

故障磁盘已更换但在 RAID 1 中不可见

我有一台名为 Netgear Stora 的旧 NAS。它有两个 SSD 驱动器,组成 RAID1。不幸的是,其中一个驱动器的盖子上开始亮起红灯,似乎有故障(有时还会发出很大的噪音)。我移除了磁盘并将其替换为新磁盘。我对它进行了分区并用 进行格式化xfs。但似乎它没有开始与其他驱动器同步。

它看起来是这样的:

-bash-3.2$ sudo mdadm --detail /dev/md0
/dev/md0:
        Version : 01.00.03
  Creation Time : Mon Feb  9 21:34:51 2015
     Raid Level : raid1
     Array Size : 2930266412 (2794.52 GiB 3000.59 GB)
  Used Dev Size : 5860532824
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Jan 22 17:01:08 2024
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           Name : 0
           UUID : 08b6f7f1:b7f81bac:754a1ac8:b18cb525
         Events : 68774

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

我尝试添加它但得到:

-bash-3.2$ sudo mdadm --manage /dev/md0 --add /dev/sdb1
mdadm: Cannot open /dev/sdb1: Device or resource busy

与我尝试停止阵列相同:

-bash-3.2$ sudo mdadm --stop /dev/md0
mdadm: fail to stop array /dev/md0: Device or resource busy

同步处于空闲状态:

-bash-3.2$ cat /sys/block/md0/md/sync_action
idle

日志来自dmesg

-bash-3.2$ grep md /var/log/dmesg
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
md: md0 stopped.
md: bind<sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
XFS mounting filesystem md0
Starting XFS recovery on filesystem: md0 (logdev: internal)
Ending XFS recovery on filesystem: md0 (logdev: internal)

为什么此磁盘未同步?我下一步该怎么做?

相关内容