我取出所有驱动器并将它们放在新的 CPU/主板上。(升级)
我启动后,mdadm 声明它无法启动我降级的 RAID。
/dev/sdb
sudo mdadm --examine /dev/sdb
/dev/sdb:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 91a6c44d:21226975:8d2dc41a:7fcff414
Name : desktop:0 (local to host desktop)
Creation Time : Tue Jun 25 19:03:31 2013
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 5860271024 (2794.40 GiB 3000.46 GB)
Array Size : 5860270080 (5588.79 GiB 6000.92 GB)
Used Dev Size : 5860270080 (2794.39 GiB 3000.46 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 367cb248:993e2658:ecd4b56d:2aaa0a6a
Update Time : Tue Mar 4 17:48:54 2014
Checksum : d4572f50 - correct
Events : 12635
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 1
Array State : AAA ('A' == active, '.' == missing)
/dev/sdc
sudo mdadm --examine /dev/sdc
/dev/sdc:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
/dev/sdd
sudo mdadm --examine /dev/sdd
/dev/sdd:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
当我尝试“重新创建”它时会发生什么
sudo mdadm --create /dev/md0 --level=5 --raid-devices=3 --spare-devices=0 /dev/sd[bcd]
mdadm: /dev/sdb appears to be part of a raid array:
level=raid5 devices=3 ctime=Tue Jun 25 19:03:31 2013
mdadm: /dev/sdc appears to be part of a raid array:
level=raid0 devices=0 ctime=Wed Dec 31 18:00:00 1969
mdadm: partition table exists on /dev/sdc but will be lost or
meaningless after creating array
mdadm: /dev/sdd appears to be part of a raid array:
level=raid0 devices=0 ctime=Wed Dec 31 18:00:00 1969
mdadm: partition table exists on /dev/sdd but will be lost or
meaningless after creating array
我希望还有一线机会可以取回我的东西,因为 mdadm 没有看到 sdc/sdd 是 raid 的一部分,但不是同一个。
我的突袭失败了吗?
编辑:尝试通过指定进行组装
sudo mdadm --assemble /dev/md0 /dev/sd[bcd]
mdadm: no RAID superblock on /dev/sdc
mdadm: /dev/sdc has no superblock - assembly aborted
尝试使用 --scan
sudo mdadm --assemble --scan
mdadm: /dev/md0 assembled from 1 drive - not enough to start the array.
编辑#2
cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sdb[1](S)
2930135512 blocks super 1.2
unused devices: <none>
编辑#3
/dev/sdb
sudo gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.7
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Disk /dev/sdb: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 76360B85-31EF-4155-8F9E-767C0C14454E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5860533101 sectors (2.7 TiB)
Number Start (sector) End (sector) Size Code Name
/dev/sdc
sudo gdisk -l /dev/sdc
GPT fdisk (gdisk) version 0.8.7
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdc: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): DBD9F056-E1AE-4C22-826F-2D359EF6680E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860532223 2.7 TiB 0700
/dev/sdd
sudo gdisk -l /dev/sdd
GPT fdisk (gdisk) version 0.8.7
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdd: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BE9B843B-62CB-4D12-A661-5FA9AF871493
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860532223 2.7 TiB 0700
答案1
--create
将要创造一个数组,而不是集合它—用于--assemble
那件事。
如果这没有帮助,请在继续操作之前查看 /proc/mdstat。检查输出表明所有阵列成员都存在。
编辑:您的驱动器sdc
显然sdd
具有保护性 MBR(由分区类型 EE 表示),即它们带有 GPT 分区表。也许您正在查看错误的磁盘,您的内核不支持 GPT,或者某些东西覆盖了阵列头?
答案2
出于某种原因,您似乎将整个磁盘用于其中一个驱动器,而将其他两个驱动器分别用于单个分区。请尝试使用这些分区进行组装。
mdadm --assemble /dev/sdb /dev/sd[cd]1