Board logo

標題: [raid 卡] 對 軟硬 Raid /Raid 5 /Raid 6 /Raid Ram 既一堆問題 [打印本頁]

作者: 22over7    時間: 2011-1-5 02:18     標題: 對 軟硬 Raid /Raid 5 /Raid 6 /Raid Ram 既一堆問題

我知道 軟raid會用CPU好多資源
硬Raid 一定係用Raid 卡
Raid 5可以容許死一隻hd
Raid 6 則可以容許死2隻
小弟望過下網上一D Raid test
有D test Raid 5 可以上到  8XX MB/s write   (7hd)
但又見有D test Raid 5 只有 2x MB/s write   (4 hd)
請問一下係咪應該係 軟raid(4hd)  同   硬 raid(7hd) 個case  既分別??
又見網上有人話 Raid 5 要有 Raid Ram 同電池,當真??
隻Raid Ram 又要幾大到先ok?
Raid 6又會否更重視Raid  Ram 大少??
請教
作者: melodyayaka    時間: 2011-1-5 05:19

我知道 軟raid會用CPU好多資源
硬Raid 一定係用Raid 卡
Raid 5可以容許死一隻hd
Raid 6 則可以容許死2隻
...
22over7 發表於 2011-1-5 02:18


A better RAID controller will provider better performance during the rebuild process.
I dont see the point to run Software RAID-5 in a production environment

The RAM + battery are for the write-back cache, because the write operation takes time in a RAID-5 setup, using write-back cache will provide better performance (Like Database I/O).
If you dont have a battery to protect the write-back cache, when there is a power lost, you will lost all the data in the cache if they have not yet been written into the disk.

Some high-end raid controller will even provide a CF-CARD to store the cache content in the event of power lost.
作者: airhins    時間: 2011-1-5 15:45

本帖最後由 airhins 於 2011-1-5 15:47 編輯

But for home usage, I would like to use MDADM..

Pros
1. Low Cost, (linux)
2. Higher Performance (after turning) -- (RAID5/6 ONLY)

Cons
1. Hard for new users
2. backup for important is a must
作者: 22over7    時間: 2011-1-5 16:56

But for home usage, I would like to use MDADM..

