免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1032 | 回复: 0
打印 上一主题 下一主题

[系统管理] linux 软RAID修复问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-08 14:56 |只看该作者 |倒序浏览
6块盘组的RAID5,其中1块热备盘。在RAID上建VG,然后在上面装操作系统,RHEL6.5

现在其中1块盘SDD2坏了,新换上一块
[root@server1 ~]# mdadm -D /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Sat Aug 28 00:03:28 2010
     Raid Level : raid5
     Array Size : 2047997952 (1953.12 GiB 2097.15 GB)
  Used Dev Size : 511999488 (488.28 GiB 524.29 GB)
   Raid Devices : 5
  Total Devices : 6
Preferred Minor : 0
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Oct  8 13:08:40 2014
          State : active, degraded, recovering
Active Devices : 4
Working Devices : 6
Failed Devices : 0
  Spare Devices : 2

         Layout : left-symmetric
     Chunk Size : 256K

Rebuild Status : 31% complete

           UUID : d8ffba09:4dd603f4:9fd5bb0c:c7c903a4
         Events : 0.275902

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       34        1      active sync   /dev/sdc2
       2       8       18        2      active sync   /dev/sdb2
       6       8       53        3      spare rebuilding   /dev/sdd5
       4       8       66        4      active sync   /dev/sde2

       5       8       85        -      spare   /dev/sdf5

系统也开始重建,但是重建快结束的时候,又有SDB有问题,失败了
系统现在是这个状态,

[root@server1 ~]#  mdadm --misc -D /dev/md0                 
/dev/md0:
        Version : 0.90
  Creation Time : Sat Aug 28 00:03:28 2010
     Raid Level : raid5
     Array Size : 2047997952 (1953.12 GiB 2097.15 GB)
  Used Dev Size : 511999488 (488.28 GiB 524.29 GB)
   Raid Devices : 5
  Total Devices : 6
Preferred Minor : 0
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Oct  8 14:47:46 2014
          State : active, FAILED
Active Devices : 3
Working Devices : 5
Failed Devices : 1
  Spare Devices : 2

         Layout : left-symmetric
     Chunk Size : 256K

           UUID : d8ffba09:4dd603f4:9fd5bb0c:c7c903a4
         Events : 0.276828

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       34        1      active sync   /dev/sdc2
       2       0        0        2      removed
       3       0        0        3      removed
       4       8       66        4      active sync   /dev/sde2

       5       8       85        -      spare   /dev/sdf5
       6       8       18        -      faulty   /dev/sdb2
       7       8       53        -      spare   /dev/sdd5

现在操作系统能进去,就是RAID不正常。自己判断是SDB2后面扇区有问题,导致sync失败。怎么跳过那部分坏的扇区区? 丢一点数据可以接受,不要全部丢失就行。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP