Quantcast
Channel: 看得透又看得远者prevail.ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
Viewing all articles
Browse latest Browse all 20486

Software Raid 1 之 Grub 設定

$
0
0

直接使用 Linux 下的 Software Raid 來建置 Raid 1。

當一顆硬碟死掉,而需要另一顆硬碟來開機。這時就必須將 Grub 裝在所有的 mirror 硬碟的 MBR。
我是用兩顆 SCSI 硬碟,所以,以下的例子也是以 SCSI 為主。如果你使用的是 IDE 硬碟,請自行調整。

先進入 grub:
# grub

接著,確定 /boot/grub/stage1 都有存在兩顆硬碟中(在 grub 的模式下):
find /boot/grub/stage1
結果是:
(hd0,0)
(hd1,0)
由於,我的第一顆硬碟已設好了,所以,直接設第二顆就好(在 grub 的模式下):
device (hd0) /dev/sdb
root (hd0,0)
setup (hd0)

這樣就會把 grub 安裝到 /dev/sdb 的 MBR。

備註:當你有一顆硬碟掛掉時,開機的那顆硬碟會是系統裡的第一顆硬碟,所以也就是 (hd0)。

參考來源:How to install on Software Raid

Viewing all articles
Browse latest Browse all 20486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>