Friday, April 20, 2012

NAS4free - Minor GUI Improvement

I love NAS4Free GUI.  It shows information I am interested in and is highly usable.  A minor change (removal of an outer frame below the toolbar) makes the GUI cleaner.  Here is an animated show with before/after examples.


Wednesday, April 11, 2012

Hardware, New Iteration

Here is my new NAS box:
Interestingly enough, this configuration refused to boot with both memory sticks installed.  Overclocking from 200MHz to 266MHz solves the problem.  I conclude that the memory is just too fast for such a slow CPU.  As a result CPU runs at 2.3GHz.  Not a big deal, given that SpeedStep throttles it down most of the time anyway.
Setup ssh.

Sunday, April 8, 2012

NAS4Free, Take2, Success!

I fixed it!  That Samba crash I had while reading data from NAS - it is fixed!
I recreated mirror zpool, redid all CIFS/SMB settings, recreated shares, restarted the service and it just works!  Let me dig deeper to figure out what exactly had the effect!

Saturday, April 7, 2012

Open Indiana, Take2

While nas4free is being solidified  - samba crash there takes all the wind out of my excitement - I am giving another try to (Samba-free!) OpenIndiana 151a.  I have very high hopes for kernel-based CIFS support. This time a new storage adapter (IBM M1015 re-flashed to LSI9211-IT) is plugged in but not connected - the cables are still on a slow boat from China.
As before, the default install pukes on X boot.  Choosing VESA helps.  More than that, this time it just boots in native 1280x1024!  Last time I spent hours trying to achieve this.  And now it just happens with no effort on my part.  This time I also have a pair of Barracuda Greens connected.  My plan is to create a mirrored zpool and check out file transfer speeds between NAS and Windows 7 htpc. I will take another shot at enabling SMART and SpeedStep!

Sunday, April 1, 2012

Sanity Checks

Nas4free seems to be most suited to my requirements, but samba there just crashes on me.  In the meantime I am collecting network and hard drives throughput data on Windows.
HTPC runs Windows 7, NAS in this test runs Windows Vista. Both use Intel 82540EM PRO/1000 MT PCI NICs.
Rate of data copying between two internal SATA2 drives on HTPC: windows copy dialog shows 120MB/sec in the beginning of the copy process.  By the end it falls down to 87MB/sec.
Writing to NAS (to 300MB Seagate HD) is done at a rate of 43MB/sec.
Reading from NAS is done at a rate of 40MB/sec.
iperf bandwidth measurement between HTPC and another Windows PC is about 38MB/sec.  Enabling jumbo frames (or changing their size from 4k to 9k) has no effect at all.  I have no idea why the bandwidth is so low.  I ordered a CAT6 cable and will try one more time bandwidth tests with two windows PCs connected directly with no switch in between.
EDIT: later I determined that PCI NICs are the bottleneck!

Todo:
  • install syslog on the LAN to collect debugging info, e.g.  syslog-win32
  • Experiment with Wake-on-LAN - here is client which would wake NAS up.

While waiting for the production version of firmware to materialize and production HBA to show up on my door step I was pondering over the hard drive use strategy.  Should I go with RAIDZ?  Given that the NAS cage can hold up to 4 drivers, and I do not plan to expand, my options are limited to RAIDZ and MIRROR.  Here are two good articles on the subject.  Decided!  I will go with a mirror of two Barracuda Green 2TB drives.

Saturday, March 31, 2012

NAS4Free 9

Install of NAS4Free 9.0.0.1.43 on to a flash stuck in PATA was uneventful. But unlike Solaris, OpenIndiana and FreeNAS the web GUI showed me exactly what I wanted to know - real time status of NAS appliance: CPU frequency and load, SMART status of hard drives.

