2015/11/28

FreeNAS 開箱與組裝

更新: 似乎有許多外站連結到這篇文章,像是這篇, Google 翻譯出來慘不忍睹,所以我稍微翻譯了一下

Edit: So I got linked from a lot of places like this and Google Translate is horrible, so I decided to translate it myself.



世界上有二種硬碟:壞掉的硬碟,與將會壞掉的硬碟。三個月前,我手上的二顆舊硬碟被列為前者。上面沒有什麼重要資料,但少了二顆硬碟,很不方便。硬碟就跟醬油一樣,用完了就得出去添購。

There are two kinds of hard drive: broken ones; and will be broken ones. Two of my hard drives were categorized as the latter three months ago. There is nothing important on those, just inconvenient - thou shalt not be short on storage ever.

在科技公司工作的好處是,你身邊永遠有夠強的技客 (geek) 能為你解答任何有關科技的問題;壞處是,他們通常會告訴你:「殺雞焉用牛刀,我這裡有一套全自動系統,從左邊放進活雞,右邊就會出現烤雞。」從添購硬碟變成組裝 FreeNAS 大概就是這麼回事。

An good thing to work in a tech company is you always have geeks know everything, and the bad thing is they tend to provide you with overkill solutions - "I heard you like roasted chicken, I have a system that you just input with hens and you'll get roasted chickens as output." That's probably how it went from simply buying a few drives to a FreeNAS build.

以下為系統諸元:

主機板:SuperMicro X10SDV-4C-TLN2F
記憶體:Samsung M393A4K40BB0-CPB 32GB DDR4-2133 x 2
電源:Seasonic 550W G Series
機殼:Fractal Design Node 304
開機碟:Sandisk Cruzer Fit

不含硬碟,空機約台幣三萬五,跟 QNAP 這台差不多同價位。

So above are the specs of my system, those are motherboard, memory, power, case, and boot disk.
About $1150 USD without disks.

本次主角 SuperMicro X10SDV-4C-TLN2F
The motherboard.

這張板子畢竟不是給一般使用者用的,設計就不要太講究了......

內容物為主機板,六條 SATA 線,一片檔板,說明書與乾燥劑一包: 

The box design brought me back to 90s, but alas, this is not for normal users after all.

 Six SATA3 cables along with the shiny thing, and a quick manual are also included.


驅動程式與使用者手冊請上官網下載。

Go to Supermicro websites for drivers and full manual.


主機板近照:

 Closeups.


















CPU 散熱器沒有附風扇,要自己裝,可以用 40mm 或 50mm 的風扇。或是買 SNK-C0054A4L

一個 IPMI,二個 USB3,二個 10GbE,六個 SATA,一個 M.2 接頭(有 2242 與 2280 螺絲孔位)。拿來跑 L2ARC 正好。

24Pin 與 4Pin 電源接頭,這張板子可以只插 4Pin (12V),這樣你只需要一顆變壓器就可以開機,不必弄一顆電源供應器,整線也比較方便。

There is no heatsink fan, you can get a 40mm / 50mm fan, or a SNK-C0054A4L.

One IPMI port, 2 USB3, 2 10GBase-T ports, 6 SATA3, one M.2 (with 2242/2280 screw holes), perfect for L2ARC.

You can power this board with normal 24pin, or 4pin (12V) alone, so you don't need a PSU to run this, and better cable management.


海韻 G Series 550W APFC 80Plus Gold:
Seasonic Power.





可惜只有半模組化:
Sadly it's not fully modular.



Fractal Design Node 304 硬碟架:
HDD racks, or hangars.





硬碟架設計在電源供應器正上方:
Directly above PSU.



裝上電源供應器:
PSU installed.







裝上主機板,硬碟試組裝:
Motherboard and test with some HDDs.







間隔很小,不過散熱沒有問題。

Small clearance but no issue for heat dissipation.

記憶體與開機碟:
Memory and boot disks.



二條 32G DDR4 ECC Registered, 未來可以再加二條。

2x 32G ECC DDR Registered, maybe two more later.


用這個小玩意把開機碟藏在機殼裡面:

Hide the boot disks inside the case using this nice little thing:









重頭戲,沒有硬碟的 NAS 就如同沒有味噌的味噌湯:

No NAS is complete without HDDs.



六顆紅標 WD40EFRX 硬碟。
Six WD Red 4TB WD40EFRX.


罐頭塔(誤)

[This is a challenge for y'all to find out what does this mean.]


通通裝上去:

 Everything installed.





(旁邊忽然多出一張 Intel 網卡,是因為 FreeNAS 9.3 抓不到板子上的網卡,要等 FreeNAS 10 才有支援,下次升級系統就可以拔掉了。)

升級到 9.10 之後,多出來那張網卡已經拔掉了。

There is an extra Intel NIC appeared out of nowhere because FreeNAS 9.3 does not have the driver for the 10GbE, and that is removed after upgrading to 9.10.




雙網卡 LACP 效能實測,網芳 CIFS 最高速度 1.7Gbps

So I also setup LACP, this is its peak output, 1.7Gbps



完成圖:

Done and done.



目前上面掛了 Plex, Crashplan, 雖然還不到 3-2-1 備份法則,不過一般使用已經很夠用了

Now I have Plex and Crashplan (that crashes a lot) running. Not exactly following the 3-2-1 rule but seems enough for me.

謝謝收看。

Thanks.

2011/02/27

2010/03/13

傳輸時間計算

傳輸時間計算
 
之前常常下載檔案,然後我是那種會去算「什麼時候會載好」的人。

要算的時候,我就會打開小算盤,然後開始算「3Mbps = 375KB/S, 我檔案有2G, 2G=2048M....」,重複了幾次之後,不只是閃光嫌我喃喃自語很吵,連我自己都懶得算!

但是我還是想知道檔案什麼時候會載好啊!

因此心一橫,參考之前寫的磁碟空間計算,我再來寫一個「傳輸時間計算」!

然後就花了二個下午,把它寫出來了......

既然都寫好了,就拿出來給大家用用吧,我應該不是唯一一個會想知道「檔案什麼時候會載好」的人!

除了常見的網路頻寬以外,再額外加上常用的介面,如USB 2.0 等,用這個也是可以算的!

2010/01/26

用7-zip在linux下分割壓縮

請先裝7-zip

ubuntu上可以用下列指令安裝

sudo apt-get p7zip p7zip-full

懶人用法

7z a -mx=[壓縮比] -t[類型] -v[分割大小] [檔名] [欲壓縮檔案]

範例 (flag與option間無空格)

將 verybigfile.ext 用zip格式壓縮成 archive.zip, 每200M分割, 用最高壓縮比(9最高,1最低)

7z a -mx=9 -tzip -v200m archive.zip verybigfile.ext

最後會輸出archive.zip.001, archive.zip.002 ....

由於.7z還不是那麼流行,所以我傾向壓成.zip

因為在Linux上找不大到Windows比較能支援的分割壓縮法(用split需要用cat合起來...)

算是折衷方案

2009/12/23

BELKIN OmniView Pro2 F1DA104T 購入心得

[前言]

我房間以前有三台電腦,也曾經有三組鍵盤滑鼠螢幕

但是CRT實在太龐大了,我第二張桌子根本就放電腦就好了...

後來買了一個$450的手動(非電子式)KVM切換器