Assistência com a sintaxe do mdadm.conf para remontagem de RAID0 existente

1

Estou tentando recuperar os dados de um amigo de um laptop Sony Vaio VGN-AW47GH. Tem um par de Toshiba MK5055GS 2,5 "HDD 500GB combinado (de acordo com a minha leitura) em um 1TB RAID0. O laptop não está mais funcionando, então eu estou tentando trazê-los no meu sistema Ubuntu 14.04.

Preciso de ajuda com a sintaxe do arquivo /etc/mdadm/mdadm.conf para tornar o RAID0 montável pelo Ubuntu. Espero que alguém familiarizado com mdadm.conf seja capaz de me apontar na direção certa, pois a página de manual e as pesquisas on-line não estão deixando claro o suficiente para eu ajustar.

Eles estão aparecendo como /dev/sda & /dev/sdb e obtenho o seguinte de mdadm examine/scan depois de executar mdadm --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

Resultados examine / scan / 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

Aqui estão os resultados da análise sem a opção --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]

Resultados de examinar em / 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)

Não parece haver um arquivo / dev / md / Volume0 no dev. Existem alguns arquivos md agora:

# 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

Para / dev / md126

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

Para / 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

Informações extras de diagnóstico, conforme solicitado:

# 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

Atualização 12/06/2016

Uma reinicialização reorganizou os dispositivos de sda & sdb para sdg & sdi desculpe. Eu não tive nenhuma sorte em tentar a opção -I até que parei tudo e o executei da seguinte forma. Eu também incluí a configuração do ambiente IMSM_NO_PLATFORM, a qual esqueci de colocar por padrão na reinicialização.

# 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

Parece que eu acessei o contêiner imsm0 que tem um dispositivo ausente (removido) e um dispositivo ok / dev / sdg. Alguma idéia sobre como identificar o dispositivo ausente e adicioná-lo novamente?

Qualquer e toda entrada (construtiva) muito apreciada!

    
por drax 06.06.2016 / 07:48

0 respostas