Archive

作者Archive

Wingsonic MRA508

2010年3月15日 stephenyeong 尚無評論

準備放在NAS用的 HOT SWAP 籠

Categories: NAS, 其他 Tags:

Openfiler upgrade proftpd to 1.33

2010年3月15日 stephenyeong 尚無評論

前幾日又被人追問點設定, 不幸地之前 DROP 下的NOTES 不見了. 結果今早在VM下由頭SET一次.

1. Install related component

conary update gcc gcc:devel
conary update libtool libtool:devel
conary update glib glib:devel
conary update glibc glibc:devel
conary update automake autoconf pkgconfig
conary update gcc-c++
conary update pam:devel

2. Download & extract proftpd (in this case 1.3.3 )

wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz

tar -zxf proftpd-1.3.3.tar.gz
cd proftpd-1.3.3

3. Config & Compile

makesure proftpd ( ftp service ) stopped before “make install”.

./configure --prefix=/usr --sysconfdir=/etc/proftpd --localstatedir=/var/run --enable-nls --enable-auth-pam

make

make install

4. modify generate.inc

因為proftpd自1.3.2開始有一句config改了syntex, 所以openfiler要修改一下才能正常generate出1.32以後的proftpd.conf

Modify openfiler web generate.inc

vi ./opt/openfiler/var/www/includes/generate.inc

find

$ac_ftp_fp->AddLine(“DisplayFirstChdir\t\t.message”);

replace with

$ac_ftp_fp->AddLine(“DisplayChdir\t\t.message”);

修改完後到share edit 再 update 令openfiler更新一次proftpd.conf

這樣就可以start ftp service.

1.3.3 已解決MLST不能正常進入有”[]“的路徑問題. 所以不用disable mod-facts

關於1.3.2 的問題和解決方法.

FileZilla Forums • View topic – 550 error on certain characters

Disable ProFTPD 1.3.2 mod_facts

5. Completed & Test

Categories: NAS Tags: , ,

直接同DELL買的Broadcom 5709

2010年3月8日 stephenyeong 尚無評論

不是淘返來的 Broadcom 5709 Dual port GbE, 有iSCSI offload, 行PCI-E x8

Categories: 網絡 Tags: ,

Finally pfsense wireless bridge working

2010年3月2日 stephenyeong 評論已關閉

Finally, pfSense  2.0 router with AP working.

The tweak is, make both WLAN and LAN as opt  interface, bridge them and make bridged interface as LAN

interface to network port assignment

bridge interface members

Categories: pfsense Tags: ,

Test post from android app

2010年2月24日 stephenyeong 評論已關閉

This is a test

Categories: 其他 Tags:

Samba 50MB per second limit?

2010年2月19日 stephenyeong 評論已關閉

調試了幾日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

Categories: NAS, 網絡 Tags: ,

My Home NAS

2010年2月18日 stephenyeong 評論已關閉

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

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

硬件

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

軟件

  • Openfiler 2.3 32bit
  • 外掛 TransmissionBT
  • 更新 proftpd 至 1.3.2c (支援 UTF8檔)
Categories: NAS, 網絡 Tags: , ,

Screen Protector

2010年2月10日 stephenyeong 評論已關閉

第一次覺得保護貼好重要

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

Categories: 其他 Tags: , ,

Hard mod DELL M62xx 10GbE Stacking

2010年2月10日 stephenyeong 評論已關閉

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

這張是除去電阻後

Hard Mod 後

Categories: 網絡 Tags: , , ,

Openfiler RAID擴展、加碟

2010年1月30日 stephenyeong 評論已關閉

以下是測試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

Categories: 其他, 網絡 Tags: ,