2009-02-06

自建 Solaris FileServer

小弟使用電腦多年,大大話話需要備份的資料已有十年以上。過往曾使用 Windows Server 加上獨立硬碟,到 Windows Server 加上一張 IDE RAID。由設定到備份,其實 Windows Server 是不錯的,可借硬體損壞及作業系統受損也會令資料遺失,加上硬體老化,數年前轉用了 NAS,可借效能不滯及似乎支援大硬碟不太好,最後我也重投自設 File Server 的懷抱。可借對 NAS 失去信心,現在底板內建硬體又有硬體損壞後不能救回資料的問題,用 Windows 又有版權及病毒等煩惱,最後因為看過這個 Blog
http://breden.org.uk/2008/03/02/a-home-fileserver-using-zfs/

再了解 ZFS 後,決定使用 Open Solaris + ZFS 去作為我的下一個 File Server。

設定也不太難,基本上按著那個 Blog 的內容就能完成,我使用的硬體如下:
AMD Athlon 64 X2 5050e
ASUS M3N78-EM
2GB DDR2 ECC RAM x 2
WD 640 HD x 4

架設及設定好 CIFS share 和 iSCSI 後,做了一些測試,成績也有點令我好奇,先在這𥚃和大家分享:
Server: Open Solaris build 106
Client: Mac OSX 10.5.6
Gigabit Ethernet, jumbo frame enabled

[CIFS]
Results 35.41
System Info
Xbench Version 1.3
System Version 10.5.6 (9G55)
Physical RAM 3072 MB
Model MacBookPro2,2
Disk Test 35.41
Sequential 20.09
Uncached Write 6.79 4.17 MB/sec [4K blocks]
Uncached Write 76.25 43.14 MB/sec [256K blocks]
Uncached Read 36.05 10.55 MB/sec [4K blocks]
Uncached Read 91.34 45.91 MB/sec [256K blocks]
Random 149.22
Uncached Write 69.38 7.34 MB/sec [4K blocks]
Uncached Write 137.01 43.86 MB/sec [256K blocks]
Uncached Read 1169.04 8.28 MB/sec [4K blocks]
Uncached Read 236.00 43.79 MB/sec [256K blocks]

[iSCSI] 使用 golbalSAN iSCSI, file system Mac OS Extended (Journaled)
Results 81.43
System Info
Xbench Version 1.3
System Version 10.5.6 (9G55)
Physical RAM 3072 MB
Model MacBookPro2,2
Drive Type SUN SOLARIS
Disk Test 81.43
Sequential 49.61
Uncached Write 53.46 32.82 MB/sec [4K blocks]
Uncached Write 50.98 28.84 MB/sec [256K blocks]
Uncached Read 28.17 8.24 MB/sec [4K blocks]
Uncached Read 147.16 73.96 MB/sec [256K blocks]
Random 227.05
Uncached Write 289.91 30.69 MB/sec [4K blocks]
Uncached Write 93.03 29.78 MB/sec [256K blocks]
Uncached Read 1091.91 7.74 MB/sec [4K blocks]
Uncached Read 399.51 74.13 MB/sec [256K blocks]

[Local Disk] file system Mac OS Extended (Journaled)
Results 40.13
System Info
Xbench Version 1.3
System Version 10.5.6 (9G55)
Physical RAM 3072 MB
Model MacBookPro2,2
Drive Type SAMSUNG HM320JI
Disk Test 40.13
Sequential 58.88
Uncached Write 92.45 56.76 MB/sec [4K blocks]
Uncached Write 91.10 51.54 MB/sec [256K blocks]
Uncached Read 27.53 8.06 MB/sec [4K blocks]
Uncached Read 101.80 51.16 MB/sec [256K blocks]
Random 30.44
Uncached Write 10.68 1.13 MB/sec [4K blocks]
Uncached Write 89.44 28.63 MB/sec [256K blocks]
Uncached Read 61.81 0.44 MB/sec [4K blocks]
Uncached Read 96.22 17.85 MB/sec [256K blocks]

就成績來看,似乎 iSCSI 的成績十分理想,不過我想還是再作詳細一點的測吧!
這台 Server 大問題不多,小問題還有,例如 Windows 不能直接在 CIFS share 用 QuickTime 播放 Movie,但用 VLC 就可以,Mac client 則完全没問題。

另外 ftp server 及 file permission 也有一點要熟習的地方。希望快點架設好一台又穩定又快的 File Server 吧!

1 comment:

Anonymous said...

haa. it's a long entry...

perhaps you can make your own! you can name it as "Faiver" XD and apply for a patent!