請問 Linux software RAID1 可唔可以咁

CentOS
假如 install 用 640GB x 2 set 左 RAID 1.
如果死左一隻, 得一隻可唔可以 Boot 機 ?
如果唔得, 咁你地係點用個 Linux software RAID1?
Thanks

可以, 但要注意兩隻harddisk 都要config 好grub

可參考此fedora8文件:
http://www.howtoforge.com/set-up ... m-system-fedora8-p3

TOP

Thanks, 我試過用 on-board RAID 係唔得.

TOP

Use mdadm to create the RAID, and install grub on the MBR of both HDD.

TOP

Re #1

要係grub的menu.lst要設定fallback

http://www.gnu.org/software/grub/manual/

TOP

corvus 同 computer1975 既意思係 onboard RAID 都係咁 set ?

TOP

I just tried exactly this settings this week and hope the following information helps.

From internet information, on-board RAID support is less mature than software RAID, and actually no real benefit (say, CPU utilization) can be gain if using on-board "fake" RAID, it is suggested to use software RAID.

For software RAID 1, the most critical part is to install grub to both harddisk partitions so that either disk down can be recovered from booting by either disk.

I installed a software RAID 1 partition in my Debian Lenny.  The following is the configuration:

/dev/hda1 : swap (256MB)
/dev/hda2 : raid (3.7GB)
/dev/hdb1 : swap (256MB)
/dev/hdb2 : raid (3.7GB)
md0: /dev/hda2 (xfs), /dev/hdb2 (xfs)

after setup the software raid, run grub with the following commands:

#grub
Grub>device (hd0) /dev/hda
Grub>root (hd0,1)
Grub>setup (hd0)
Grub>device (hd0) /dev/hdb
Grub>root (hd1,1)
Grub>setup (hd1)
Grub>quit

Scenario 1: hdb down suddenly and no longer read at all, Simulate this by:

1. shutdown
2. replace hdb with a new harddisk
3. reboot
4. partition hdb as above (practically I need to make the new hdb2 larger than 3.7GB or else mdadm will complain)
5. mdadm --add /dev/md0 /dev/hdb2
6. after some minutes of data recovery, mdadm reported both drives up
7. run grub commands above

Scenario 2: hda down suddenly and no longer read at all, Simulate this by:

1. shutdown
2. move hdb (primary slave) to hda (primary master)
3. add new harddisk to hdb
4. proceed steps #3-#7 of Scenario 1

TOP

#7
如果唔 grub 未係死梗,搵例如 RIPLinux USB手指 boot 起可以指去 boot 指定的地方,及裝 grub,同時可以用佢來 fsck / smartctl 一下。RAID1 1of2 都可以 access 的。

(自己 touch wood 先)

TOP

Scenario 2: hda down suddenly and no longer read at all, Simulate this by:

2. move hdb (primary slave) to hda (primary master)


請問用 SATA harddisk 都係咁做 ?

有冇試過 linux software RAID 10 速度得唔得 ?

TOP

原帖由 Knight 於 2009-6-10 21:31 發表
corvus 同 computer1975 既意思係 onboard RAID 都係咁 set ?


因為RAID 1 是兩個HDD組成,你吾設定fallback當你sda(假設你BIOS預設sda開linux),grub吾會自動boot sdb

TOP