Power management worked and CPU frequency was adjusting according to load! On Solaris and OpenIndiana smartctl never worked for me. On FreeNAS smartctl did work but powerd did not and GUI was lacking this info.
I imported a ZFS hard drive created on FreeNAS8 and jumped to network throughput testing. Writing to NAS (I copied a 5.08GB DVD from win7 PC) went at around 40MB/sec.
Reading from NAS begins but then fails. Windows shows "Network Error" dialog "There is a problem accessing \\nas\zfs".
dmesg tells me "pid 7239 (smbd), uid 0: exited on signal 6"
log.nmbd and log.smbd contain nothing but startup messages.
Houston, we have a problem.
;-)
I will try to re-create ZFS vdev and pool and to reproduce.
More from the GUI diagnostics log:
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441422, 0] lib/fault.c:51(fault_report)
Mar 31 22:25:05 nas smbd[7102]: ===============================================================
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441703, 0] lib/fault.c:52(fault_report)
Mar 31 22:25:05 nas smbd[7102]: INTERNAL ERROR: Signal 11 in pid 7102 (3.6.3)
Mar 31 22:25:05 nas smbd[7102]: Please read the Trouble-Shooting section of the Samba3-HOWTO
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441749, 0] lib/fault.c:54(fault_report)
Mar 31 22:25:05 nas smbd[7102]:
Mar 31 22:25:05 nas smbd[7102]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441786, 0] lib/fault.c:55(fault_report)
Mar 31 22:25:05 nas kernel: pid 7102 (smbd), uid 0: exited on signal 6
Mar 31 22:25:05 nas smbd[7102]: ===============================================================
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441813, 0] lib/util.c:1117(smb_panic)
Mar 31 22:25:05 nas smbd[7102]: PANIC (pid 7102): internal error
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441883, 0] lib/util.c:1221(log_stack_trace)
Mar 31 22:25:05 nas smbd[7102]: BACKTRACE: 0 stack frames:
Mar 31 22:25:05 nas smbd[7102]: [2012/03/31 22:25:05.441976, 0] lib/fault.c:416(dump_core)
Mar 31 22:25:05 nas smbd[7102]: dumping core in /var/log/samba/cores/smbd
Mar 31 22:25:05 nas smbd[7102]:

Off to read Trouble-Shooting section of the Samba3-HOWTO

Friday, March 30, 2012

FreeNAS 8

I am impressed!  The installation lasted 10min 2sec.  FreeNAS 8.0.4 (FreeBSD 8.2, ZFS file system v4, ZFS storage pool v15) was installed on a 2GB flash card plugged into the PATA port. Reboot.  Reconfigured NIC for a static address.  Launched web GUI.  The GUI is kinda strange but totally usable.  Created a user.  SSHed into NAS to poke around. Left top running.  The rest was done solely through web GUI.
Imported NTFS volume, shared it through CIFS, measured network throughput by copying a 5.08GB DVD image.  NTFS is not really writable, but who cares about NTFS on NAS!
Created a UFS volume on a HD I used for OpenIndiana install - it was not recognized as ZFS and no option to import was offered.  Had to fiddle with CIFS service for the right permissions to become visible to Windows.  Measured network throughput. Pretty good!
Removed CIFS share and volume and created a simple ZFS volume forcing a 4KB sector.Again restarted CIFS to propagate the changes.  Measured network throughput.  Good!

FreeNAS 8.0.4 network (1Gbit, default frames) throughput as measured from a Windows 7 pc.  On the NAS side the following hard drive was used: WDC WD5000AAKS-00V1A0.

File SystemRead (MB/s)Write(MB/s)
NTFS40<1
UFS7535
ZFS7639

These are very solid results!  The biggest (and still unresolved) problem I had was in finding an SMTP server to accept reports e-mailed by NAS into my public mailbox.  So far none!
Update: resolved! Used google with application-specific password!
Yes, the versions of ZFS and even FreeBSD used in FreeNAS8 are not the latest and greatest.
There is no real time SMART status in web GUI. But smartctl works as expected which means you can hope that the GUI will catch up.
Overall it looks promising.  Good job, FreeNAS8 team!
I will check out FreeNAS 0.7.5.9496 tomorrow - look forward to FreeBSD 9.0-Release, ZFS storage pool v28, ZFS filesystem v5.
Scratch that! Instead I'll try NAS4Free 9.0.0.1.43
Improve benchmarking: use iperf.