mdadm使用 UUID 查找阵列的驱动器部分。您只需将其指向其中一个驱动器,即可找到阵列中的整个驱动器集。此外,阵列元数据的完整副本应位于阵列的每个驱动器部分。
自己尝试(例如使用/dev/sda2):
# mdadm --query /dev/sda2
/dev/sda2: is not an md array
/dev/sda2: device 1 in 4 device active raid10 /dev/md120. Use mdadm --examine for more detail.
# mdadm --examine /dev/sda2
/dev/sda2:
[...]
Version : 0.90.00
UUID : 4412cfc6:5e1882a5:7dff47a2:91b78dd1 (local to host kvmserver)
[...]
Raid Devices : 4
Total Devices : 4
[...]
Number Major Minor RaidDevice State
this 1 8 2 1 active sync /dev/sda2
0 0 8 34 0 active sync /dev/sdc2
1 1 8 2 1 active sync /dev/sda2
[...]
Run Code Online (Sandbox Code Playgroud)