Test post from android app

This is a test

分類: 其他 | 在〈Test post from android app〉中留言功能已關閉

Samba 50MB per second limit?

調試了幾日Openfiler 發覺用 Windows 連上NAS 唔夠Windows 連Windows 快。無論寫入或讀取,上限只有40MB/s。相對從 Windows 找檔到 Windows (both windows 7) 可以快過 80MB/s.

排除是 RAID5 慢的問題,在 Linux 下用 hdparam 做讀取測試,有 180MB/s

再試在 Windows 用 FTP (Filezilla)  從 NAS 下載反而可逹 110MB/s ,近乎 GbE 上限。

Googling, 用 “NAS slow”、”samba slow”、”samba RAID5 slow” 找到好多資料,但所有提及到的設定只可令到速度上升至50MB/s.

似乎上限在50MB/s

昨晚返而用 “samba 50MB” 找到一些資料。即是很多人都停在50MB/s。

再找Samba個Changes log發現以下幾點

  1. Samba 3.45 只用SMB v1, 而Vista 、Server 2008 & Windows 7 用SMB v2
  2. Microsoft 話 SMB v2 快過 SMB v1
  3. SMB v1 訊息最大64KB, 同TCP Windows Size 個Concept 一樣, 即是TCP Windows size max = 64KB,
    相對現在Linux Kernel 可以設定大過16MB相差很遠
  4. Samba 3.5 會加入 SMB v2.

可能等到Samba 3.5 release 才知能否突破這個限制

Samba 3.5 RC2 Available for Download (26 January 2010)
Download and Samba 3.5 rc2 Release note

分類: NAS, 網絡 | 標籤: , | 在〈Samba 50MB per second limit?〉中留言功能已關閉

My Home NAS

農歷新年幾日足不出戶,重點完成了家裏NAS PROJECT (除了NAS 還睇完100集REBORN)

因為有兩隻1TB是有DATA的,所以花了多了時間。
一晚時間做 BACKUP、一日安裝、兩日個調整,終於大功告成。

硬件

  • ASL ATOM 330 ITX
    onboard  ICH7 with 4x SATA、1x40PIN PATA,
    PCIE x16 slot (x8 Actual)
    Realtek 8111C Gigabit Ethernet
    AC97 (no use for me)
  • 1GB DDR2
  • 4GB CF BOOT UP
  • 4x1TB RAID5 (3隻Seagate + 1隻WD)

軟件

  • Openfiler 2.3 32bit
  • 外掛 TransmissionBT
  • 更新 proftpd 至 1.3.2c (支援 UTF8檔)
分類: NAS, 網絡 | 標籤: , , | 在〈My Home NAS〉中留言功能已關閉

Screen Protector

第一次覺得保護貼好重要

被剪鉗碰了一下, 只有保護貼花了.

分類: 其他 | 標籤: , , | 在〈Screen Protector〉中留言功能已關閉

Hard mod DELL M62xx 10GbE Stacking

本來要10GbE CX4 接口, 但後來order了10GbE Stacking.
幸運的是Stacking與否只差一粒100ohm電阻.

這張是除去電阻後

Hard Mod 後

分類: 網絡 | 標籤: , , , | 在〈Hard mod DELL M62xx 10GbE Stacking〉中留言功能已關閉

Openfiler RAID擴展、加碟

以下是測試Openfiler  Software RAID 5 擴展的過程

環景是Vmware ESXi, 由6隻Virtual Disk的RAID5擴展到7碟

先是檢視現有的RAID,
/sbin/mdadm –detail /dev/md0

在VM加多一隻SCSI DISK後, 做一次SCSI Rescan 令到新碟顯示

把新碟初始化

parted /dev/sdh
mklabel msdos
mkpart primary ext2 0 8192
set 1 raid on
quit

並把新碟加入RAID
mdadm –add /dev/md0 /dev/sdh1

把RAID由6碟擴展為7碟

mdadm –grow /dev/md0 –raid-devices=7

在背景碟擴佔用CPU不多

完成RAID

到Physical Volume

再擴大Logical Volume

最後到XFS

分類: 其他, 網絡 | 標籤: , | 在〈Openfiler RAID擴展、加碟〉中留言功能已關閉

Openfiler vs FreeBSD

早在一個月前已開始準備在家建立一台NAS,當時還未選定用FreeNAS還是Openfiler。
剛好有個PROJECT要為ESXi準備NAS Storage,所以返復測試了兩者。

今次測試的版本
Openfiler 2.3
FreeNAS 0.7

在驅動方面, 如終是LINUX的Openfiler佔優。
因為Openfiler 的Kernel 可以在Web介面上更新,而且想自己Compile Driver 也比較易。
無論在ESX下使用VMXNET3、還是ATOM NanoITX用RTL8111C的JUMBOFRAME支援上,比起使用FreeBSD 7.2的FreeNAS好。

FreeBSD 對於Realtek 8111的jumboframe支援應該要到 FreeBSD 8.0 才能解決。

論功能,FreeNAS 佔優
兩者皆有 iSCSI Target, iSCSI Initiator, NFS, SMB, FTP

但在FTP方面, FreeNAS 佔優。
FreeNAS用proftpd 1.31, 而Openfiler只是proftpd 1.30。雖然版本號相差很少,但可用性就大有不同。
FreeNAS是可以用UTF8的. 用UTF8支援的FTP CLIENT可以見到完整的檔名。而proftpd 1.30 就會出亂碼。

還未計FreeNAS原生有Bittorrent client,基本上可以選定FreeNAS了。

RAID管理,Openfiler LVM+XFS vs FreeNAS ZFS。
在RAID管理方面,Openfiler較強

