我用 4 个驱动器进行了 raid 5
/dev/sdh3
/dev/sdi3
/dev/sdj3
/dev/sdk3
通常我用这个命令开始raid
mdadm --assemble /dev/md128 /dev/sdh3 /dev/sdi3 /dev/sdj3 /dev/sdk3
突然,两个驱动器同时发生了一些事情。
我找不到/dev/sdk3
$fdisk -l /dev/sdk
fdisk: cannot open /dev/sdk: No such file or directory
也/dev/sdj3
消失了
然而,我可以检查并看到/dev/sdj
没有/dev/sdj3
/dev/sdj:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : a9bcec2a:5772e6a5:045f28ac:62ae0002
Name : 0a438048:RaidSecond-0 (local to host 0a438048)
Creation Time : Tue Sep 22 08:59:59 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 15627789616 (7451.91 GiB 8001.43 GB)
Array Size : 23427527424 (22342.23 GiB 23989.79 GB)
Used Dev Size : 15618351616 (7447.41 GiB 7996.60 GB)
Data Offset : 263552 sectors
Super Offset : 8 sectors
Unused Space : before=263272 sectors, after=9438000 sectors
State : clean
Device UUID : 05652fdf:8edc650e:9cea98d8:36aee81d
Update Time : Sun Dec 27 14:52:58 2020
Bad Block Log : 512 entries available at offset 264 sectors
Checksum : 600bad80 - correct
Events : 48292
Layout : left-symmetric
Chunk Size : 64K
Device Role : Active device 3
Array State : AA.A ('A' == active, '.' == missing, 'R' == replacing)
除了/dev/sdj
有raid分区/dev/sd*3
和以前一样
$mdadm --examine /dev/sdh
/dev/sdh:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
$mdadm --examine /dev/sdh3
/dev/sdh3:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : a9bcec2a:5772e6a5:045f28ac:62ae0002
Name : 0a438048:RaidSecond-0 (local to host 0a438048)
Creation Time : Tue Sep 22 08:59:59 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 15618352320 (7447.41 GiB 7996.60 GB)
Array Size : 23427527424 (22342.23 GiB 23989.79 GB)
Used Dev Size : 15618351616 (7447.41 GiB 7996.60 GB)
Data Offset : 263552 sectors
Super Offset : 8 sectors
Unused Space : before=263272 sectors, after=704 sectors
State : clean
Device UUID : 1d396d49:23a9dd4f:648792aa:3acd8cc3
Update Time : Sun Dec 27 14:52:58 2020
Bad Block Log : 512 entries available at offset 264 sectors
Checksum : 82cf0985 - correct
Events : 48292
Layout : left-symmetric
Chunk Size : 64K
Device Role : Active device 0
Array State : AA.A ('A' == active, '.' == missing, 'R' == replacing)
$mdadm --examine /dev/sdi
/dev/sdi:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
$mdadm --examine /dev/sdi3
/dev/sdi3:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : a9bcec2a:5772e6a5:045f28ac:62ae0002
Name : 0a438048:RaidSecond-0 (local to host 0a438048)
Creation Time : Tue Sep 22 08:59:59 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 15618352320 (7447.41 GiB 7996.60 GB)
Array Size : 23427527424 (22342.23 GiB 23989.79 GB)
Used Dev Size : 15618351616 (7447.41 GiB 7996.60 GB)
Data Offset : 263552 sectors
Super Offset : 8 sectors
Unused Space : before=263272 sectors, after=704 sectors
State : clean
Device UUID : de2cdd77:9d05827f:2e57e5ae:8c2f1d48
Update Time : Sun Dec 27 14:52:58 2020
Bad Block Log : 512 entries available at offset 264 sectors
Checksum : 69c68bdd - correct
Events : 48292
Layout : left-symmetric
Chunk Size : 64K
Device Role : Active device 1
Array State : AA.A ('A' == active, '.' == missing, 'R' == replacing)
所以我有两个问题。
为什么/dev/sdk3
突然消失了,怎么才能找到??
为什么/dev/sdj3
改为/dev/sdj
?
可以mdadm --assemble /dev/md127 /dev/sdh3 /dev/sdi3 /dev/sdj
暂时恢复raid吗?