ログ日記

作業ログと日記とメモ

ソフトウェアRAIDでgrubを二台に入れる

今までの開発マシン兼内部サーバを1Uサーバに移して、開発環境と内部サーバを切り分けた。
折角なのでついでにS-ATAの10000回転のHDDを2台買ってきてサーバマシンに取り付けた。


回転数とかS-ATAについて→ http://oshiete1.goo.ne.jp/qa2624223.html


自分のマシンが開発環境のみになったので、バックアップは自給自足。ということでソフトウェアRAIDすることにした。
BIOSで新しいHDDの優先順位を上げてから作業。


。。。。
起動しねええ。
仕方がないので古いHDDのgrubを立ち上げて、エディットモードで起動した。インストーラgrub-installが上手くいかなかったのか・・。
インストール後に以下を実行すれば・・と思ったけど下に追記

# grub
Probing devices to guess BIOS drives. This may take a long time.
 
 
    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
 
       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> device (hd0) /dev/sdb
device (hd0) /dev/sdb
grub> root (hd0,0)
root (hd0,0)
 Filesystem type is ext2fs, partition type 0xfd
grub> install /grub/stage1 (hd0) /grub/stage2 p /grub/menu.lst
install /grub/stage1 (hd0) /grub/stage2 p /grub/menu.lst
grub> quit
[ヅラド] Debian GNU/Linux etch で RAID 1 ミラーリングしてみる

起動した後に grub-install /dev/sda などで大丈夫だった。# やっぱこれじゃ二台には入らないかも。[あとでやる]
で、HDDの順序を戻すと(hd2)が(hd0)になったりするので設定を修正してgrub-updateをして・・結構面倒だ。