RAID対応メモ


RAIDの関する備忘録

RAIDエラー時対応方法(1)

一度構成から外して、アタッチ => リビルド してみる方法

  • 現状確認
    ]$ cat /proc/mdstat
    ]$ sudo mdadm --detail /dev/md3
    ]$ sudo mdadm --misc --examine /dev/sda5
  • 再起動
    ]$ sync;sync;sync;
    ]$ sudo shutdown -h now
    ]$ cat /proc/mdstat
    <略>
    md3 : active raid5 sdb5[1] sdc5[3]
          1674267648 blocks super 1.1 level 5, 512k chunk, algorithm 2 [3/2] [_UU]
          bitmap: 4/7 pages [16KB], 65536KB chunk
    <略>
  • アタッチ
    ]$ mdadm --detail /dev/md3
    ]$ sudo mdadm --detail /dev/md3
    ]$ sudo mdadm --manage /dev/md3 --add /dev/sda5
    mdadm: re-added /dev/sda5
  • リビルド確認-1
    ]$ sudo mdadm --detail /dev/md3
    /dev/md3:
            Version : 1.1
      Creation Time : Sat Mar 31 02:53:04 2012
         Raid Level : raid5
         Array Size : 1674267648 (1596.71 GiB 1714.45 GB)
      Used Dev Size : 837133824 (798.35 GiB 857.23 GB)
       Raid Devices : 3
      Total Devices : 3
        Persistence : Superblock is persistent
    
      Intent Bitmap : Internal
    
        Update Time : Tue Jul 12 23:31:46 2016
              State : clean, degraded, recovering
     Active Devices : 2
    Working Devices : 3
     Failed Devices : 0
      Spare Devices : 1
     
             Layout : left-symmetric
         Chunk Size : 512K
    
     Rebuild Status : 15% complete
    
               Name : example.com:3  (local to host example.com)
               UUID : 8c4434d5:d2b94cf8:fe27cdef:3a404006
             Events : 125652
    
        Number   Major   Minor   RaidDevice State
           0       8        5        0      spare rebuilding   /dev/sda5
           1       8       21        1      active sync   /dev/sdb5
           3       8       37        2      active sync   /dev/sdc5
  • リビルド確認-2
    ]$ cat /proc/mdstat
    <略>
    md3 : active raid5 sda5[0] sdb5[1] sdc5[3]
          1674267648 blocks super 1.1 level 5, 512k chunk, algorithm 2 [3/2] [_UU]
          [=====>...............]  recovery = 26.0% (218353312/837133824) finish=128.2min speed=80414K/sec
          bitmap: 3/7 pages [12KB], 65536KB chunk
    <略>
    ]$ cat /proc/mdstat
    <略>
    md3 : active raid5 sda5[0] sdb5[1] sdc5[3]
          1674267648 blocks super 1.1 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
          bitmap: 0/7 pages [0KB], 65536KB chunk


Last-modified: 2016-07-13 (水) 06:38:13 (465d)