O RAID de software não pode ser montado porque a unidade está ocupada

0

Eu tive um erro em um RAID de software. Depois de alterar um disco, não consigo montar o array porque o mdadm diz: mdadm: /dev/sdb3 is busy - skipping .

# --force doesn't change a thing
# mdadm --assemble /dev/md126 /dev/sd[ab]3
mdadm: /dev/sdb3 is busy - skipping

No entanto, todos os volumes são desmontados e não há partições de disco montadas. Eu verifiquei novamente com fuser , mas a unidade especificada não está em uso.

O que poderia causar um erro desse tipo? Existe uma maneira de "desusar" a unidade?

Detalhes

Este ataque é montado com SSDs. Dois dos três SSDs estavam falhando (um após o outro, na verdade) por causa de Wear_Leveling_Count .

Então substituí um disco ( sda ) e copiei o segundo disco com falha com ddrescue para o novo.

Então, sabemos que temos sda , que é novo e tem o conteúdo de sdc . Gostaria de montar o RAID degradado e depois disso substituir sdc e iniciar uma reconstrução.

cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] 
md125 : inactive sdc4[2](S) sdb4[3](S)
      477220864 blocks super 1.2

md126 : inactive sdc3[2](S) sdb3[3](S)
      20955136 blocks super 1.2

-

mdadm --detail /dev/md*
/dev/md0:
        Version : 
     Raid Level : raid0
  Total Devices : 0

          State : inactive

    Number   Major   Minor   RaidDevice
/dev/md125:
        Version : 1.2
     Raid Level : raid0
  Total Devices : 2
    Persistence : Superblock is persistent

          State : inactive

           Name : 163-172-108-110:2  (local to host 163-172-108-110)
           UUID : 3c78263f:6baa0912:caa18c52:b9d80e7c
         Events : 10392

    Number   Major   Minor   RaidDevice

       -       8       20        -        /dev/sdb4
       -       8       36        -        /dev/sdc4
/dev/md126:
        Version : 1.2
     Raid Level : raid0
  Total Devices : 2
    Persistence : Superblock is persistent

          State : inactive

           Name : 163-172-108-110:1  (local to host 163-172-108-110)
           UUID : 82b97a85:9e2f9bf4:0ab3e92f:c2d082f3
         Events : 1256

    Number   Major   Minor   RaidDevice

       -       8       19        -        /dev/sdb3
       -       8       35        -        /dev/sdc3
/dev/md127:
        Version : 
     Raid Level : raid0
  Total Devices : 0

          State : inactive

    Number   Major   Minor   RaidDevice

-

mdadm --detail /dev/md*
/dev/md0:
        Version : 
     Raid Level : raid0
  Total Devices : 0

          State : inactive

    Number   Major   Minor   RaidDevice
/dev/md125:
        Version : 1.2
     Raid Level : raid0
  Total Devices : 2
    Persistence : Superblock is persistent

          State : inactive

           Name : 163-172-108-110:2  (local to host 163-172-108-110)
           UUID : 3c78263f:6baa0912:caa18c52:b9d80e7c
         Events : 10392

    Number   Major   Minor   RaidDevice

       -       8       20        -        /dev/sdb4
       -       8       36        -        /dev/sdc4
/dev/md126:
        Version : 1.2
     Raid Level : raid0
  Total Devices : 2
    Persistence : Superblock is persistent

          State : inactive

           Name : 163-172-108-110:1  (local to host 163-172-108-110)
           UUID : 82b97a85:9e2f9bf4:0ab3e92f:c2d082f3
         Events : 1256

    Number   Major   Minor   RaidDevice

       -       8       19        -        /dev/sdb3
       -       8       35        -        /dev/sdc3
/dev/md127:
        Version : 
     Raid Level : raid0
  Total Devices : 0

          State : inactive

    Number   Major   Minor   RaidDevice
root@163-172-108-110:/home/developer# 
root@163-172-108-110:/home/developer# mdadm --examine /dev/sd*
/dev/sda:
   MBR Magic : aa55
Partition[0] :       612352 sectors at         2048 (type fd)
Partition[1] :      1048576 sectors at       614400 (type 82)
Partition[2] :     20971520 sectors at      1662976 (type fd)
Partition[3] :    477483008 sectors at     22634496 (type fd)
/dev/sdb:
   MBR Magic : aa55
