Showing posts with label Synology. Show all posts
Showing posts with label Synology. Show all posts

Saturday, September 1, 2012

Netgear GS108T and Synology DS412+ Set Up Link Aggregation

The Process
First step is to power down the DS412+ and anything else in your network that needs re-cabling. Make sure to leave at least 2 ports free for the DS412+. Find the two Gig-E ports on the back of the DS412+ and hook it up to any two ports on the Smart Switch. In my case I made the Netgear GS108T the main switch and hooked it up to my Wireless router that connects to the Internet. A second Netgear switch is hooked up by a long cable to another room where the desktop and Xbox reside. Across the living room to the TV I have my old Linux NAS hooked up. Power everything up and make sure everything is communicating as is.


Configure Link Aggregation on GS108T
The GS108T comes with Windows software called SmartControlManager. Alternatively you can access it via a Web Browser if you know its IP address. How do you find it's address aside from using Smart Control Manager? My LAN uses the Wireless router as a DHCP server. So I logged on to that device and listed all DHCP client. Using the names I found the GS108Tv2. A quick browser launch and an http:// got me to the admin page.

From here I choose the Switching tab which immediately shows me the active ports. Follow LAG -> Basic -> LAG Configuration. Select the LAG1 entry (since this is an 8-port switch, you can have a maximum of 4 LAG). This is where it confused me at first. Selecting LAG1 populates the entry fields above it. Enter a Description, I chose "diskstation" then LAG Type of "LACP". Hit Apply.


Move to the LAG Membership option. From here select LAG1 then choose the ports the DS412+ was hooked up to. There is a yellow button that is equivalent of Select All. This works only if you have one device running LAG on this switch. Hit Apply.

That's it for the GS108T. Now to enable it on the NAS.


Configure Link Aggregation on Synology DS412+

Login to DSM on the DS412+ then launch Control Panel -> Network -> Network Interface -> Create
x IEEE 802.3ad Dynamic Link Aggregation -> Next
The two LAN ports should be automatically selected -> Next
x Get network configuration automatically (DHCP) -> Apply
You will now find one connection called Bond 1 rather than two LAN connections. Congratulations, you now have Channel Bonding turned on! The two LAN ports will now start working as a team for all incoming and outgoing requests.
Give it a stress test if you like.

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+ (paid link) with 4x Seagate 3TB 7200rpm drives with LAG enabled
ProRaid+ (paid link) with 4x Western Digital 2TB 5400rpm drives attached via SATA
ioSafe SOLO G3 Fireproof and Waterproof 3TB Hard Drive (paid link) for critical backups via USB 3.0
Netgear GS108T-NAS Prosafe 8-Port Gigabit Smart Switch (paid link) 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