Upcoming NAS Server

dsc_0002

I’ve finally outgrown my Synology 416J NAS.  It’s a well built device, but you are completely limited as to expanding or improving the performance.  Currently an 8TB Seagate USB3 Device has the same or better CIFS speed than my NAS.

I plan on thoroughly benchmarking my current setup in SHR, RAID10 and RAID5.  Currently I have 2X3TB and 2X6TB in the Synology NAS and in both cases I’m maxing out the Gigabit Ethernet.

I’ve been investigating using FreeNas/OmniOS/Napp-It as a storage backend for Plex, Windows Backups and general file storage.

Here is a tease of the hardware

4X HGST 6TB He Drives

64GB DDR4 ECC

SuperMicro X10SDV-4C-TLN4F Motherboard

LSI 9211-8i HBA

Supermicro SSD-DM016-PHI 16GB SATA DOM (Disk on Module)

Fractal Node 304 Case

OCZ RD400/400A M.2 SSD

Intel X520-DA2 10G Network Card for Direct Connect to Plex VM

I’m still debating about adding another 12TB of HGST 6TB Drives.   I’m also trying to figure out a workflow of how to benchmark the current NAS Device as I’d like to show myself that what I’ve built is better than what I have. Also for the ZFS, I’m unsure of my ZIL/SLOG/L2ARC configuration.  I’ll take it as a learning experience and see what would work best for performance.

Install WMIC on Debian Jessie for Observium

Modified from here to work with Debian Jessie Observium Turnkey VM

Step 1 – Install Required Packages

apt-get install autoconf bzip2 make build-essential

Step 2 – Download the ‘wmic’ source to /tmp

cd /tmp

wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2

Step 3 – Untar the source

tar -jxvf wmi-1.3.14.tar.bz2

Step 4 – Go into the directory and add a line of text to the top of ‘GNUmakefile’

cd wmi-1.3.14/

#Edit ‘GNUmakefile’ and add the following at the top (just after the License Info) Step 5
ZENHOME=../..

Step 5 – Compile

make “CPP=gcc -E -ffreestanding”
#You will see an error, but if the bin file exists the build worked
Step 6
cp bin /bin/wmic

Duplicate File Finder Script

I’ve been trying to cleanup my Plex Library, and since I’m retrieving videos from a couple sources like TiVo and DVDs, I’m undoubtedly encountering doubles.  Now, there are handful of issues you run into like ignoring case and file extension.

Used Get-Duplicate Method from here 

[code language=”powershell”]
Function Get-Duplicate {
param($array, [switch]$count)
begin {
$hash = @{}
}
process {
$array | %{ $hash[$_] = $hash[$_] + 1 }
if($count) {
$hash.GetEnumerator() | ?{$_.value -gt 1} | %{
New-Object PSObject -Property @{
Value = $_.key
Count = $_.value
}
}
}
else {
$hash.GetEnumerator() | ?{$_.value -gt 1} | %{$_.key}
}
}
}

Function Show-Duplicates{
param($drive)
begin {
$duplicates = Get-Duplicate (Get-ChildItem $drive
| Foreach-Object {$_.BaseName}).ToLower() | Sort-Object

if($duplicates.Length -eq 0)
{
Write-Host "No Duplicates"
}
else
{
$duplicates | Sort-Object
}
}
}
[/code]

Pine64 Notes and LCD not working, but HDMI Does

When I first purchased mine via the initial Kickstarter, I had many issues getting working hardware.  Once I was able to get a non-damaged LCD, as apparently shipping from China is very difficult, I ran into an issue where video would work via HDMI but not via the Touch LCD.  The problem is that only the Android Image has LCD Drives built in.  Below are the steps I used to get the Touchscreen to work.dsc_0148

  1. Download the Android image for Card.  In my case its the 64GB Image
  2. Write to Card with Win32 Disk Imager
  3. Takes forever to write to SD Card
  4. Powers Up quick and LCD Works without issue
  5. Rotate Screen with this if needed

I hope that more OSes will be supported in the future for the LCD.  Pine64 has stated in their forums that the latest iteration of Android will not be made available for the Pine64.