<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Synology on 0x2142 | Networking Nonsense</title>
    <link>https://0x2142.com/tags/synology/</link>
    <description>Recent content in Synology on 0x2142 | Networking Nonsense</description>
    <image>
      <title>0x2142 | Networking Nonsense</title>
      <url>https://0x2142.com/logo.jpg</url>
      <link>https://0x2142.com/logo.jpg</link>
    </image>
    <generator>Hugo -- 0.143.1</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 22 May 2018 11:00:50 +0000</lastBuildDate>
    <atom:link href="https://0x2142.com/tags/synology/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Synology Volume Crash</title>
      <link>https://0x2142.com/synology-volume-crash/</link>
      <pubDate>Tue, 22 May 2018 11:00:50 +0000</pubDate>
      <guid>https://0x2142.com/synology-volume-crash/</guid>
      <description>What happens when you delay replacing a bad drive &amp;amp; experience multiple RAID failures?</description>
      <content:encoded><![CDATA[<p><sup><em>Note: I may receive commissions for purchases made through links in this post. This is to help support my blog and does not have any impact on my recommendations.</em></sup></p>
<hr>
<p>Back when I bought my Synology NAS in 2012, I picked up 4 Seagate 3TB drives. Yes, they&rsquo;re the same model (<a href="https://www.amazon.com/gp/product/B005T3GRLY/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B005T3GRLY&amp;linkCode=as2&amp;tag=0x2142-20&amp;linkId=2a2bdf0ea12f458505b4e35865b12f66">ST3000DM001</a>) that <a href="https://www.backblaze.com/blog/3tb-hard-drive-failure">BackBlaze</a> reported about in 2015 since these drives have an unusually high failure rate. I even managed to have one drive fail within the first few weeks, but I didn&rsquo;t think much of it - just submitted an RMA. Since then, I haven&rsquo;t worried too much about it and those drives have been running for over six years straight with no issues. Well, until recently anyways…</p>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en">Hmm. Two drives in my NAS are starting to complain...
<p>They&rsquo;re also 6 1/2 years old&hellip;</p>
<p>&hellip; But replacing them costs money.</p>
<p>— Matt (@0x2142) <a href="https://twitter.com/0x2142/status/989985136216301568?ref_src=twsrc%5Etfw">April 27, 2018</a></blockquote></p>
<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<p>Almost a month ago, I got a couple of email alerts from my Synology complaining about bad sectors. I hopped onto the device to check it out, and decided to run some of the extended SMART tests against the array. I already have these tests scheduled to run regularly, but I figured it can&rsquo;t hurt to run them just in case. As luck would have it, Disk 1 of my array failed it&rsquo;s SMART test within minutes.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">Dear user,
</span></span><span class="line"><span class="cl">Disk 1 on DS918+ has degraded severely and is in failing status. Please make sure that your data has been backed up and then replace this disk.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Additional disk information:
</span></span><span class="line"><span class="cl">Brand: Seagate
</span></span><span class="line"><span class="cl">Model: ST3000DM001-9YN166
</span></span><span class="line"><span class="cl">Capacity: 2.7 TB
</span></span><span class="line"><span class="cl">Serial number: XXXXXXXX
</span></span><span class="line"><span class="cl">Firmware: CC9C
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">S.M.A.R.T. status: Failing
</span></span><span class="line"><span class="cl">IronWolf Health Management: -
</span></span><span class="line"><span class="cl">Bad sector count: 128
</span></span><span class="line"><span class="cl">Disk reconnection count: 0
</span></span><span class="line"><span class="cl">Disk re-identification count: 0
</span></span><span class="line"><span class="cl">SSD estimated lifespan: -
</span></span></code></pre></div><p>The other three disks completed their tests with no reported issues. Disk 3 did worry me a bit though, because it had a rather high bad sector count (~12,000). I figured I would worry about Disk 1 for now, and once it was re-built I would start slowly working my way through the array. The drives were six years old anyways and I didn&rsquo;t expect them to last forever. At the same time, I really didn&rsquo;t want to dump the money to buy all new drives just yet.
After doing my own research and talking to a few other people I know, I opted to try out the <a href="https://www.amazon.com/gp/product/B008JJLZ7G/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=0x2142-20&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=B008JJLZ7G&amp;linkId=40e64b35853ffaab4ffa3e1c3d920689">Western Digital Red</a> drives. These drives are made for NAS systems and include some features that standard consumer drives don&rsquo;t. My array was also around 65% full, so I figured now would be the best time to start expanding the array. I bought one of the 4TB WD40EFRX drives and had it shipped as quickly as possible.
Unlike my previous Synology DS411, the 918+ supports the ability to hot-swap drives (the DS411 required disassembling the chassis). Once my new drive showed up, I pulled out disk 1 and put in the new drive. Logged into the Synology DSM interface and told it to start rebuilding the new drive. Simple enough, right?</p>
<p>Well, as luck would have it, I only got a few hours into the rebuild before I got this wonderful email:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">Dear user,
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Volume 1 has crashed. The system may not boot up.
</span></span></code></pre></div><p>At this point I was at work and wondering what the state of my NAS was. Did another drive die during rebuild? Have I lost data? Will I be able to recover any of my stuff? I threw in a ticket to Synology support immediately so I could get their input on this. I got back both good and bad news. The bad news? The volume was not going be repairable, and any attempt to repair disks would fail. However, the good news was that my data was fine, but accessible in a read-only state.</p>
<p>I still had my DS411 lying around, so I decided to make the investment in all new drives. I picked up three additional <a href="https://www.amazon.com/gp/product/B008JJLZ7G/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=0x2142-20&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=B008JJLZ7G&amp;linkId=40e64b35853ffaab4ffa3e1c3d920689">Red drives</a> and loaded all four them into my DS411. Soon enough I had created a new volume/RAID array and I was ready to copy my data over from the DS918+.</p>
<p>The big question was how exactly to replicate the data. I knew Synology had a few options for NAS-to-NAS syncing/backups, but I hadn&rsquo;t used them before.</p>
<p>The first option was to use <a href="https://www.synology.com/en-us/knowledgebase/DSM/tutorial/General/How_to_migrate_between_Synology_NAS_DSM_6_0_and_later#t3.2">Synology&rsquo;s HyperBackup</a> application. Unfortunately, this required two things I don&rsquo;t have. First, it would require me to install Hyperbackup, which wouldn&rsquo;t work since the volume was read-only (a state which also appeared to kill all non-critical packages). Second, it would require me to have at least double the space on my backup device - Enough to store a full-NAS backup, along with enough to restore that entire backup.</p>
<p>The second option for copying the data was using the <a href="https://www.synology.com/en-us/knowledgebase/DSM/help/DSM/AdminCenter/application_backupserv_sharedfoldersync">Shared Folder Sync</a> - which is the method I ended up using. This allowed me to set up a Synology-managed rsync job between the two NAS devices. I did need to make a configuration change to create the rsync tasks, which I couldn&rsquo;t do on the crashed volume. However, I took a chance and found out that when I reboot the crashed NAS, the volume would be writable until the volume crashed again. This gave me about ten minutes after startup to quickly create the replication job.</p>
<p>Unfortunately my older DS411 could barely handle the CPU requirements needed to copy the data. It did work, but it took a full week to copy ~5.3TB over a gigabit network. Once that copy was finished, I did a quick double-check to make sure I had everything. Then I went ahead and swapped the new drives into my DS918+ following the <a href="/how-to-migrating-to-a-new-synology-nas/">same steps</a> I used during my original migration.</p>
<hr>
<p>Overall I think I got extremely lucky here. The only thing I ended up losing was an iSCSI LUN with a few VMs, but I was able to retain all of my critical data. While I do have all of my NAS data backed up to a cloud service, I wasn&rsquo;t really happy with the idea of having to download 5.3TB over the Internet to restore my data. Since this event, I&rsquo;ve configured some additional alerting/monitoring of the drives in my DS918+. Next time I see signs of drive trouble I&rsquo;ll probably just replace it immediately without thinking twice about it.
Hopefully this helps out anyone else who runs into this issue! Let me know in the comments if you have any questions</p>
]]></content:encoded>
    </item>
    <item>
      <title>How to: Migrating to a New Synology NAS</title>
      <link>https://0x2142.com/how-to-migrating-to-a-new-synology-nas/</link>
      <pubDate>Tue, 24 Oct 2017 08:00:20 +0000</pubDate>
      <guid>https://0x2142.com/how-to-migrating-to-a-new-synology-nas/</guid>
      <description>Just bought an upgraded Synology NAS? Here&amp;rsquo;s how to migrate to the new unit</description>
      <content:encoded><![CDATA[<p><sup><em>Note: I may receive commissions for purchases made through links in this post. This is to help support my blog and does not have any impact on my recommendations.</em></sup></p>
<hr>
<p>Back in 2011 I picked up a Synology DS411 NAS, which has proved to be one of the most beneficial parts of my home lab. When I purchased it, I filled it with 4x 3TB drives for a total of 12TB of storage (~8TB usable with RAID5). I use the NAS as an iSCSI datastore for my home ESX hosts, which has helped me to run many more test virtual machines than I could have otherwise. I&rsquo;ve also been using the NAS as a media server, file server, and a general backup location for everything I do.</p>
<p>The only problem with the DS411 is that the device is now over six years old - which means its processing power just doesn&rsquo;t keep up with what I need it for today. The device is also reaching its end of life state, so I needed to replace it anyways. For reference, the device only came with a single-core 1.6Ghz processor and 512Mb of RAM.</p>
<p>Synology just recently released their new 2018 models, so I opted to pick up the <a href="https://www.amazon.com/gp/product/B075N1Z9LT/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=0x2142-20&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=B075N1Z9LT&amp;linkId=c2891aca5bc28b1ebf25847b6e687135">DS918+</a>. I could have upgraded to an equivalent model(DS418) of what I already have, but I was really interested in some of the additional features offered by the plus-series model. The DS918+ supports docker containers and Synology&rsquo;s own virtualization hypervisor - along with the ability to add extra RAM modules later if I need them.As sad as I am to see my DS411 go, it was definitely time for an upgrade!</p>
<p>Anyways, I just completed the migration from my old DS411 NAS to a new DS918+. The whole process was much easier than I had anticipated, but I figured I would write up a quick summary of what I did:</p>
<ol>
<li>
<p>First thing - Update the current NAS to the latest version of Synology DSM</p>
<ul>
<li>Control Panel &gt; Update &amp; Restore &gt; Click Update if one is available</li>
</ul>
</li>
<li>
<p>Take a backup of the DSM configuration</p>
<ul>
<li>Control Panel &gt; Update &amp; Restore &gt; Configuration Backup &gt; Click <strong>Backup Configuration</strong></li>
</ul>
</li>
<li>
<p>Power off the old NAS - in my case, my DS411</p>
</li>
<li>
<p>Unplug the old NAS and remove the drives</p>
<ul>
<li>For the DS411, this requires disassembling the chassis</li>
<li><strong>MAKE SURE YOU KEEP THE DRIVES IN ORDER</strong> (I actually printed labels to put on mine)
<ul>
<li>For the DS411, the drive numbers start top to bottom (Disk 1 is top, Disk 4 is bottom)</li>
</ul>
</li>
</ul>
</li>
<li>
<p>Install the drives into the new NAS - in my case, a DS918+</p>
<ul>
<li>Again, these drives must be replaced in the same order!
<ul>
<li>The DS918+ numbers left to right (Disk 1 is the first slot on the left, Disk 4 is last slot on the right)</li>
</ul>
</li>
</ul>
</li>
<li>
<p>Once all of the drives have been inserted - Plug in the new NAS and power it on</p>
</li>
<li>
<p>Download the <a href="https://www.synology.com/en-us/support/download/DS918+#utilities">Synology Assistant</a> application</p>
<ul>
<li>This is necessary because the new NAS will not retain the previous IP configuration of the old NAS</li>
</ul>
</li>
<li>
<p>Once the new NAS is booted up - Open Synology Assistant and click <strong>Search</strong></p>
<ul>
<li>It should locate the NAS, and the status should be <strong>Migratable</strong></li>
<li>In my case, it shows both network adapters for the NAS
<img alt="image" loading="lazy" src="/content/images/2017/10/synology1.png#center"></li>
</ul>
</li>
<li>
<p>Select the NAS and click <strong>Connect</strong> - This will launch the Web UI of the NAS</p>
</li>
<li>
<p>The WebUI should show something similar to the screenshot below, with the button to <strong>Migrate</strong></p>
<ul>
<li><strong>If the WebUI does not show you a migrate option, DO NOT CONTINUE.</strong> You may need to double-check that the drives have been inserted in the correct order.
<img alt="image" loading="lazy" src="/content/images/2017/10/synology2.png#center"></li>
</ul>
</li>
<li>
<p>Click <strong>Migrate</strong>, then you will be prompted to select whether you would like to migrate all settings or perform a clean install of DSM</p>
<ul>
<li>Performing a clean install will still retain all of the data on the NAS, but all DSM settings will be lost</li>
<li>I selected the option to retain all of my settings
<img alt="image" loading="lazy" src="/content/images/2017/10/synology3.png#center"></li>
</ul>
</li>
<li>
<p>Next, Click through the prompts to install the newest version of DSM
<img alt="image" loading="lazy" src="/content/images/2017/10/synology4.png#center"></p>
</li>
<li>
<p>Wait for the system to download and install DSM</p>
</li>
</ol>
<p><img alt="image" loading="lazy" src="/content/images/2017/10/synology5.png#center"></p>
<p>Once complete - you will be brought to your DSM login screen and the migration is complete!</p>
<p>If you selected to keep the DSM settings, everything should still be there - with the exception of your IP/network configuration.</p>
<hr>
<p>After all that is complete - you&rsquo;re ready to enjoy your new Synology NAS! The migration was significantly easier than I had expected it to be. The longest part for me was just removing the drives from the DS411 - since it requires disassembling the chassis and removing multiple screws to free the drives from the drive sleds. So far the <a href="https://www.amazon.com/gp/product/B075N1Z9LT/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=0x2142-20&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=B075N1Z9LT&amp;linkId=c2891aca5bc28b1ebf25847b6e687135">DS918+</a> is fantastic - and I would highly recommend purchasing one to anyone who is interested.</p>
<p>Hope this quick tutorial helps out - Let me know in the comments!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Odd Behavior of Protected Switchports</title>
      <link>https://0x2142.com/odd-behavior-of-protected-switchports/</link>
      <pubDate>Tue, 22 Aug 2017 08:00:29 +0000</pubDate>
      <guid>https://0x2142.com/odd-behavior-of-protected-switchports/</guid>
      <description>Some thoughts on an interesting issue I ran into with older Cisco switches &amp;amp; protected port configuration</description>
      <content:encoded><![CDATA[<p>I ran into an interesting issue recently, which was caused by use of the <code>switchport protected</code> command.
So I use a pair of Cisco 2960-8TC-L switches at home, for both my home network and lab. A few months back I ran a bunch of ethernet cabling within my house, which all terminated in a patch panel in the basement. I was able to migrate/consolidate enough of my ports so that I could dedicate one of the 2960s to the patch panel. I had eight ports on my switch, and eight ethernet drops in my house - one of which ran back to my lab network for internet.</p>
<p>Usually when I configure something like this, I want to try and take security into consideration as much as possible. I have a Synology NAS on my home network, which contains enough of my personal backups that I would want to keep this inaccessible from a typical house-guest. So by default, I made the following configuration standards on the ports connected to my patch panel:</p>
<ul>
<li>Any unconnected ports were added to my guest VLAN (which only has internet access)</li>
<li>Any ports that needed to be in my home VLAN were configured with port security, sticky MAC, and maximum 1 MAC allowed</li>
<li>All ports were configured as <code>switchport protected</code> (except the uplink)</li>
</ul>
<p>The concept of protected switchports should be fairly simple: Any port configured with <code>switchport protected</code> is not permitted to communicate with any other port configured with <code>switchport protected</code>. A protected switchport is only permitted to communicate with a non-protected port (in this case, my uplink/trunk to my other 2960). I added this mostly as a safeguard against a potentially malicious house-guest.</p>
<p>However, once I actually began to use my patch panel ports, I began to experience a very interesting issue. For example, I purchased a home security camera which by default used a wireless connection. The location of the camera unfortunately made the wifi connection a bit more unreliable than I would like for a security camera. So I went ahead and ran a cable to the nearest ethernet drop.</p>
<p>The IP camera uses my Synology NAS as a backend storage for any recordings. It was able to connect and stream video on the wireless connection, but the video was choppy. Once I plugged in the ethernet cable the connection actually got worse than it already was. From my Synology - the camera would become unresponsive for a while, then you could reach it again for a few moments, then back to unresponsive (about 60-70% packet loss). If I disabled the wireless NIC entirely, the camera would be completely unresponsive. However, this whole time I was able to reach the camera with no issues from my laptop which was connected via wireless (my AP uses the same switch as the Synology).</p>
<p>The NAS is connected to the 2960 in my lab, which is connected to the patch-panel-2960 via a single trunk port. From the Synology, I could still see ARP entries for my wired camera - I just couldn&rsquo;t reach it via ping or http. I spent a good hour or two trying a number of things: clearing ARP entries, double checking my trunk port configs, and I also upgraded the firmware on the IP camera. Nothing seemed to work. It made even less sense that anything else connected to the Synology-side switch could hit the camera with no problems.</p>
<p>It&rsquo;s worth noting that no ports on the Synology-side 2960 were configured with <em>switchport protected</em> - only the ports on the patch panel side. So I finally tried removing the <code>switchport protected</code> command off of the IP camera port - and magically it all started working.</p>
<p>The protected switchport config worked exactly as I would have expected for traffic between ports on the same switch - however, it seemed to act against what I would have expected once it crossed a trunk to another switch. It was especially odd that it only seemed to crop up between the Synology and the IP camera.
Oh well, I guess the only way you really learn something is by breaking it, right? I hope this might help someone who finds themselves in a similar situation.</p>
]]></content:encoded>
    </item>
    <item>
      <title>How to: Synology Backups with CrashPlan</title>
      <link>https://0x2142.com/synology-backups-with-crashplan/</link>
      <pubDate>Tue, 16 May 2017 08:00:28 +0000</pubDate>
      <guid>https://0x2142.com/synology-backups-with-crashplan/</guid>
      <description>In this post, we&amp;rsquo;ll walk through a tutorial on setting up Crashplan to back up a Synology NAS via NFS</description>
      <content:encoded><![CDATA[<p><sup><em>Note: I may receive commissions for purchases made through links in this post. This is to help support my blog and does not have any impact on my recommendations.</em></sup></p>
<hr>
<p>As part of my home lab, I have an older Synology DS411 that I picked up in early 2012. I&rsquo;ve been using the device since then with 4x 3TB drives as an iSCSI backend to my ESX host. Of course, I&rsquo;ve also been using the NAS for general file storage (photos, videos, documents, etc). So in late 2014 I decided that I needed to find a good backup solution for it.</p>
<p>I started using <a href="https://www.crashplan.com/en-us/">CrashPlan</a>, because they offer unlimited cloud storage for only $5.99 a month. This was amazing to me, because I had around 1.2TB of data at the time. I found a great community package <a href="https://pcloadletter.co.uk/2012/01/30/crashplan-syno-package">here</a>, which allowed me to install the backup client directly on the NAS. This ran great until late 2016 when CrashPlan updated to 4.8.0 and ended support for ARM processors (which is what the DS411 uses). For the past 6-7 months, I&rsquo;ve been unable to back up my primary storage device at home. Since my DS411 is reaching the end of it&rsquo;s life anyways, I figured I would just wait until I replaced it with one of the new Synology devices that use an Intel processor.</p>
<p>Well a few days ago, I received an email from CrashPlan threatening to delete my backups since my NAS hadn&rsquo;t connected in over 6 months. It makes sense why they do that - but I didn&rsquo;t want to lose my backups before I could replace the device. Re-seeding my backups whenever I picked up a replacement NAS would take forever (I think I have ~2TB backed up currently). So I finally forced myself to sit down and find an alternate solution.</p>
<p>Alright - so as of today I now have a dedicated CentOS VM running on my ESX host, which is connected to the Synology via NFS. This VM is running the CrashPlan client, and my backups have resumed! Here is how I got this all set up:</p>
<h2 id="synology-configuration">Synology Configuration</h2>
<ol>
<li>
<p>Enable NFS on the Synology</p>
<ul>
<li>Open up the <strong>Control Panel</strong> and go to <strong>File Services</strong></li>
<li>Scroll down to the <strong>NFS</strong> section, and check the box for <strong>Enable NFS</strong></li>
<li>Click <strong>Apply</strong></li>
</ul>
</li>
<li>
<p>Apply NFS permissions to each share</p>
<ul>
<li>Still under <strong>Control Panel</strong>, visit <strong>Shared Folders</strong></li>
<li>For each folder you need to back up via CrashPlan:
<ul>
<li>Select the folder and click <strong>Edit</strong></li>
<li>Click the tab for <strong>NFS Permissions</strong>, then click <strong>Create</strong></li>
<li>Enter the IP address for your CentOS VM (or other linux system)</li>
<li>Set privilege to <strong>Read-Only</strong> (you could probably leave this read-write, but CrashPlan only needs read permissions to back up data)</li>
<li>Click <strong>OK</strong></li>
</ul>
</li>
</ul>
</li>
</ol>
<h2 id="linux-vm-setup">Linux VM Setup</h2>
<ol>
<li>
<p>Build a CentOS VM - This can be on an ESX host like I used, or just a standalone PC</p>
<ul>
<li>Don&rsquo;t forget to use the same IP address that we entered in the Synology for NFS</li>
</ul>
</li>
<li>
<p>Install packages</p>
<ul>
<li>Make sure you get the latest package updates first: <strong>yum -y update</strong></li>
<li>Install NFS tools: <strong>yum -y installnfs-utils nfs-utils-lib</strong></li>
</ul>
</li>
<li>
<p>Test NFS</p>
<ul>
<li>If you have the packages installed and NFS set up correctly on the Synology, then you should be able to validate the configuration by using showmount. For example, here are the directories that I was using CrashPlan to backup:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">[root@SynologyBackupVM~]# showmount -e 10.12.32.2
</span></span><span class="line"><span class="cl">Export list for 10.12.32.2:
</span></span><span class="line"><span class="cl">/volume1/backups   10.12.32.209
</span></span><span class="line"><span class="cl">/volume1/documents 10.12.32.209
</span></span><span class="line"><span class="cl">/volume1/homes     10.12.32.209
</span></span><span class="line"><span class="cl">/volume1/photos    10.12.32.209
</span></span></code></pre></div><ul>
<li>Make your local Linux directory structure, which shouldmatch what the Synology structure is. So in my case, I made new directories on my local Linux VM for /volume1/backups, /volume1/documents, etc</li>
<li>Edit <strong>/etc/fstab</strong> to auto-mount your NFS shares on boot. In my case, I added the following lines:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl"># NFS Share location          Local Folder
</span></span><span class="line"><span class="cl">10.12.32.2:/volume1/backups   /volume1/backups   nfs defaults 0 0
</span></span><span class="line"><span class="cl">10.12.32.2:/volume1/documents /volume1/documents nfs defaults 0 0
</span></span><span class="line"><span class="cl">10.12.32.2:/volume1/homes     /volume1/homes     nfs defaults 0 0
</span></span><span class="line"><span class="cl">10.12.32.2:/volume1/photo     /volume1/photo     nfs defaults 0 0
</span></span></code></pre></div><ul>
<li>Reboot, and check to make sure each NFS share was actually mounted. If you do a <strong>ls /volume1/backups</strong>, do yousee all the files on the NAS in that folder?</li>
<li>If everything works, then grab the CrashPlan Client installer (4.8.2 was the latest at the time)
<ul>
<li><strong>wget <a href="https://download.code42.com/installs/linux/install/CrashPlan/CrashPlan_4.8.2_Linux.tgz">https://download.code42.com/installs/linux/install/CrashPlan/CrashPlan_4.8.2_Linux.tgz</a></strong></li>
</ul>
</li>
<li>Extract the files: <strong>tar -xzvf CrashPlan_4.8.2_Linux.tgz</strong></li>
<li>Run the installer: <strong>cdcrashplan-install/ &amp;&amp; ./install.sh</strong>
<ul>
<li>I just let CrashPlan use all the defaults, so I didn&rsquo;t change any options during install</li>
</ul>
</li>
<li>Set CrashPlan to start automatically: <strong>chkconfig crashplan on</strong></li>
<li>Make sure the service is already running: <strong>/etc/init.d/crashplan status</strong></li>
</ul>
</li>
</ol>
<p>At this point we should be able to run CrashPlan&rsquo;s backup client on our VM, which will pull the data across the network from the NAS. The last step is to set up our local PC for remote administration of the Linux VM. Unfortunately, this process has become more and more painful as CrashPlan keeps updating their clients. They provide their own <a href="https://support.code42.com/CrashPlan/4/Configuring/Using_CrashPlan_On_A_Headless_Computer">documentation</a> on how to do this piece, but I&rsquo;ll summarize what I did here:</p>
<h2 id="connecting-the-crashplan-ui-to-the-linux-vm">Connecting the CrashPlan UI to the Linux VM</h2>
<ol>
<li>
<p>Download and install the CrashPlan Client on your PC (In this case, I&rsquo;m using a Windows 10 laptop)</p>
</li>
<li>
<p>On your linux VM, run the following command to findyour authentication token: <strong>cat /var/lib/crashplan/.ui_info</strong></p>
</li>
<li>
<p>Back on the Windows side, place that token in the following file: <strong>C:\ProgramData\CrashPlan.ui_info</strong></p>
<ul>
<li>You will replace the existing token in the file</li>
<li>Also change the port from 4243 to 4200</li>
<li>Should look something like this when you&rsquo;re done: <code>4200,3da4v903-7q38-4r52-e67e-79aecxf760c4,127.0.0.1</code></li>
</ul>
</li>
<li>
<p>Download <a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html">PuTTY</a>, which will be used to create a SSH tunnel to our linux box</p>
</li>
<li>
<p>Open PuTTY and set the following configurations:</p>
<ul>
<li>On the left side, go to <strong>Connection</strong> &gt; <strong>SSH</strong> &gt; <strong>Tunnels</strong></li>
<li>Enter thesource port: <strong>4200</strong></li>
<li>Enter the destination: <strong>localhost:4243</strong></li>
<li>Click <strong>Add</strong></li>
<li>On the left side, go back up to <strong>Session</strong></li>
<li>Enter the IP address of your Linux VM</li>
<li>(optional) Under <strong>Saved Sessions</strong>, put in a name and click<strong>Save</strong></li>
</ul>
</li>
<li>
<p>Once that&rsquo;s done, go ahead and click<strong>Open</strong> to connect to your Linux VM</p>
</li>
<li>
<p>Log into the VM and just leave the window open.</p>
<ul>
<li><strong>Note:</strong> This SSH session will need to remain open any time you need to connect to your Linux VM and administer CrashPlan</li>
</ul>
</li>
<li>
<p>Open the CrashPlan client locally on your Windows machine</p>
</li>
<li>
<p>Log into CrashPlan using your account (Should be the same one you were previously using to back up your Synology with)</p>
</li>
<li>
<p>CrashPlan may give you a warning about migrating to a new PC, and ask if you want to adopt the backups - You want to acceptthis prompt, and let CrashPlan know that your new Linux VM is a replacement PC for your Synology.</p>
</li>
</ol>
<p>As long as everything went according to plan, the CrashPlan client should start scanning the NFS shares on your Linux VM and comparing them to what&rsquo;s already backed up. Once it completes its synchronization, it will initiate the backup processes again.</p>
<p>I was extremely happy that this worked, because I was able to start backing up my data again (which had apparently almost doubled since the last time CrashPlan was connected). In my case, moving to a Linux VM provided me with much better backup performance as well, since the Synology DS411 only has a 1.6Ghz single-core processor and 512MB of RAM.</p>
<p>I hope this helps out anyone else out there who may have been trapped in a similar scenario. If you have any questions, please feel free to leave me a comment below!</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
