根据要求提供额外诊断信息:

根据要求提供额外诊断信息:

我正在尝试从 Sony Vaio VGN-AW47GH 笔记本电脑恢复朋友的数据。它有一对东芝 MK5055GS 2.5" 500GB HDD(根据我的阅读)组合成 1TB RAID0。笔记本电脑不再工作,所以我试图将它们带入我的 Ubuntu 14.04 系统。

我需要有关文件语法的帮助/etc/mdadm/mdadm.conf,以使 RAID0 可通过 Ubuntu 安装。希望熟悉的人mdadm.conf能够为我指出正确的方向,因为手册页和在线搜索并没有让我清楚地进行调整。

它们显示为/dev/sda& ,运行后/dev/sdb我得到以下信息mdadm examine/scanmdadm --assemble --scan

# mdadm --examine --scan /dev/sda
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
ARRAY metadata=imsm UUID=99fcd315:2ac78f08:08014b0a:33f4585f
ARRAY /dev/md/Volume0 container=99fcd315:2ac78f08:08014b0a:33f4585f member=0 UUID=245d2401:2ad11a3c:6edacb92:47ce3340

结果检查/扫描/dev/sdb

# mdadm --examine --scan /dev/sdb
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
ARRAY metadata=imsm UUID=99fcd315:2ac78f08:08014b0a:33f4585f
ARRAY /dev/md/Volume0 container=99fcd315:2ac78f08:08014b0a:33f4585f member=0 UUID=245d2401:2ad11a3c:6edacb92:47ce3340

这是没有 --scan 选项的检查结果:

# mdadm --examine /dev/sda
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
/dev/sda: 
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.0.00
    Orig Family : 08b9238d
         Family : 08b9238d
     Generation : 00001c59
     Attributes : All supported
           UUID : 99fcd315:2ac78f08:08014b0a:33f4585f
       Checksum : 1b2c84f0 correct
    MPB Sectors : 1
          Disks : 2
   RAID Devices : 1

  Disk01 Serial : 9934C0KIT
          State : active
             Id : 00040000
    Usable Size : 976768264 (465.76 GiB 500.11 GB)

[Volume0]: 
           UUID : 245d2401:2ad11a3c:6edacb92:47ce3340
     RAID Level : 0
        Members : 2
          Slots : [_U]
    Failed disk : 0
      This Slot : 1
     Array Size : 1953536000 (931.52 GiB 1000.21 GB)
   Per Dev Size : 976768264 (465.76 GiB 500.11 GB)
  Sector Offset : 0
    Num Stripes : 3815500
     Chunk Size : 128 KiB
       Reserved : 0
  Migrate State : idle
      Map State : normal
    Dirty State : clean

  Disk00 Serial : 9934C0KJT
          State : active failed
             Id : 00000000
    Usable Size : 976768264 (465.76 GiB 500.11 GB)[/CODE]

/dev/sdb 的检查结果

# mdadm --examine /dev/sdb
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
/dev/sdb:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.0.00
    Orig Family : 08b9238d
         Family : 08b9238d
     Generation : 00001c59
     Attributes : All supported
           UUID : 99fcd315:2ac78f08:08014b0a:33f4585f
       Checksum : 1b2c84f0 correct
    MPB Sectors : 1
          Disks : 2
   RAID Devices : 1

[Volume0]:
           UUID : 245d2401:2ad11a3c:6edacb92:47ce3340
     RAID Level : 0
        Members : 2
          Slots : [_U]
    Failed disk : 0
      This Slot : ?
     Array Size : 1953536000 (931.52 GiB 1000.21 GB)
   Per Dev Size : 976768264 (465.76 GiB 500.11 GB)
  Sector Offset : 0
    Num Stripes : 3815500
     Chunk Size : 128 KiB
       Reserved : 0
  Migrate State : idle
      Map State : normal
    Dirty State : clean

  Disk00 Serial : 9934C0KJT
          State : active failed
             Id : 00000000
    Usable Size : 976766862 (465.76 GiB 500.10 GB)

  Disk01 Serial : 9934C0KIT
          State : active
             Id : 00040000
    Usable Size : 976766862 (465.76 GiB 500.10 GB)

dev 中似乎没有 /dev/md/Volume0 文件。现在有一些 md 文件:

# ls -la /dev/md* | grep md
brw-rw---- 1 root disk 9, 126 May 24 22:05 /dev/md126
brw-rw---- 1 root disk 9, 127 May 25 22:27 /dev/md127
/dev/md:
lrwxrwxrwx  1 root root    8 May 25 22:27 imsm0 -> ../md127

对于/dev/md126

# mdadm --examine --scan /dev/md126
mdadm: ARRAY line /dev/md/imsm0 has no identity information.

