RAID5 に挑戦


RAID5 も試してみる

/etc/raidtab

bash-2.04$ cat /etc/raidtab
raiddev /dev/md0
        raid-level      5
        nr-raid-disks   4
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock   1
        device          /dev/sda1
        raid-disk       0
        device          /dev/sdc1
        raid-disk       1
        device          /dev/sdb1
        raid-disk       2
        device          /dev/sdd1
        raid-disk       3
bash-2.04$

RAID の作成

[root@hackkit /etc]# mkraid -R /dev/md0
DESTROYING the contents of /dev/md0 in 5 seconds, Ctrl-C if unsure!
handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sda1, 292969341kB, raid superblock at 292969216kB
disk 1: /dev/sdc1, 292969341kB, raid superblock at 292969216kB
disk 2: /dev/sdb1, 292969341kB, raid superblock at 292969216kB
disk 3: /dev/sdd1, 292969341kB, raid superblock at 292969216kB
[root@hackkit /etc]#
mdstat をみてみる
[root@hackkit /etc]# cat /proc/mdstat
Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 sdd1[3] sdb1[2] sdc1[1] sda1[0]
      878907648 blocks level 5, 4k chunk, algorithm 0 [4/4] [UUUU]
      [>....................]  resync =  0.0% (15376/292969216) finish=9511.4min speed=512K/sec
unused devices: 
[root@hackkit /etc]#
ところがいつまで経ってもHDDをアクセスする様子がない。
bash-2.04$ cat /proc/mdstat
Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 sdd1[3] sdb1[2] sdc1[1] sda1[0]
      878907648 blocks level 5, 4k chunk, algorithm 0 [4/4] [UUUU]
      [>....................]  resync =  0.0% (8556/292969216) finish=194171.5min speed=25K/sec
unused devices: 
bash-2.04$
また、ヤメかぁ?

結論:(私のスキルでは)使えん




RAID1 故障
ハックの記録
LinkStation/玄箱 をハックしよう

複数USBドライブ不可

Copyright (C) 2005 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市