Pros
1. Low Cost, (linux)
2. Higher Performance (af ...
airhins 發表於 2011-1-5 15:45

Thank for answering my questions
Before that , I did never heard about MDADM
After some data search , I found out that MDADM is a Software Raid
Thats mean it was just using Sata controller to hold up the Raid
I was wondering does a MDADM Raid could have a better Performance than a Hardware under a same condition?( same HD, Same CPU)
( most of the tests show that software Raid 5/6 only have a very poor performance)
Also, what kind of chipset did MDADM support?

In addiction ,is it possibleto have MDADM working for windows under a dual-OS ( Linux/windows)
Moreover, could you show us some speed test result on MDADM ??
作者: KinChungE    時間: 2011-1-5 19:18

Thank for answering my questions
Before that , I did never heard about MDADM
After some data search ...
22over7 發表於 2011-1-5 16:56


MDADM冇得same cpu比
因為hardware raid用raid card上既processor, 但係MDADM係用system processor (CPU)
任何電腦都可以用MDADM, 只要多過一隻HDD, 裝Linux就可以
dual-OS一齊行就唯有vmware呢類software, 效能一定差
作者: yupennyhk    時間: 2011-1-5 20:36

提示: 作者被禁止或刪除 內容自動屏蔽
作者: 22over7    時間: 2011-1-6 15:38

裝個FREENAS就可以睇會下SOFT RAID5, 我3隻2TB GREED 行GIGA 都有6X MB WRITE
yupennyhk 發表於 2011-1-5 20:36

6xMB write  我接受唔到
所以先想玩HR

   
MDADM冇得same cpu比
因為hardware raid用raid card上既processor, 但係MDADM係用system processor (CPU) ...
KinChungE 發表於 2011-1-5 19:18

咁講法MDADM 都係software Raid.....
都唔會快得去邊啦我估.....
仲一定要用Linux.....行唔到adobe CS5
KinCE 兄 我想問下 Dell 5i 同 Dell 6i
除了6i 有Raid 6 同6i 行 256MB Ram 之外
效能上分別大唔大??
因為我見有人賣5i 連 512 MB Ram  仲平過6i 小小....
256 會唔會唔夠黎行Raid 6 ??
作者: harial    時間: 2011-1-6 16:00

Raid Card ram用黎做cache啫,raid card都係睇下你有幾多budget同做咩野
每張raid卡raid mode support都唔同,行raid 6 建議你玩512mb,但唔建議你用5i
作者: 22over7    時間: 2011-1-6 16:46

Raid Card ram用黎做cache啫,raid card都係睇下你有幾多budget同做咩野
每張raid卡raid mode support都唔同 ...
harial 發表於 2011-1-6 16:00

5i 有512MB but 行唔到Raid6
6i 行到Raid6 but 得256 MB ......
Ching 言下之意是否比較建議我入6i??
作者: rkkc    時間: 2011-1-6 17:20

6xMB write  我接受唔到
所以先想玩HR
22over7 發表於 2011-1-6 15:38


樓上是指 NAS 接 gigabit lan 有 6xMByte 寫入速度,gigabit lan 有 500Mbit (6x * 8) 傳送率 50% bandwidth 已很不錯;

soft RAID 本身一定不止那個數 (要在 cmd shell 做測試才知實數),只是受 gigabit lan 所限去不盡,換了 RAID 咭也快不了;

如果你目的是用 PC 做 NAS,先試 soft RAID 才考慮買 RAID 咭,因為 lan 才是瓶頸位;

不過即使是 Windows desktop 用 RAID,不妨先試 on board RAID (Intel/AMD) 或 Windows dynamic volume RAID。
作者: airhins    時間: 2011-1-6 17:28

本帖最後由 airhins 於 2011-1-6 17:44 編輯
樓上是指 NAS 接 gigabit lan 有 6xMByte 寫入速度,gigabit lan 有 500Mbit (6x * 8) 傳送率 50% bandwi ...
rkkc 發表於 2011-1-6 17:20



    I got 140MB/S up for RAID5, AFTER TUNING...(8GB SINGLE FILE SEQ. TEST)
4 X 1 TB (Run on ESXi VMFS)
作者: rkkc    時間: 2011-1-6 17:31

I got 140MB/S up for RAID5, AFTER TUNING...(8GB SINGLE FILE SEQ. TEST)
4 X 1 TB
airhins 發表於 2011-1-6 17:28


soft/hardware RAID5? local/network throughput?
作者: HK-Steven    時間: 2011-1-6 17:37

提示: 作者被禁止或刪除 內容自動屏蔽
作者: airhins    時間: 2011-1-6 17:44

本帖最後由 airhins 於 2011-1-6 17:52 編輯

If you run Windows, please forget MDADM.
but, if you are going to setup a nas, MDADM still is a good choice.
Why?
1. the bottleneck of lan (only 100MB/s)
2. After tweaking, soft-raid can be up to 200MB/s (4X1TB bare metal)
3. CPU is not really high, just about 30-60% (intel e3300 on 1.2GHz)
4. No need to pay more to upgrade your hardware controller
5. the more hardware controller speed, the more costs will be.

For you,

http://randomitblog.blogspot.com/2009/10/ubuntu-raid-tweak.html
(compatible for most Linux)
http://louwrentius.blogspot.com/ ... ize-benchmarks.html
作者: airhins    時間: 2011-1-6 17:50

本帖最後由 airhins 於 2011-1-6 17:54 編輯

回覆 12# rkkc


Virtualization: Intel E3300, 4GB Ram, 4x1TB Hitachi, Software Raid 5, Local, ESXi 4, VMFS, eager zeroed disk type, CentOS, LVM. Before tweaking, 100-120MB/s, 8GB Single File Seq. Test. After tweaking, up to 140MB/s during the same test.

Bare metal: Intel E3300, 6GB Ram, 4x1TB Hitachi, Software Raid 5, Local, CentOS, LVM. Before tweaking about 160MB/s, after tweaking, 200-240MB/s

All are Write Test...
作者: airhins    時間: 2011-1-6 17:51

本帖最後由 airhins 於 2011-1-6 17:56 編輯

回覆 13# HK-Steven

For MDADM only:

For Storage: 64K
For ISCSI (Run VM): 4K
作者: rkkc    時間: 2011-1-6 17:56

回復 13# HK-Steven

當然沒有定數,只是實際測試後,我通常定 stripe size 是 32KB: OS volume,128KB: data volume。
作者: airhins    時間: 2011-1-6 18:00

回覆 17# rkkc


    For MDADM:
I would like to refer this, and I tested that it also suitable for RAID 5
http://deinoscloud.wordpress.com ... ats-the-sweet-spot/
作者: airhins    時間: 2011-1-6 18:02

回復 17# rkkc


The IOPS would be reduced if your OS allocation unit is 4K
作者: rkkc    時間: 2011-1-6 18:07

回復 18# airhins

謝謝 ching 介紹測試方法,相信大部份原則也適用於其他 RAID 設備。
作者: HK-Steven    時間: 2011-1-6 22:57

提示: 作者被禁止或刪除 內容自動屏蔽
作者: rkkc    時間: 2011-1-6 23:10

回復 21# HK-Steven

硬件 RAID 咭每組 disk 只有一個 stripe size,如果裝 OS 選 32KB;

OS 分割 (partition) 的 cluster size 跟內定 (4KB) 便可以,儲存大型 files 的 data partition 可以選 8KB/16KB。
作者: HK-Steven    時間: 2011-1-6 23:27

提示: 作者被禁止或刪除 內容自動屏蔽
作者: 22over7    時間: 2011-1-6 23:43

樓上是指 NAS 接 gigabit lan 有 6xMByte 寫入速度,gigabit lan 有 500Mbit (6x * 8) 傳送率 50% bandwi ...
rkkc 發表於 2011-1-6 17:20

其實 我現在目的唔係NAS(不過將來有機會係)
只係想有組Raid 比我save data 同有快write/read speed     (both>200 MB/s)
唔想用onboard 有個reason 係想 行ACHI (SSD 好似要行ACHI 先用到tool 去保速??)
soft Raid5 在 6 隻HD 下既 write/read speed 大概可以去到幾多??
Raid 6 onboard 好似行唔到......
作者: rkkc    時間: 2011-1-6 23:44

回復 23# HK-Steven

下載 firmware 和 Windows 版 MegaCLI;

用管理員命令提示 Administrator: Command Prompt:
  1. MegaCli.exe/MegaCli64.exe -adpfwflash -f mr2108fw.rom -a0  <Enter>
複製代碼

作者: rkkc    時間: 2011-1-7 00:01

回復 24# 22over7

如果有獨立 SSD/HDD 裝 Windows 7,可以用 Windows 7 Pro/Ult/Ent 的 dynamic volume 把 4 隻 HDD 做 softRAID 5,不難有 200MB 以上寫入速度;

以上做法不影響 AHCI 的操作,日後用硬件 RAID 咭無須重裝 Windows (當然要 rebuild RAID)。
作者: 22over7    時間: 2011-1-7 00:05

回復  22over7

如果有獨立 SSD/HDD 裝 Windows 7,可以用 Windows 7 Pro/Ult/Ent 的 dynamic volume 把 4 ...
rkkc 發表於 2011-1-7 00:01

dynamic volume 能否支援 4隻以上的HD??
仲有,想問一下,如果OS 死了.....能否讀返Raid??是否一定要用win7?
Linux 又能否讀到dynamic volume 對raid?
作者: HK-Steven    時間: 2011-1-7 00:17

提示: 作者被禁止或刪除 內容自動屏蔽
作者: rkkc    時間: 2011-1-7 00:31

回復 27# 22over7

如果要兼顧 Linux/Windows RAID 共用,只有 Intel onboard Matrix RAID-0/1/5 可以兩邊通用 (mdadm 3.0.3);

Intel RAID driver 可以發到 trim command 去單隻 SSD,所以 SSD/HDD + 4 HDD RAID5 用 Intel ICH RAID mode,日後加 RAID 咭都不用重裝 Windows;

更正 dynamic RAID-5 volume 要 Windows Server 版才支援。
作者: 22over7    時間: 2011-1-7 00:34

回復  22over7

如果要兼顧 Linux/Windows RAID 共用,只有 Intel onboard Matrix RAID-0/1/5 可以兩邊通 ...
rkkc 發表於 2011-1-7 00:31


咁姐係win7 用唔到dynamic Raid-5??
咁就..... 一係onbroad raid 5 一係 raid 卡....
Ching 仲有冇其他方法?
作者: rkkc    時間: 2011-1-7 00:41

回復 30# 22over7

你用 AMD 底板?

Intel onboard RAID 效能不錯,即使 RAID disk 突然變 offline 都有辦法救無須 rebuild RAID,不妨考慮。
作者: 22over7    時間: 2011-1-7 09:16

回復  22over7

你用 AMD 底板?

Intel onboard RAID 效能不錯,即使 RAID disk 突然變 offline 都有辦法 ...
rkkc 發表於 2011-1-7 00:41

是也....
我用AMD 890FX-SB850.....
AMD 的Raid係麻麻??
作者: HK-Steven    時間: 2011-1-7 17:05

提示: 作者被禁止或刪除 內容自動屏蔽
作者: rkkc    時間: 2011-1-7 17:38

回復 33# HK-Steven

Read policy: Read Ahead
Write policy: Write Through <-- 如果有後備電:Write Back with BBU
I/O policy: Cached IO
Access policy: Read Write

因為你清楚實際用途,如果想找出理想 stripe size (32-1024)KB,用獨立 non-RAID HDD 裝 Windows,逐個 size 試 RAID (無須重裝 Windows);不變的事實:32KB-128KB 有利隨機存取細 files (幾百 KB),幾十 MB 以上的 files 用 256KB-1024KB 效率高。
作者: HK-Steven    時間: 2011-1-7 20:35

提示: 作者被禁止或刪除 內容自動屏蔽
作者: rkkc    時間: 2011-1-7 21:17

回復 35# HK-Steven

選 Write Back with BBU (backup battery unit),突然斷電重開時 RAID controller 會把未寫入 HDD 的 cache RAM data 補寫回去 HDD;

淨 Write Back (即使有 BBU) 遇上同樣情況 RAID controller 不會補寫 (即是 data corruption);

Write Through 寫入效能低,但不怕突然斷電;

有 BBU 選 Write Back with BBU,只有外置 UPS 選 Write Back,兩樣都沒有選 Write Through。
作者: idolclub    時間: 2011-1-8 01:50

5i 有512MB but 行唔到Raid6
6i 行到Raid6 but 得256 MB ......
Ching 言下之意是否比較建議我入6i?? ...
22over7 發表於 2011-1-6 16:46

6i即使只得256MB RAM,但速度仍會比有512MB RAM的5i快
作者: idolclub    時間: 2011-1-8 01:53

回復  rkkc


    我4隻諗住行os的
咁我set 32了
另外再請教師兄raid卡點樣update firmware?
我的 ...
HK-Steven 發表於 2011-1-6 23:27

Upgrade 9260 Firmware最簡單係在MSM內選Update Controller Firmware,但我通常都會在純DOS下進行升級
作者: idolclub    時間: 2011-1-8 02:10

回復  rkkc


    但可以有個option係write back
有個係write back withbbu
HK-Steven 發表於 2011-1-7 20:35

Write Back:或稱作Always Write Back會更貼切,意思就是即使沒有安裝BBU也強行開啟Write Back功能,但會加大因意外而流失資料的風險

Write Back with BBU:即是說當有安裝BBU時才開啟Write Back功能,否則便會自動切換到Write Through模式。
更確切一點的說法是當BBU的電量在正常水平時,Raid卡才會開啟Write Back功能;而當BBU的電量偏低、故障或正在充電時,Raid卡便會自動切換到Write Through模式,待電量回復到正常水平時才會換回到Write Back模式
作者: HK-Steven    時間: 2011-1-8 13:26

提示: 作者被禁止或刪除 內容自動屏蔽
作者: idolclub    時間: 2011-1-8 16:05

回復  idolclub


    佢要我login
但我試左好多次都唔得
佢話我無呢個account
明明我只得admintrator個ac ...
HK-Steven 發表於 2011-1-8 13:26

用戶名同密碼就係Windows的登入用和密碼,如果你沒有登入密碼就留空,但名一定要填

如你的Windows登入名為Administrator,則輸入Administrator即可
作者: HK-Steven    時間: 2011-1-10 18:45

提示: 作者被禁止或刪除 內容自動屏蔽
作者: idolclub    時間: 2011-1-11 23:31

回復  idolclub


   
請問呢上可以上嗎?
本身已經係9260-8i bios
可以上最新的?
thanks ...
HK-Steven 發表於 2011-1-10 18:45

可以用
作者: HK-Steven    時間: 2011-1-11 23:34

提示: 作者被禁止或刪除 內容自動屏蔽





歡迎光臨 電腦領域 HKEPC Hardware (https://h1.hkepc.com/forum/) Powered by Discuz! 7.2