对于 /dev/md17

# mdadm --examine --scan /dev/md127
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
ARRAY metadata=imsm UUID=99fcd315:2ac78f08:08014b0a:33f4585f
ARRAY /dev/md/Volume0 container=99fcd315:2ac78f08:08014b0a:33f4585f member=0 UUID=245d2401:2ad11a3c:6edacb92:47ce3340

根据要求提供额外诊断信息:

# mdadm --assemble --scan
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
mdadm: Container /dev/md126 has been assembled with 2 drives

# cat /proc/mdstat
Personalities : [raid10] [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] 
md126 : inactive sdb[1](S) sda[0](S)
      5605 blocks super external:imsm

unused devices: <none>

# ls -la /dev/md*
brw-rw---- 1 root disk 9, 126 Jun  8 19:46 /dev/md126

# mount -o ro /dev/md126 /mnt
mount: /dev/md126: can't read superblock

# mdadm --stop /dev/md126
mdadm: stopped /dev/md126

# mdadm --assemble /dev/md0 --verbose --force /dev/sd[ab]
mdadm: looking for devices for /dev/md0
mdadm: /dev/sda is identified as a member of /dev/md0, slot -1.
mdadm: /dev/sdb is identified as a member of /dev/md0, slot -1.
mdadm: Marking array /dev/md0 as 'clean'
mdadm: added /dev/sdb to /dev/md0 as -1
mdadm: added /dev/sda to /dev/md0 as -1
mdadm: Container /dev/md0 has been assembled with 2 drives

# cat /proc/mdstat
Personalities : [raid10] [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] 
md0 : inactive sda[1](S) sdb[0](S)
      5605 blocks super external:imsm

unused devices: <none>

# mdadm --readonly /dev/md0

# mount -o ro /dev/md0 /mnt
mount: /dev/md0: can't read superblock

更新 12/06/2016

重新启动已将设备从 sda 和 sdb 重新洗牌为 sdg 和 sdi 抱歉。我没有任何运气尝试 -I 选项,直到我停止一切并按如下方式运行它。我还包括了 IMSM_NO_PLATFORM 环境设置,我忘记了在重新启动时默认设置的位置。

# export IMSM_NO_PLATFORM=1         # Allow mdadm to access/modify an IMSM array

# mdadm --stop /dev/md0

# mdadm -I /dev/sdg --verbose
mdadm: container /dev/md/imsm0 now has 1 device
mdadm: not enough devices to start the container

# mdadm -I /dev/sdi --verbose
mdadm: container /dev/md/imsm0 now has 2 devices
mdadm: not enough devices to start the container

# mdadm --query --detail /dev/md/imsm0
/dev/md/imsm0:
        Version : imsm
     Raid Level : container
  Total Devices : 2
Working Devices : 2
           UUID : 99fcd315:2ac78f08:08014b0a:33f4585f
  Member Arrays :
    Number   Major   Minor   RaidDevice
       0       8       96        -        /dev/sdg
       1       8      128        -        /dev/sdi

# mdadm --query /dev/md/imsm0
/dev/md/imsm0: 0.00KiB (null) 0 devices, 2 spares. Use mdadm --detail for more detail.

# mdadm -I /dev/md/imsm0 --verbose
mdadm: not enough devices to start the container

# mdadm --assemble --scan
mdadm: array /dev/md/Volume0_0 now has 1 device
mdadm: No arrays found in config file or automatically

# ls -la /dev/md*
brw-rw---- 1 root disk 9, 126 Jun 12 17:02 /dev/md126
brw-rw---- 1 root disk 9, 127 Jun 12 17:00 /dev/md127
/dev/md:
total 0
drwxr-xr-x  2 root root   60 Jun 12 17:00 .
drwxr-xr-x 18 root root 5000 Jun 12 17:02 ..
lrwxrwxrwx  1 root root    8 Jun 12 17:00 imsm0 -> ../md127

# mdadm --query --detail  /dev/md126
/dev/md126:
      Container : /dev/md/imsm0, member 0
     Raid Level : raid0
   Raid Devices : 2
  Total Devices : 1
          State : active, FAILED, Not Started 
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0
     Chunk Size : 128K
           UUID : 245d2401:2ad11a3c:6edacb92:47ce3340
    Number   Major   Minor   RaidDevice State
       0       0        0        0      removed
       0       8       96        1      active sync   /dev/sdg

所以看起来我已经访问了 imsm0 容器,其中缺少(已删除)设备和一个正常的 /dev/sdg 设备。关于如何识别丢失的设备并重新添加它有什么想法吗?

非常感谢任何和所有(建设性的)意见!

相关内容