用到電腦做家用NAS,差不多一定會用RAID。

在空間擴展方面,單以WEB面介面來比較,FreeNAS 較好。因為FreeNAS能用WEB介面使ZFS不斷以Stripe方法擴展。當然Stripe不是真正的RAID。
而Openfiler的Software RAID 只有建立array及加HDD入array為HOT SPARE功能。而且新建的array也不能加到現有的share folder入面。

但Openfiler的優勢是LVM可以在console用指令擴展array.
例如把4碟RAID5加多2碟成為6碟RAID5。

返而FreeNAS的ZFS未能做到。

Finally, LINUX WIN
餘下來的問題是選擇,要功能強大的Openfiler,但沒有UTF8 FTP支援。還是要簡單好用,但RAID未能逹標的FreeNAS?

其實最簡單就要令Openfiler入面的proftpd升給就可以。

設定方法、待續..

分類: NAS, 網絡, 軟件 | 標籤: , , , , | 在〈Openfiler vs FreeBSD〉中留言功能已關閉

Google Nexus One

同事的, 今天送到.

分類: 其他 | 標籤: , , | 在〈Google Nexus One〉中留言功能已關閉

redmine installation

My redmine setup log on Server 2008 SP2 x64 Web Edition, IIS7, native FastCGI and Microsoft URL Rewrite    

Base on 2 best article I found by googling    

with something I found may be useful.    

First of all –  prepare files    

 Then – Install files    

Step 1: Install Ruby 1.8.6.
According to Redmine Installation Guide ( http://www.redmine.org/wiki/redmine/RedmineInstall ), Support Ruby version is 1.8.6. & 1.8.7. 

Step 2: Install rails

gem install rails

Step 3: Install RubyForIIS
Because the fcgi extension not bundle in rails.
Afterward, test fcgi    

c:\ruby\bin\>irb
irb(main):001:0> require 'fcgi'  
=> true   
irb(main):002:0> quit

Step 4: Extract Redmine files to target folder    

e.g.  C:\inetpub\redmine    

below I will call it  [Redmine Path]    

Step 5: Create folder and Set folder permission (Step 7 on Redmine Installation Guide)
make a folder called \tmp and \public\plugin_assets under [Redmine Path]

cd [Redmine Path]
md tmp
md public\plugin_assets

and assign tmp, files, log,  public\plugin_assets IWAM account ( or Network Service  account) has full control    

    

    

Step 6: Create Database
Just create database, user account and password (Step 3 on Redmine Installation Guide).
make sure the default  database character is “utf-8” because the create database script did not assign.    

Step 7: Config files
copy [Redmine Path]\config\database.y ml.example to [Redmine Path]\config\database. yml and edit the “production” database connection settings    

Step 8: run database create script on redmine root folder    

rake db:migrate RAILS_ENV=”production”    and create session store    

cd [Redmine Path]
rake config/initializers/session_store.rb

Step 9: test site by using build-in webrick (step 8 on Redmine Installation Guide).    

ruby script/server webrick -e production

Step 10:IIS config

  1. Create a web site and set physical path to redmine public folder
  2. Copy/rename [Redmine Path]\public\dispatch.fcgi.example to [Redmine Path]\public\dispatch.fcgi
  3. Modify [Redmine Path]\config\environment.rb, uncomment line "# ENV['RAILS_ENV'] ||= 'production'" to assign the environment to production
  4. Copy/rename [Redmine Path]\config\email.yml.example to [Redmine Path]\config\email.yml and setup Outgoing email settings
  5. Module Setting
  6. URL Mapping
    Request path: dispatch.fcgi
    Module: FastCgiModule
    Executable (optional):
    c:\Ruby\bin\Ruby.exe|[Redmine Path]\public\dispatch.fcgi production

Step 11:URL Rewrite

paste following url rewrite config into web.config under <system.webServer> branch

<rewrite>
 <rules>
 <clear />
 <rule name="Imported Rule 1-1" stopProcessing="true">
  <match url="^(.*)(\.png)(\.)$" ignoreCase="true" />
  <conditions logicalGrouping="MatchAll" />
  <action type="Rewrite" url="{R:1}.png" appendQueryString="false" />
 </rule>
 <rule name="Imported Rule 1">
  <match url="^$" ignoreCase="false" />
  <action type="Rewrite" url="index.html" appendQueryString="true" />
 </rule>
 <rule name="Imported Rule 2">
  <match url="^([^.]+)$" ignoreCase="false" />
  <action type="Rewrite" url="{R:1}.html" appendQueryString="true" />
 </rule>
 <rule name="Imported Rule 3" stopProcessing="true">
  <match url="^(.*)$" ignoreCase="false" />
  <conditions logicalGrouping="MatchAll">
  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
  </conditions>
  <action type="Rewrite" url="dispatch.fcgi" appendQueryString="true" />
 </rule>
 </rules>
</rewrite>

Step 12:Minor configuration

[Redmine Path]\config\environment.rb

uncomment following line to force rails environment to production

ENV['RAILS_ENV'] ||= 'production'
分類: 軟件 | 標籤: , , | 在〈redmine installation〉中留言功能已關閉

好用的專案管理 – redmine

由於有新project 並且要有效管理現有的project, 一套管現軟件是必需的.
見到pfsense個redmine幾好, 再到wiki上對比過幾套的功能後, 最後選了redmine.

http://www.redmine.org/

第一次接觸 Ruby、Ruby on Rail, 同時又要在Server 2008 的IIS7 上用FastCGI運行, 再加上外面的FAQ唔多齊全. 結果玩足一日才能夠安裝完成.

分類: 軟件 | 標籤: , , | 在〈好用的專案管理 – redmine〉中留言功能已關閉