今日、こないだ作ったサーバのHDD(/dev/sda)が1台壊れた。で、とりあえず再起動してしまえと思ってrebootしてしまってさぁ大変。もう一方(/dev/sdb)のMBRにgrubがインストールされてなかった、起動しなくなってしまった。先輩を長時間拘束してしまうことに。申し訳なさ過ぎて泣きそうになった。なので、次は一人で出来るようにメモっておかなければ。
- http://www.naney.org/diki/d/2004-01-05-RAID.html
- http://justlikeakame.com/pc/softwareraid.html
- http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ja/ref-guide/s1-grub-installing.html
- http://www.dur.ac.uk/a.d.stribblehill/mirrored_grub.html
- http://www.heart-pot.co.jp/rhraid.html
- http://www.miraclelinux.com/technet/faq/data/00080.html
下2つの記事がわかりやすかった。とりあえずまとめると、
# grub device (hd0) /dev/hda root (hd0,0) install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst device (hd0) /dev/hdb root (hd0,0) install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst quit
こんな感じのことやれば良いらしい。