LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 764|回复: 1

求解:raid崩溃后出错. mdadm: /dev/sdb1 has wrong uuid.

[复制链接]
发表于 2011-12-4 23:04:49 | 显示全部楼层 |阅读模式
mdadm -E /dev/hda1

/dev/hda1:
Magic : a92b4efc
Version : 00.90.00
UUID : ca757311:b1ab612a:948b7fe5:84210c23
Creation Time : Sat Apr 16 14:35:18 2011
Raid Level : raid5
Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
Array Size : 5860543744 (5589.05 GiB 6001.20 GB)
Raid Devices : 5
Total Devices : 4
Preferred Minor : 1

Update Time : Sun Dec 4 00:57:05 2011
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : 31f4f39a - correct
Events : 1163542

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 4 3 1 4 active sync /dev/hda1

0 0 0 0 0 removed
1 1 8 33 1 active sync /dev/sdc1
2 2 8 49 2 active sync /dev/sdd1
3 3 3 65 3 active sync /dev/hdb1
4 4 3 1 4 active sync /dev/hda1
mdadm -E /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : ca757311:b1ab612a:948b7fe5:84210c23
  Creation Time : Sat Apr 16 14:35:18 2011
     Raid Level : raid5
  Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
     Array Size : 5860543744 (5589.05 GiB 6001.20 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1

    Update Time : Sat Oct  1 16:43:53 2011
          State : clean
Active Devices : 5
Working Devices : 5
Failed Devices : 0
  Spare Devices : 0
       Checksum : 319bb165 - correct
         Events : 975108

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     0       8        1        0      active sync   /dev/sda1

   0     0       8        1        0      active sync   /dev/sda1
   1     1       8       33        1      active sync   /dev/sdc1
   2     2       8       49        2      active sync   /dev/sdd1
   3     3       3       65        3      active sync   /dev/hdb1
   4     4       3        1        4      active sync   /dev/hda1
mdadm -E /dev/sdc1
/dev/sdc1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : ca757311:b1ab612a:948b7fe5:84210c23
  Creation Time : Sat Apr 16 14:35:18 2011
     Raid Level : raid5
  Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
     Array Size : 5860543744 (5589.05 GiB 6001.20 GB)
   Raid Devices : 5
  Total Devices : 4
Preferred Minor : 1

    Update Time : Sun Dec  4 16:36:02 2011
          State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
  Spare Devices : 0
       Checksum : 31f5d013 - correct
         Events : 1163572

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     1       8       33        1      active sync   /dev/sdc1

   0     0       0        0        0      removed
   1     1       8       33        1      active sync   /dev/sdc1
   2     2       8       49        2      active sync   /dev/sdd1
   3     3       3       65        3      active sync   /dev/hdb1
   4     4       0        0        4      faulty removed
mdadm -E /dev/sdd1
/dev/sdd1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : ca757311:b1ab612a:948b7fe5:84210c23
  Creation Time : Sat Apr 16 14:35:18 2011
     Raid Level : raid5
  Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
     Array Size : 5860543744 (5589.05 GiB 6001.20 GB)
   Raid Devices : 5
  Total Devices : 4
Preferred Minor : 1

    Update Time : Sun Dec  4 16:36:02 2011
          State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
  Spare Devices : 0
       Checksum : 31f5d025 - correct
         Events : 1163572

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     2       8       49        2      active sync   /dev/sdd1

   0     0       0        0        0      removed
   1     1       8       33        1      active sync   /dev/sdc1
   2     2       8       49        2      active sync   /dev/sdd1
   3     3       3       65        3      active sync   /dev/hdb1
   4     4       0        0        4      faulty removed
mdadm -E /dev/hdb1
/dev/hdb1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : ca757311:b1ab612a:948b7fe5:84210c23
  Creation Time : Sat Apr 16 14:35:18 2011
     Raid Level : raid5
  Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
     Array Size : 5860543744 (5589.05 GiB 6001.20 GB)
   Raid Devices : 5
  Total Devices : 4
Preferred Minor : 1

    Update Time : Sun Dec  4 16:36:02 2011
          State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
  Spare Devices : 0
       Checksum : 31f5d032 - correct
         Events : 1163572

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     3       3       65        3      active sync   /dev/hdb1

   0     0       0        0        0      removed
   1     1       8       33        1      active sync   /dev/sdc1
   2     2       8       49        2      active sync   /dev/sdd1
   3     3       3       65        3      active sync   /dev/hdb1
   4     4       0        0        4      faulty removed


mdadm -Av /dev/md1 --uuid=ca757311:b1ab612a:948b7fe5:84210c23

mdadm: looking for devices for /dev/md1
mdadm: no RAID superblock on /dev/hdb
mdadm: /dev/hdb has wrong uuid.
mdadm: no RAID superblock on /dev/hda
mdadm: /dev/hda has wrong uuid.
mdadm: no RAID superblock on /dev/sdd
mdadm: /dev/sdd has wrong uuid.
mdadm: no RAID superblock on /dev/sdc
mdadm: /dev/sdc has wrong uuid.
mdadm: no RAID superblock on /dev/sdb3
mdadm: /dev/sdb3 has wrong uuid.
mdadm: cannot open device /dev/sdb2: Device or resource busy
mdadm: /dev/sdb2 has wrong uuid.
mdadm: cannot open device /dev/sdb1: Device or resource busy
mdadm: /dev/sdb1 has wrong uuid.
mdadm: cannot open device /dev/sdb: Device or resource busy
mdadm: /dev/sdb has wrong uuid.
mdadm: no RAID superblock on /dev/sda
mdadm: /dev/sda has wrong uuid.
mdadm: /dev/hdb1 is identified as a member of /dev/md1, slot 3.
mdadm: /dev/hda1 is identified as a member of /dev/md1, slot 4.
mdadm: /dev/sdd1 is identified as a member of /dev/md1, slot 2.
mdadm: /dev/sdc1 is identified as a member of /dev/md1, slot 1.
mdadm: /dev/sda1 is identified as a member of /dev/md1, slot 0.
mdadm: added /dev/sda1 to /dev/md1 as 0
mdadm: added /dev/sdd1 to /dev/md1 as 2
mdadm: added /dev/hdb1 to /dev/md1 as 3
mdadm: added /dev/hda1 to /dev/md1 as 4
mdadm: added /dev/sdc1 to /dev/md1 as 1
mdadm: /dev/md1 assembled from 3 drives - not enough to start the array.


blkid -s UUID
/dev/sda1: UUID="117375ca-2a61-abb1-e57f-8b94230c2184"
/dev/sdb1: UUID="f6a4dbb0-11af-4f8f-b00c-f175700be28b"
/dev/sdb3: UUID="bbeaead1-aa31-4951-be11-7d5558309c4c"
/dev/sdc1: UUID="117375ca-2a61-abb1-e57f-8b94230c2184"
/dev/sdd1: UUID="117375ca-2a61-abb1-e57f-8b94230c2184"
/dev/hda1: UUID="117375ca-2a61-abb1-e57f-8b94230c2184"
/dev/hdb1: UUID="117375ca-2a61-abb1-e57f-8b94230c2184"
尝试 mdadm --assemble --update=uuid /dev/md1
mdadm --assemble --update=rsyncd /dev/md1 均无解
查看日志 貌似是/dev/hda1挂掉后导致md1出问题,重启系统后始终无法启动md1,各位帮忙看看 有没有办法可以恢复的?
 楼主| 发表于 2011-12-5 11:24:54 | 显示全部楼层
问题已解决
硬盘疲劳导致某块硬盘出现坏块。
关闭机器一段时间后问题解决
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表