youzhengchuan 发表于 2014-09-12 15:17

软Raid中出现部分目录访问IO Input/Output Error

我是12块硬盘做了一个Raid5,其中有一块备份盘,从mdadm统计的信息看,硬盘都是正常的。

# mdadm -D /dev/md0
/dev/md0:
      Version : 0.90
Creation Time : Thu Dec 19 11:11:52 2013
   Raid Level : raid5
   Array Size : 19529656320 (18624.93 GiB 19998.37 GB)
Used Dev Size : 1952965632 (1862.49 GiB 1999.84 GB)
   Raid Devices : 11
Total Devices : 12
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Sep 12 15:10:05 2014
          State : clean
Active Devices : 11
Working Devices : 12
Failed Devices : 0
Spare Devices : 1

         Layout : left-symmetric
   Chunk Size : 512K

         UUID : 08efbba0:fd4373ba:ac22bbd0:c519d0f8 (local to host GNOP011-CT-GDDG-229-75)
         Events : 0.786

    Number   Major   Minor   RaidDevice State
       0       8       17      0      active sync   /dev/sdb1
       1       8       33      1      active sync   /dev/sdc1
       2       8       49      2      active sync   /dev/sdd1
       3       8       65      3      active sync   /dev/sde1
       4       8       81      4      active sync   /dev/sdf1
       5       8       97      5      active sync   /dev/sdg1
       6       8      113      6      active sync   /dev/sdh1
       7       8      129      7      active sync   /dev/sdi1
       8       8      145      8      active sync   /dev/sdj1
       9       8      161      9      active sync   /dev/sdk1
      10       8      177       10      active sync   /dev/sdl1

      11       8      193      -      spare   /dev/sdm1

但是今天发现这个服务器有很多inode信息的错误。
EXT4-fs error (device md0): ext4_lookup: deleted inode referenced: 2241567
EXT4-fs error (device md0): ext4_ext_get_blocks: inode #2240545: (comm nginx) bad extent address iblock: 0, depth: 1 pblock 0
EXT4-fs error (device md0): ext4_ext_get_blocks: inode #2240545: (comm nginx) bad extent address iblock: 0, depth: 1 pblock 0

经过检查,发现部分目录无法读取。
ls: cannot access data/2014/02: Input/output error

出现这种问题的原因是什么呢,如果是硬盘有io错误,Raid5不会自行通过校验将数据恢复到备盘上吗?
另外:这种io错误如何才能恢复数据呢,有什么方法么?
页: [1]
查看完整版本: 软Raid中出现部分目录访问IO Input/Output Error