Friday, August 31, 2012

Synology DS412+ and My New Storage Network

Background
Back in 2000 I purchased my first DV camcorder. It was a Canon Elura that used MiniDV tapes. Every tape extracted about 13GB. Even today that's still a lot. You can easily fill hard drives with that much storage. At first I only edited the extracted clips then deleted them leaving the original footage on MiniDV tape. Tape was good for archival if you didn't mind waiting for the re-extraction.

Years have passed and I've switched to CF card which can't be used for archival. I have BD burners to make archival copies but I've found that old footage is still best kept close by. Initially I built a RAID desktop for keeping just photos. Then when .5 and 1TB drives became common I started keeping video on those drives.

It was initially going to be temporary but I've found that family events like birthdays and such required me to dig out years old footage so I never went back to delete them.   I got used to it. Fast forward to today and it's time for a major upgrade. My second generation self-built NAS is an Zotac IONITX-A-U running Ubuntu and SAMBA hooked up to USB drives via a hub. It's decent but not very fast. All those drives were formatted in NTFS and maxed out at 25MB/sec to read.    That's enough for viewing a few pictures here and there.  But I wanted something closer to what direct SATA gave me.


Picking the Synology DS412+
I originally considered the Drobo, Netgear and EMC/Iomega NAS.    I read the reviews and the Synology brand kept coming up.   Two things sold me on the thing: (1) Simplicity of DSM (2) Raw performance.  It was the fastest of the more reasonably priced NAS on the market.

Here's a sample of it's performance in my current configuration.   

Robocopy Write test
Copy from internal SATA drive to Diskstation via 1Gbps port (82.5MB/sec)
 
------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :       132       131         1         0         0         0
   Files :      9460      9460         0         0         0         1
   Bytes : 233.776 g 233.776 g         0         0         0    14.5 k
   Times :   0:48:33   0:48:22                       0:00:00   0:00:11


   Speed :            86472142 Bytes/sec.
   Speed :            4947.975 MegaBytes/min.

   Ended : Wed Aug 22 13:49:27 2012

Robocopy Read test
Copy from Diskstation to internal SATA via 1Gbps port (99.98 MB/sec)
------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :       132       131         1         0         0         0
   Files :      9461      9461         0         0         0         0
   Bytes : 233.776 g 233.776 g         0         0         0         0
   Times :   0:40:03   0:39:54                       0:00:00   0:00:09


   Speed :           104837993 Bytes/sec.
   Speed :            5998.878 MegaBytes/min.

   Ended : Wed Aug 22 14:38:14 2012

Not bad is it? That's over half the bandwidth of a directly hooked up SATA drive. Given that a single gigabit ethernet port has a theoretical cap of 125MB/sec its looking pretty good.   What this allows me to do is pick out some footage, pictures and music from the NAS and output to local USB and SATA drives.   It's the not the fastest configuration but while I'm doing quick edits in Sony Vegas on my laptop, the desktop could be rendering a composition in Adobe After Effects.

My current configuration
Synology DS412+ with 4x Seagate 3TB 7200rpm drives with LAG enabled
ProRaid+ with 4x Western Digital 2TB 5400rpm drives attached via SATA
ioSafe SOLO G3 Fireproof and Waterproof 3TB Hard Drive for critical backups via USB 3.0
Netgear GS108T-NAS Prosafe 8-Port Gigabit Smart Switch attached to 2x1Gigabit Ports on DS412+
Cyberpower 485AV UPS attached via USB


Hold your horses! What's that switch and UPS for you ask? The UPS gives the NAS a chance to do a proper shutdown should there be a power failure. The Smart Switch allows you to bond two ethernet ports together on the DS412+ but keep one IP address. A plain dumb switch would allow you to use the second port as a backup. But a Smart/Managed switch allows both to be used actively with a feature called Link Aggregation (LAG). A 1GigE port has a theoretical max of 125MB/sec but there is some waste in there that brings the real throughput much less. Those individual SATA devices in our previous tests could achieve 175MB/sec. Not to mention I have the ProRaid shared simultaneously as the DS412+'s internal volumes. I can't exceed the throughput of a single port for one transfer but I can have multiple devices and transfers at once each using either available port.  Effectively you can have a ceiling of 250MB/sec on all combined transfers.

Modest Simultaneous Device Test 
Can we prove that LAG is useful?  

(a) Copy from Leonovo W520 SATA to Diskstation via Wireless-G (35.37MB/sec write)
               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :        40        38         2         0         0        12
   Files :       962       961         0         0         1         1
   Bytes : 125.429 g 125.425 g         0         0    4.39 m  226.63 m
   Times :   1:00:35   1:00:30                       0:00:00   0:00:05


   Speed :            37092186 Bytes/sec.
   Speed :            2122.431 MegaBytes/min.

   Ended : Wed Aug 29 22:31:54 2012
(b) Copy from Ubuntu IONITX-A-U NAS from USB drive via 1Gig-E (22MB/sec write)

(c) Copy from HPE-380T whole SATA HDD (74.97 MB/sec write)

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :       568       565         3         0         0         0
   Files :     13809     13809         0         0         0         0
   Bytes : 748.996 g 748.996 g         0         0         0         0
   Times :   2:51:04   2:50:30                       0:00:00   0:00:34


   Speed :            78613676 Bytes/sec.
   Speed :            4498.310 MegaBytes/min.

   Ended : Wed Aug 29 22:42:43 2012

Yes! 132MB/sec with three devices.   This is a write test which is a slower operation.  If I started multiple copies plus video playback I could probably use up more bandwidth.  Keep in mind that 125MB is a theoretical maximum for a single port.  The extra port allows other devices to access the NAS if one is fully saturated. 


A Hint on Adding a Share to your Libraries
You might be wondering how I was able to mount My Documents from the NAS.   It's a trick using symbolic links.

Start -> Command Prompt -> Right-click -> Run as Administrator

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved. 
C:\Windows\system32> mkdir \diskstation
C:\Windows\system32> cd \diskstation
C:\diskstation>mklink /d Pictures \\diskstation\Pictures
symbolic link created for Pictures <===> \\diskstation\Pictures 

From here you can go to Explorer -> Libraries -> Pictures -> Properties -> Include a Folder

Power Consumption
2.7 Watts plugged in for DS412+ with 4 ST3000DM001
17.3 watts powering up (button press)
45.9 watts powering up (spinning up)
62.2 watts peak powering up (blue flashing light)
44-46 watts powered up doing raid check
49 watts doing CrystalMark

1 comment:

Wilfred Ketelaar said...

I also have the DS412+ in my network (I used to own a Drobo) and I like it very much. Although I 'only' have 4 2 TB drives and a total storage of about 8 TB, it suits me just fine. Currently I have about 1.2 TB of movies, some 1.1 TB of TV shows on the device and about 168 GB of own video's and music. Less then 50% of the drive is currently in use.