SoftRAID 10 重新启动后损坏。可能是由于部门调整

SoftRAID 10 重新启动后损坏。可能是由于部门调整

Centos 7。SoftRAID 10 重新启动后损坏。

创建了 Raid 10 和 ext4(1,2)。在标准程序之后,我做了完整的阵列结盟部门 (3)。别问我。之后,4个月的工作就过去了。重启后 Raid 未启动 (4)。目前我对阵列进行了完整的扇区复制。不幸的是数据备份是2个月前的。这四个月我都没有重启过电脑。

问题:如何恢复RAID?对齐是否导致 RAID 损坏。如果是,我该如何取回它。

1. mdadm --create --verbose /dev/md0 --level=10 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
2. mkfs.ext4 -F /dev/md0
3. parted -a optimal /dev/md0
  1. mdadm --详细信息 /dev/md0
/dev/md0:
           Version : 1.2
        Raid Level : raid0
     Total Devices : 2
       Persistence : Superblock is persistent
             State : inactive
              Name : clustera.lab:0  (local to host clustera.lab)
              UUID : def60eb0:d92a0ca5:5297ab23:446fdcdc
            Events : 140006
    Number   Major   Minor   RaidDevice
       -       8       32        -        /dev/sdc
       -       8       48        -        /dev/sdd

猫 /proc/mdstat

Personalities : 
md0 : inactive sdd[3](S) sdc[2](S)
      27344502784 blocks super 1.2
       unused devices: <none>

fdisk -l

Disk /dev/sda: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: A8EE15FE-6D52-4559-9DDE-F48143F736F3
#         Start          End    Size  Type            Name
 1         2048  27344762879   12.8T  Microsoft basic primary
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdb: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: A8EE15FE-6D52-4559-9DDE-F48143F736F3
#         Start          End    Size  Type            Name
 1         2048  27344762879   12.8T  Microsoft basic primary

Disk /dev/sdc: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes  / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdd: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

相关内容