Raid
是 mdadm RAID Toast 嗎?
我把我所有的驅動器都拿出來放在一個新的 cpu/mobo 上。(升級)
我啟動並且 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 是突襲的一部分,但不是同一個,我希望有一點機會可以拿回我的東西。
我的突襲吐司嗎?
編輯:嘗試通過指定組裝
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
--create
將創建一個數組,而不是組裝它 - 使用--assemble
它。如果這沒有幫助,請先查看 /proc/mdstat,然後再繼續。您的檢查輸出表明所有數組成員都存在。
**編輯:**您的驅動器
sdc
顯然sdd
具有保護性 MBR(由分區類型 EE 表示),即它們帶有 GPT 分區表。也許您正在查看錯誤的磁碟,您的核心不支持 GPT,或者某些東西覆蓋了陣列頭?
出於某種原因,您似乎將整個磁碟用於其中一個驅動器,而將單個分區用於其他兩個驅動器。嘗試使用分區進行組裝。
mdadm --assemble /dev/sdb /dev/sd[cd]1