RAID5復旧うまくいかず
はてなの質問のつづきです。
現在の状態
# cat /proc/mdstat md127 : inactive sdb5[0] sdd5[2] sdc5[1] 1126051776 blocks # mdadm --misc --detail /dev/md127 /dev/md127: Version : 0.90 Creation Time : Fri Sep 23 00:31:25 2011 Raid Level : raid5 Used Dev Size : 375350592 (357.96 GiB 384.36 GB) Raid Devices : 4 Total Devices : 3 Preferred Minor : 127 Persistence : Superblock is persistent Update Time : Tue Jan 14 08:35:59 2014 State : active, degraded, Not Started Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K UUID : 31fee7c7:e2d2a315:8566d34d:320caadf Events : 0.259 Number Major Minor RaidDevice State 0 8 21 0 active sync /dev/sdb5 1 8 37 1 active sync /dev/sdc5 2 8 53 2 active sync /dev/sdd5 3 0 0 3 removed
なので、1本足りない3本で動かすには、このコマンドで良いと考えました。
# mdadm --run /dev/md127 /dev/sd[bcd]5
mdadm: failed to run array /dev/md127: Input/output error
mdadm: /dev/sdb5 does not appear to be an md device
mdadm: /dev/sdc5 does not appear to be an md device
mdadm: /dev/sdd5 does not appear to be an md device
しかし、このようなエラーが出てしまいました。
質問ですが、「inactive」というのは、どういう状態でしょうか?
「run」されている状態で、あとはmountすれば良いだけなのかと思い、mountを試みると、
# mount /dev/md127 -t ext3 /mnt/md127 mount: 間違ったファイルシステムタイプ、不正なオプション、 /dev/md127 のスーパーブロックが不正、コードページまたは ヘルパープログラムの未指定、或いは他のエラー (could this be the IDE device where you in fact use ide-scsi so that sr0 or sda or so is needed?) In some cases useful info is found in syslog - try dmesg | tail or so
こうなってしまいました。