지난 3일 밤, USB 컨트롤러 중 하나가 한밤중에 오프라인 상태가 되어 디스크 8개 중 4개가 오프라인 상태가 되었습니다. 처음 두 번은 mdadm -A /dev/md0 -f /dev/sd[hgeflkji]
. 오늘 아침에 시도해봤는데 작동하지 않네요. 어떤 아이디어가 있나요?
[root@dl380g5 ~]# mdadm --examine /dev/sd[efghijkl] |egrep 'Event'
Events : 37261
Events : 37261
Events : 37261
Events : 37261
Events : 37249
Events : 37248
Events : 37249
Events : 37248
[root@dl380g5 ~]# mdadm -A /dev/md0 --force -v /dev/sd[hgeflkji]
mdadm: looking for devices for /dev/md0
mdadm: /dev/sde is identified as a member of /dev/md0, slot 2.
mdadm: /dev/sdf is identified as a member of /dev/md0, slot 3.
mdadm: /dev/sdg is identified as a member of /dev/md0, slot 1.
mdadm: /dev/sdh is identified as a member of /dev/md0, slot 0.
mdadm: /dev/sdi is identified as a member of /dev/md0, slot 7.
mdadm: /dev/sdj is identified as a member of /dev/md0, slot 6.
mdadm: /dev/sdk is identified as a member of /dev/md0, slot 5.
mdadm: /dev/sdl is identified as a member of /dev/md0, slot 4.
mdadm: added /dev/sdg to /dev/md0 as 1
mdadm: added /dev/sde to /dev/md0 as 2
mdadm: added /dev/sdf to /dev/md0 as 3
mdadm: added /dev/sdl to /dev/md0 as 4 (possibly out of date)
mdadm: added /dev/sdk to /dev/md0 as 5 (possibly out of date)
mdadm: added /dev/sdj to /dev/md0 as 6 (possibly out of date)
mdadm: added /dev/sdi to /dev/md0 as 7 (possibly out of date)
mdadm: added /dev/sdh to /dev/md0 as 0
mdadm: /dev/md0 assembled from 4 drives - not enough to start the array.
[root@dl380g5 ~]# mdadm --detail /dev/md0
mdadm: cannot open /dev/md0: No such file or directory
[root@dl380g5 ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
unused devices: <none>
[root@dl380g5 ~]# cat /etc/mdadm.conf
ARRAY /dev/md0 metadata=1.2 name=fs2.internal.xxxxxxxxx.xxx:0 UUID=a3521a6d:596057f0:87205aac:3aab2ef2
[root@dl380g5 ~]#
답변1
내 경험상 mdadm은 이벤트 수를 강제로 업데이트합니다. 이런 경우를 자주 봅니다. 최신 mdadm 버전을 사용하고 있는지 확인하세요.
다른 모든 방법이 실패하면 mdadm --create를 수행할 수 있지만 100% 올바른 mdadm 매개변수를 사용해야 합니다. 그렇지 않으면 더 깊은 구멍을 파게 됩니다.