8개의 디스크 32TB RAID6 mdadm 소프트웨어 RAID 어레이가 있습니다. 오늘 컴퓨터를 시작했는데 어레이를 시작할 수 없습니다. 일반적인 증상은 어레이를 비활성으로 표시하고 8개 드라이브를 모두 예비로 표시하는 것입니다. dd
어레이 디스크를 모두 종료 할 수 있어서 하드웨어가 탄탄한 것 같습니다. smartctl
너무 행복해 보이네요.
실사를 수행하고 기존 답변을 찾으려고 노력한 후 이상한 점 두 가지를 발견했습니다.
mdadm --examine --scan
이름이 지정된 두 개의 이름을 반환합니다./dev/md/1- 나는 이것이 확실한 증거라고 생각한다. 첫 번째 줄
cat /proc/mdstat
은 다음과 같습니다Personalities: [raid1]
. 그게 다야. 둘 다 RAID1 어레이/dev/md0
입니다 ./dev/md1
나는 이 줄에 RAID6을 포함한 모든 내용이 나열되어야 한다고 생각합니다. 이것이mdadm --scan --assemble
1개의 드라이브로는 어레이를 시작하기에 충분하지 않다고 말하는 이유가 되기를 바랍니다 .
이것이 실제로 문제가 될 수 있는 것처럼 들리나요? 그렇다면 해결책이 있습니까? 나는 의도적으로 커널을 변경하고, 패치를 설치하고, 램디스크를 다시 빌드하는 등의 작업을 하지 않았고 데비안이 자동으로 이러한 작업을 수행할 것이라고 생각하지 않습니다. 정전이 한두 번 발생하여 무언가 손상되었을 수 있지만 그 이후로 어레이는 계속 작동하고 있으며 모든 것(FS도 포함)은 깨끗합니다. UUID를 통해 어셈블링을 시도하는 것도 동일한 효과가 있습니다.
어떤 조언이라도 감사드립니다. 다음은 몇 가지 진단 결과입니다.
$ cat /proc/mdstat
Personalities : [raid1]
md2 : inactive sde1[0](S) sdd1[7](S) sdc1[6](S) sdb1[5](S) sda1[4](S) sdh1[3](S) sdg1[2](S) sdf1[1](S)
31255091772 blocks super 1.2
md1 : active raid1 sdi3[0] sdj3[2]
675801920 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sdi1[0] sdj1[2]
48794496 blocks super 1.2 [2/2] [UU]
unused devices: <none>
$ mdadm --detail --scan
mdadm: cannot open /dev/md/2: No such file or directory
ARRAY /dev/md/0 metadata=1.2 name=ferret:0 UUID=1e5230d9:3f75c64e:d0885b53:0149f5aa
ARRAY /dev/md/1 metadata=1.2 name=ferret:1 UUID=663cf35c:b6cd2fe7:270e1729:bbf21ed2
$ mdadm --examine --scan
ARRAY /dev/md/0 metadata=1.2 UUID=1e5230d9:3f75c64e:d0885b53:0149f5aa name=ferret:0
ARRAY /dev/md/1 metadata=1.2 UUID=663cf35c:b6cd2fe7:270e1729:bbf21ed2 name=ferret:1
ARRAY /dev/md/1 metadata=1.2 UUID=67a454f1:4fe380f1:927069d6:2dc58580 name=ferret:1
$ cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Sun, 08 Feb 2015 10:23:54 -0600
# by mkconf 3.2.5-5
ARRAY /dev/md/0 metadata=1.2 UUID=1e5230d9:3f75c64e:d0885b53:0149f5aa name=ferret:0
ARRAY /dev/md/1 metadata=1.2 UUID=663cf35c:b6cd2fe7:270e1729:bbf21ed2 name=ferret:1
ARRAY /dev/md/2 metadata=1.2 UUID=67a454f1:4fe380f1:927069d6:2dc58580 name=ferret:1
$ mdadm --stop /dev/md2
mdadm: stopped /dev/md2
$ mdadm --scan --assemble
mdadm: /dev/md/2 assembled from 1 drive - not enough to start the array.
업데이트: 도움이 되는지 확인하기 위해 몇 가지를 실행했습니다. 몇 가지 사항이 변경되었지만 도움이 되었다고 말할 수는 없습니다. 이제 추가 문자가 나타납니다./proc/mdstat, 그러나 어레이는 비활성 상태로 유지됩니다.
$ modprobe raid456
$ update-initramfs -u
$ init 6
$ cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md2 : inactive sde1[0]
3906886471 blocks super 1.2
md1 : active raid1 sdi3[0] sdj3[2]
675801920 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sdi1[0] sdj1[2]
48794496 blocks super 1.2 [2/2] [UU]
$ blkid
unused devices: <none>
/dev/md0: UUID="d913e7ec-96f5-4067-8255-8dd582646f2d" TYPE="ext4"
/dev/md1: UUID="233378f0-cefa-4197-a659-f8e7308a9270" TYPE="ext4"
/dev/sda1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="5bb7ca2e-b9dd-7ce3-fa15-4f0f79536371" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdb1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="1150240c-c20f-603a-47d5-2547e603bd91" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdc1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="70296382-b69b-a059-db37-10604c4f9757" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdd1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="b0dd56bc-ca41-b4a0-97ae-18961c23ba5c" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sde1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="0a044073-49b0-b90e-653b-6c9427ef3cd4" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdf1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="2a49c7be-dc87-0d33-3d49-055d4fd87c48" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdg1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="417c9661-aa46-6f3a-9019-65381c4deb6a" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdh1: UUID="67a454f1-4fe3-80f1-9270-69d62dc58580" UUID_SUB="eb049051-cc6a-5910-290b-f1f5ffead2ac" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdi1: UUID="1e5230d9-3f75-c64e-d088-5b530149f5aa" UUID_SUB="9fea4948-f42b-8386-9256-b6572b0adfa2" LABEL="ferret:0" TYPE="linux_raid_member"
/dev/sdj1: UUID="1e5230d9-3f75-c64e-d088-5b530149f5aa" UUID_SUB="57c47321-3c0c-f213-8c76-e4ed95961162" LABEL="ferret:0" TYPE="linux_raid_member"
/dev/sdi2: UUID="86fdd0b2-8ec9-4161-ad64-887ab5181066" TYPE="swap"
/dev/sdi3: UUID="663cf35c-b6cd-2fe7-270e-1729bbf21ed2" UUID_SUB="28bfe8c8-51a2-7fa1-9b17-28915145fed5" LABEL="ferret:1" TYPE="linux_raid_member"
/dev/sdj3: UUID="663cf35c-b6cd-2fe7-270e-1729bbf21ed2" UUID_SUB="9a47fa95-b416-53c0-5d5c-e2ad886154d3" LABEL="ferret:1" TYPE="linux_raid_member"
mdadm --examine
모든 구성 요소 디스크에서 실행 하면 sde를 제외한 모든 구성 요소 디스크에 다음이 표시됩니다.
Array State: AAAAAAAA ('A' == active, '.' == missing)
sde가 이상하게 표시됩니다
Array State: A....... ('A' == active, '.' == missing)
이것은 아마도 다음과 같은 이유 때문일 것입니다./dev/md2시작되었지만 비활성 상태이며 sde가 내부에 있다고 생각합니다. md2를 중지하고 UUID를 통해 조립을 시도했지만 여전히 작동하지 않습니다.
감사해요!
--examine 출력을 추가합니다.
/dev/sda1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 5bb7ca2e:b9dd7ce3:fa154f0f:79536371
Update Time : Thu May 25 17:40:42 2017
Checksum : 69790897 - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 4
Array State : AAAAAAAA ('A' == active, '.' == missing)
/dev/sdb1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 1150240c:c20f603a:47d52547:e603bd91
Update Time : Thu May 25 17:40:42 2017
Checksum : f5e64310 - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 5
Array State : AAAAAAAA ('A' == active, '.' == missing)
/dev/sdc1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 70296382:b69ba059:db371060:4c4f9757
Update Time : Thu May 25 17:40:42 2017
Checksum : 6a2a565f - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 6
Array State : AAAAAAAA ('A' == active, '.' == missing)
/dev/sdd1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : b0dd56bc:ca41b4a0:97ae1896:1c23ba5c
Update Time : Thu May 25 17:40:42 2017
Checksum : 265cfb41 - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 7
Array State : AAAAAAAA ('A' == active, '.' == missing)
/dev/sde1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 0a044073:49b0b90e:653b6c94:27ef3cd4
Update Time : Sat Jun 3 22:07:36 2017
Checksum : c11904ee - correct
Events : 74
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 0
Array State : A....... ('A' == active, '.' == missing)
/dev/sdf1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 2a49c7be:dc870d33:3d49055d:4fd87c48
Update Time : Thu May 25 17:40:42 2017
Checksum : 6dd5fc9f - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 1
Array State : AAAAAAAA ('A' == active, '.' == missing)
/dev/sdg1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 417c9661:aa466f3a:90196538:1c4deb6a
Update Time : Thu May 25 17:40:42 2017
Checksum : 15d533a5 - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 2
Array State : AAAAAAAA ('A' == active, '.' == missing)
/dev/sdh1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 67a454f1:4fe380f1:927069d6:2dc58580
Name : ferret:1 (local to host ferret)
Creation Time : Tue May 6 16:50:21 2014
Raid Level : raid6
Raid Devices : 8
Avail Dev Size : 7813772943 (3725.90 GiB 4000.65 GB)
Array Size : 23441317632 (22355.38 GiB 24003.91 GB)
Used Dev Size : 7813772544 (3725.90 GiB 4000.65 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : eb049051:cc6a5910:290bf1f5:ffead2ac
Update Time : Thu May 25 17:40:42 2017
Checksum : db2c6fee - correct
Events : 71
Layout : left-symmetric
Chunk Size : 128K
Device Role : Active device 3
Array State : AAAAAAAA ('A' == active, '.' == missing)