Partition[0] :       612352 sectors at         2048 (type fd)
Partition[1] :      1048576 sectors at       614400 (type 82)
Partition[2] :     20971520 sectors at      1662976 (type fd)
Partition[3] :    477483008 sectors at     22634496 (type fd)
/dev/sdb1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : c59f1ae7:c2db40ca:f23c39c6:b8906d82
           Name : 163-172-108-110:0  (local to host 163-172-108-110)
  Creation Time : Wed Aug 30 10:50:38 2017
     Raid Level : raid5
   Raid Devices : 3

 Avail Dev Size : 610304 (298.05 MiB 312.48 MB)
     Array Size : 610304 (596.10 MiB 624.95 MB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
   Unused Space : before=1960 sectors, after=0 sectors
          State : clean
    Device UUID : f8b8f6d5:af13231e:df576ce8:dc0987ca

    Update Time : Mon Jun 18 13:04:27 2018
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : c0b350d8 - correct
         Events : 148

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 1
   Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
mdadm: No md superblock detected on /dev/sdb2.
/dev/sdb3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 82b97a85:9e2f9bf4:0ab3e92f:c2d082f3
           Name : 163-172-108-110:1  (local to host 163-172-108-110)
  Creation Time : Wed Aug 30 10:50:38 2017
     Raid Level : raid5
   Raid Devices : 3

 Avail Dev Size : 20955136 (9.99 GiB 10.73 GB)
     Array Size : 20955136 (19.98 GiB 21.46 GB)
    Data Offset : 16384 sectors
   Super Offset : 8 sectors
   Unused Space : before=16296 sectors, after=0 sectors
          State : active
    Device UUID : 581e9da2:196f11b2:80814cca:000f1ce2

    Update Time : Sun Jun 17 19:13:05 2018
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : c0a9855d - correct
         Events : 1256

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 1
   Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdb4:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 3c78263f:6baa0912:caa18c52:b9d80e7c
           Name : 163-172-108-110:2  (local to host 163-172-108-110)
  Creation Time : Wed Aug 30 10:50:38 2017
     Raid Level : raid5
   Raid Devices : 3

 Avail Dev Size : 477220864 (227.56 GiB 244.34 GB)
     Array Size : 477220864 (455.11 GiB 488.67 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
   Unused Space : before=262056 sectors, after=0 sectors
          State : active
    Device UUID : c2328796:4f6255c3:8d6f12b4:083f0dd5

Internal Bitmap : 8 sectors from superblock
    Update Time : Sun Jun 17 19:13:04 2018
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : 5b3fdf08 - correct
         Events : 10392

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 1
   Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdc:
   MBR Magic : aa55
Partition[0] :       612352 sectors at         2048 (type fd)
Partition[1] :      1048576 sectors at       614400 (type 82)
Partition[2] :     20971520 sectors at      1662976 (type fd)
Partition[3] :    477483008 sectors at     22634496 (type fd)
/dev/sdc1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : c59f1ae7:c2db40ca:f23c39c6:b8906d82
           Name : 163-172-108-110:0  (local to host 163-172-108-110)
  Creation Time : Wed Aug 30 10:50:38 2017
     Raid Level : raid5
   Raid Devices : 3

 Avail Dev Size : 610304 (298.05 MiB 312.48 MB)
     Array Size : 610304 (596.10 MiB 624.95 MB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
   Unused Space : before=1960 sectors, after=0 sectors
          State : clean
    Device UUID : 9879accc:f903b32b:1bd6e67a:b1133812

    Update Time : Mon Jun 18 13:04:27 2018
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : 9f2489d1 - correct
         Events : 148

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 2
   Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
mdadm: No md superblock detected on /dev/sdc2.
/dev/sdc3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 82b97a85:9e2f9bf4:0ab3e92f:c2d082f3
           Name : 163-172-108-110:1  (local to host 163-172-108-110)
  Creation Time : Wed Aug 30 10:50:38 2017
     Raid Level : raid5
   Raid Devices : 3

 Avail Dev Size : 20955136 (9.99 GiB 10.73 GB)
     Array Size : 20955136 (19.98 GiB 21.46 GB)
    Data Offset : 16384 sectors
   Super Offset : 8 sectors
   Unused Space : before=16296 sectors, after=0 sectors
          State : active
    Device UUID : 0c9c3d3d:03777e83:3990cfdd:3cc58aee

    Update Time : Sun Jun 17 19:13:05 2018
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : 4ca8cfef - correct
         Events : 1256

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 2
   Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdc4:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 3c78263f:6baa0912:caa18c52:b9d80e7c
           Name : 163-172-108-110:2  (local to host 163-172-108-110)
  Creation Time : Wed Aug 30 10:50:38 2017
     Raid Level : raid5
   Raid Devices : 3

 Avail Dev Size : 477220864 (227.56 GiB 244.34 GB)
     Array Size : 477220864 (455.11 GiB 488.67 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
   Unused Space : before=262056 sectors, after=0 sectors
          State : active
    Device UUID : e547f2d6:631ac6b2:f89347d9:bd876af2

Internal Bitmap : 8 sectors from superblock
    Update Time : Sun Jun 17 19:13:04 2018
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : cdae195e - correct
         Events : 10392

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 2
   Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
    
por Buzut 27.06.2018 / 11:42

0 respostas