mdadm 소프트웨어 raid 문제

mdadm 소프트웨어 raid 문제

누군가가 도울 수 있기를 바랍니다! 이전에 소프트웨어 RAID를 사용한 적이 없었는데, 2개의 디스크 RAID 1이 다운그레이드된 것으로 나타났습니다[U_]:

# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda3[0]
      3905836032 blocks super 1.2 [2/1] [U_]
      bitmap: 29/30 pages [116KB], 65536KB chunk

md0 : active raid1 sda2[0]
      1046528 blocks super 1.2 [2/1] [U_]
      bitmap: 1/1 pages [4KB], 65536KB chunk

unused devices: <none>

디스크에 오류가 발생했는지, 무슨 일이 일어났는지 알 수 없습니다. 두 디스크 모두 표시되며 smartctl을 사용하여 제대로 테스트됩니다.

다음은 mdadm --detail 출력입니다.

# mdadm --detail /dev/md0
/dev/md0:
           Version : 1.2
     Creation Time : Mon Sep  9 17:04:24 2019
        Raid Level : raid1
        Array Size : 1046528 (1022.00 MiB 1071.64 MB)
     Used Dev Size : 1046528 (1022.00 MiB 1071.64 MB)
      Raid Devices : 2
     Total Devices : 1
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Tue Sep 10 16:01:36 2019
             State : clean, degraded
    Active Devices : 1
   Working Devices : 1
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : bitmap

              Name : xxx:0  (local to host xxx)
              UUID : 40713c03:b0a45738:aae59e3a:541556fe
            Events : 117

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       -       0        0        1      removed


# mdadm --detail /dev/md1
    /dev/md1:
               Version : 1.2
         Creation Time : Mon Sep  9 17:03:48 2019
            Raid Level : raid1
            Array Size : 3905836032 (3724.90 GiB 3999.58 GB)
         Used Dev Size : 3905836032 (3724.90 GiB 3999.58 GB)
          Raid Devices : 2
         Total Devices : 1
           Persistence : Superblock is persistent

         Intent Bitmap : Internal

           Update Time : Tue Sep 10 16:51:52 2019
                 State : active, degraded
        Active Devices : 1
       Working Devices : 1
        Failed Devices : 0
         Spare Devices : 0

    Consistency Policy : bitmap

                  Name : xxx:1  (local to host xxx)
                  UUID : c76c221f:33fff959:e95e90d6:f350c30b
                Events : 71886

        Number   Major   Minor   RaidDevice State
           0       8        3        0      active sync   /dev/sda3
           -       0        0        1      removed

어레이를 재동기화할 수 있다는 것을 알고 있지만 무엇을 놓치고 있는지조차 확신할 수 없습니다.

어떤 조언이라도 감사드립니다!

--

편집 - Stephens의 제안을 받아들인 후 이제 다음과 같이 보입니다.

예전에 어떤 모습이었는지 볼 수 있으면 도움이 될 것 같아요.

이 명령을 실행하면 다음과 같습니다.

# mdadm --detail /dev/md0

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
# mdadm --detail /dev/md1

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      spare rebuilding   /dev/sdb3

문제가 해결된 것 같습니다 :)

답변1

누락된 것은 두 번째 디스크입니다. 두 MD 장치 모두 파티션을 사용하며 /dev/sda아마도 한 번 다른 장치에 미러링되었을 것입니다.

다른 디스크가 있나요? 아직도 유효합니까?

상황을 파악하고 기존 디스크가 작동하는지 확인하거나 교체(그리고 파티션을 다시 생성)한 후에는 다음을 사용해야 합니다.

sudo mdadm --add /dev/md0 /dev/sdb2

그리고

sudo mdadm --add /dev/md1 /dev/sdb3

어레이를 명목상 상태로 되돌립니다.

관련 정보