linux – mdadm:热删除失败…

前端之家收集整理的这篇文章主要介绍了linux – mdadm:热删除失败…前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的RAID1降级了,我需要替换/ dev / sdb.但是,我可以将/ dev / sdb5(在/ dev / md1中)标记为失败并将其删除,但我不能对/ dev / sdb1(安装在/上的/ dev / md0)执行相同的操作:
root@kes:~# mdadm /dev/md0 --fail /dev/sdb1
mdadm: set /dev/sdb1 faulty in /dev/md0

root@kes:~# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90
  Creation Time : Wed Apr  7 03:00:39 2010
     Raid Level : raid1
     Array Size : 975185536 (930.01 GiB 998.59 GB)
  Used Dev Size : 975185536 (930.01 GiB 998.59 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Feb 13 12:27:41 2012
          State : active,degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 1
  Spare Devices : 0

           UUID : cdc01e79:774eba08:ade2cb46:d0df0469 (local to host kes)
         Events : 0.67569047

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       2       8       17        1      faulty spare rebuilding   /dev/sdb1

root@kes:~# mdadm /dev/md0 --remove /dev/sdb1
mdadm: hot remove Failed for /dev/sdb1: Device or resource busy

那么我做错了什么?

解决方法

尝试:
echo "idle" > /sys/block/md0/md/sync_action
mdadm /dev/md0 --remove /dev/sdb1

为我工作.

原文链接:https://www.f2er.com/linux/399311.html

猜你在找的Linux相关文章