You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

483 lines
17 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Lednerb">
<meta name="description" content="Bilberry Premium Theme for Hugo.">
<meta name="keywords" content="blog,personal,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta name="generator" content="Hugo 0.50" />
<title> [筆記] DIY FC Storage | My cool new Blog</title>
<meta name="description" content="[筆記] DIY FC Storage - Bilberry Premium Theme for Hugo.">
<meta itemprop="name" content="[筆記] DIY FC Storage">
<meta itemprop="description" content="[筆記] DIY FC Storage - Bilberry Premium Theme for Hugo.">
<meta property="og:title" content="[筆記] DIY FC Storage">
<meta property="og:description" content="[筆記] DIY FC Storage - Bilberry Premium Theme for Hugo.">
<meta property="og:image" content="https://www.gravatar.com/avatar/88188b6cc451928eba90e8400bc68086?size=200">
<meta property="og:url" content="https://h.cowbay.org/article/733/">
<meta property="og:site_name" content="My cool new Blog">
<meta property="og:type" content="article">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.717098cb5503581e75f12e486a847ca410bf8367d4d8713f4c37affc868c5a1d.css">
</head>
<body class="bilberry-hugo-theme">
<nav>
<div class="container">
<ul class="topnav">
<li><a href="/page/about-bilberry/">About Bilberry</a></li>
<li><a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Github</a></li>
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="Search ...">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/88188b6cc451928eba90e8400bc68086?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">My cool new Blog</a></h3>
<span class="subtitle">Hello World! This is the most epic subtitle ever.</span>
</div>
<div class="languages">
<a href="/en" class="active">en</a>
<a href="/de">de</a>
</div>
<div class="toggler">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf single">
<a class="bubble" href="/article/733/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="content">
<h3><a href="/article/733/">[筆記] DIY FC Storage</a></h3>
<div class="meta">
<span class="date moment">2014-03-31</span>
<span class="categories">
<a href="/categories/%E6%9C%AA%E5%88%86%E9%A1%9E">未分類</a>
</span>
</div>
<p>因為工作上的需求最近在測試VDI的環境雖然我本來已經有DELL的MD系列Storage
但是走的是iscsi的架構原本只有 1G的頻寬
考慮到VDI在某些特定時段會發生大量的流量吞吐的情形而且SI對於在現有環境下
實際測試出來的數據不滿意覺得不是很適合拿來建置VDI的環境。
當然啦,廠商想要賺硬體的錢,這種想法我可以接受
不過總是要知道如果改走8G甚至16G的fiber channel storage
和升級成10G的ISCSI 效能會差多少
可是廠商表示要借到整組走光纖的Server + Switch + Storage 可能有困難
而且基本上我手邊的機器也沒辦法停機下來裝HBA卡畢竟只是為了測試而已
再加上不好光明正大的跟老闆要個五萬十萬的預算就為了看看跑出來的效果如何,
老闆大概只會回我「共體時艱」&hellip;</p>
<p>那借又借不到,老闆又不給預算,那怎麼辦呢?
想來想去,乾脆來土炮一組好了!
機房內有一些零組件還有一台退役的R410要搞起來應該不算太困難吧.</p>
<p>底下簡單介紹這次測試用到的配備,其實光算硬體的價錢,真的不高,
畢竟都是一些散置在機房的備品,真正的額外支出很少</p>
<p>1.DELL 4G HBA 卡
DELL QLE2460 4G HBA Adapter x 2 / 300 RMB以內
淘寶購買一張一百多塊RMB
這是最具風險的部分,因為要從淘寶買過來,不敢保證東西到底會不會有問題
不過因為便宜還是跟他賭賭看8G的HBA售價幾乎是10倍以上所以不考慮
請大陸的同事買了之後直送台灣,很快就收到了</p>
<p>2.5.25轉 2.5 x4 / 1500 台幣
這次我計畫要測試4G的FC實際上到底能夠跑到多少速度
如果用2.5&rdquo;傳統硬碟,擔心硬碟速度會跟不上,
所以找了退役的四顆M4 64G SSD作為儲存空間
因為一般PC不會有這麼多的SATA電源可以用所以找了一個這種設備
<a href="http://www.icydock.com.tw/goods.php?id=97">http://www.icydock.com.tw/goods.php?id=97</a>
<a href="http://www.pcstore.com.tw/megabid/M13937041.htm">http://www.pcstore.com.tw/megabid/M13937041.htm</a>
把機殼上的一個5.25空間轉成4 x 2.5
本來這樣子做會擔心的就是硬碟溫度剛好我這次用SSD來測試不擔心溫度的問題
而且這個東西只需要一個大4pin電源就可以了。
3.光纖線 / 300 台幣
其實我一開始沒想到光纖線居然這麼貴,短短五米都開價一千多..
後來直接找協力廠商幫忙搞一條LC-LC的線來
算成本價 300塊 (我本來想請他喝杯飲料就算了 XD  )</p>
<p>4. DELL H700 Raid Controller
拍賣購買,含電池、線材 5000左右</p>
<p>5.其他硬體配備
CPU : i7 型號忘了 一點點重要因為有大量IO所以會吃CPU運算
不過大概也就是i3等級可以輕鬆應付
M/B : ASUS P8Z68 Deluxe 主機板部分滿重要的因為HBA &amp; Raid 都走PCI-E
而Z68本身沒有內建顯卡所以顯示卡又吃掉一個PCI-E 還好這張版子有
四個PCI-E 足夠使用(除了HBA/RAID/VGA我還多加了一張 Intel 網卡,
其實沒啥必要這張主機板本身就內建雙網卡其中一個也是Intel晶片)
RAM: Kingston 4Gx4 不是很重要當作STORAGE用RAM的用量不多
PSU: 隨便
CASE:隨便
硬碟: WD Sata 160G 灌系統用,不重要
OS: OSNexus QuantaStor 這東西滿有趣的可以用來管NFS/SMB/ISCSI/FC
有興趣可以下載來玩玩看,免費版可以用 6T的空間綽綽有餘。</p>
<p>花費不到 5000 台幣
其他配備就算都買新的,我想應該也是一萬以內可以搞定
主要就是注意PCI-E的數量要夠就好
SSD如果用128G的下去玩四顆 大概也是一萬
不過因為我有多的M4 所以就沒有另外買了</p>
<p>組裝過程就略過了
除了買來的HBA沒有短檔版要上R410時必須拆檔版而且不太穩之外沒什麼大問題
在R410上裝好VMWARE ESXI5 會自動抓到這張HBA卡不需要管驅動在PC上也是
安裝好QuantaStor就可以看到HBA卡了</p>
<p>設定步驟也略過&hellip;.</p>
<p>硬體、作業系統、VM都搞定之後
在ESXI上起一台Win8然後跑Crystal Disk Mark 測試看看
HBA跑 2G 速度時CDM測試出來的數據大概是 <sup>170</sup>&frasl;<sub>170</sub> MB
HBA跑 4G 速度時CDM測試出來的數據大概是 <sup>300</sup>&frasl;<sub>300</sub> MB</p>
<p><a href="http://www.cowbay.org/wp-content/uploads/2014/03/fc-4G-300MB.png"><img src="http://www.cowbay.org/wp-content/uploads/2014/03/fc-4G-300MB-1024x866.png" alt="fc-4G-300MB" /></a>
距離理論數據(2G: 250MB/ 4G: 500MB) 都還有一段距離,其實這也是讓我一直百思不解的地方
所以想上來問問看是不是在家用PC上PCI-E的頻寬其實是「共用」的
導致從RAID丟資料到HBA受限於頻寬才達不到理論數據
因為在我印象中光纖的儲存設備似乎不像ISCSI這種走ETHERNET的協定會有衰減的問
題吧?
或者是有人用過FC SAN的有沒有數據可以參考看看</p>
<p>找時間我再來把SSD裝去R410然後改從R410提供空間給PC
看看這樣會不會比較快..</p>
</div>
<div class="footer no-tags">
</div>
</article>
</div>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "bilberry-hugo-theme" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong>Latest posts</strong>
<ul>
<li>
<a href="/article/google-550-5-7-1-sloution/">寄信給google被退信 錯誤 550-5.7.1的解法</a>
</li>
<li>
<a href="/article/netdata-linux-system-performance-monitor-dashboard/">Netdata Linux System Performance Monitor Dashboard</a>
</li>
<li>
<a href="/article/linux-performance-monitor-dashboard-netdata-md/">Linux 底下極其詳細的System performace Monitor Dashboard - Netdata</a>
</li>
<li>
<a href="/article/syntax-test/">Syntax Test</a>
</li>
<li>
<a href="/article/psql-create-role-and-assign-priviledges/">psql create role and assign priviledges</a>
</li>
<li>
<a href="/article/study-url/">Study URL</a>
</li>
<li>
<a href="/article/rsync-time-backup/">[筆記] Linux 底下好用的備份工具 rsync-time-backup</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong>Categories</strong></a>
<ul>
<li>
<a href="/categories/%E6%9C%AA%E5%88%86%E9%A1%9E">未分類 (86)</a>
</li>
<li>
<a href="/categories/%E5%B7%A5%E4%BD%9C%E7%AD%86%E8%A8%98">工作筆記 (68)</a>
</li>
<li>
<a href="/categories/%E5%85%B6%E4%BB%96">其他 (46)</a>
</li>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (30)</a>
</li>
<li>
<a href="/categories/%E5%89%AA%E5%A0%B1">剪報 (18)</a>
</li>
<li>
<a href="/categories/starting">Starting (5)</a>
</li>
<li>
<a href="/categories/blog">Blog (4)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong>Social media</strong>
<a href="https://twitter.com/TheRealLednerb" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/Lednerb" target="_blank"><i class="fa fa-github"></i></a>
</div>
<div class="languages">
<strong>Other languages</strong>
<a href="/en" class="active">en</a>
<a href="/de">de</a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
</div>
<div class="author">
<a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "en" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("Y2C4RWMPXW", "50ea7f8c41c0ad233926e0be2b769ed1");
var index = client.initIndex("default-content");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 5, filters: 'language: en' }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'>Nothing found.</span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>