software raid = raid bios??

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

software raid = raid bios??

文章UBL » 週一 12月 15, 2008 12:25 am

請問各位板友
如果電腦主機板(asus ts100-e5)上已經有raid bios的話
代碼: 選擇全部
Intel® ICH7R:
    Intel® MSM RAID 0,1,10,5 (Windows Only)
    LSI MegaRAID 0,1,10 (Windows & Linux)
Independent Marvell 6145 chip:
    RAID 0,1,10 (Windows/Linux)


(應該是使用ICH7R)
這個時候還需要安裝mdadm 或 mdraid??
還是說進到raid bios裡設定就ok了?

目前我是參考這個網頁在安裝過程中就設定好raid

結果第一次開機很ok~
等到硬碟同步完後(raid 1) 重開機
在開機畫面(還沒進到grub)就出現raid錯誤(offline)
解決方法是進raid bios裡重新配置raid
再重開機就ok了

我是覺得說 raid bios和mdadm應該相衝吧
不知道有沒有板友有其他想法?

主機的lspci
代碼: 選擇全部
00:00.0 Host bridge: Intel Corporation Unknown device 29f0 (rev 01)
00:01.0 PCI bridge: Intel Corporation Unknown device 29f1 (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) Serial ATA Storage Controller RAID (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:01.0 Ethernet controller: Accton Technology Corporation SMC2-1211TX (rev 10)
01:03.0 VGA compatible controller: XGI - Xabre Graphics Inc Volari Z7
02:00.0 RAID bus controller: Marvell Technology Group Ltd. Unknown device 6145 (rev a1)


fdisk -l
代碼: 選擇全部

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          18      144553+  fd  Linux raid autodetect
/dev/sda2              19         626     4883760   fd  Linux raid autodetect
/dev/sda3             627       30401   239167687+  fd  Linux raid autodetect

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          18      144553+  fd  Linux raid autodetect
/dev/sdb2              19         626     4883760   fd  Linux raid autodetect
/dev/sdb3             627       30401   239167687+  fd  Linux raid autodetect

Disk /dev/md0: 147 MB, 147914752 bytes
2 heads, 4 sectors/track, 36112 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 5000 MB, 5000855552 bytes
2 heads, 4 sectors/track, 1220912 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 244.9 GB, 244907638784 bytes
2 heads, 4 sectors/track, 59791904 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table


cat /porc/dmstat
代碼: 選擇全部
md2 : active raid1 sda3[0] sdb3[1]
      239167616 blocks [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
      4883648 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
      144448 blocks [2/2] [UU]

unused devices: <none>

UBL
可愛的小學生
可愛的小學生
 
文章: 9
註冊時間: 週六 7月 15, 2006 3:31 pm

文章阿信 » 週一 12月 15, 2008 8:42 am

如果你是要使用bios提供的raid功能(ICH7),可以安裝dmraid,他利用device mapper的機制映射成系統上的一顆disk,就可以跨Linux/Windows.
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

文章UBL » 週一 12月 15, 2008 12:21 pm

嗯嗯
我之前有參考這個網頁
不過Debian etch在安裝過程中並讀不到raid bios
所以照網頁的說法 是要先拿一顆IDE 的硬碟安裝系統後 再安裝dmraid
不過手邊沒空閒的IDE所以就直接安裝在/dev/sda上
然後使用dmraid -a y來啟用raid 結果/dev/mapper/並沒有出現任何BIOS RAID 磁碟的裝置檔案
重開機就近到busy box了 :crying:

剛剛又在網路看到
在安裝過程 加上 mdraid=true 就可以使用!?
http://wiki.debian.org/DebianInstaller/SataRaid
等等再來試看看
UBL
可愛的小學生
可愛的小學生
 
文章: 9
註冊時間: 週六 7月 15, 2006 3:31 pm

文章pokkys » 週二 12月 16, 2008 10:06 am

BIOS裡面的RAID功能,通常是一半軟體一半硬體,如果你要google的話,關鍵字應該是"fake raid"。而你提到的文章他講的是software-raid,這部份是全軟體的。和"fake raid"不太一樣。而"fake raid"驅動程式支援度不是非常好,其實效能和software-raid差不多,而software-raid有彈性多了。除非要在windows上讀,否則建議用software-raid就好。
pokkys
可愛的小學生
可愛的小學生
 
文章: 31
註冊時間: 週六 10月 09, 2004 8:52 pm

文章UBL » 週二 12月 16, 2008 9:37 pm

ok
那我就繼續使用dmadm吧
感謝你們的回答

etch在安裝過程打 install dmraid=ture 好像沒用
應該是只有lenny才有
UBL
可愛的小學生
可愛的小學生
 
文章: 9
註冊時間: 週六 7月 15, 2006 3:31 pm


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客