<?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>HomeLab on 0x2142 | Networking Nonsense</title>
    <link>https://0x2142.com/categories/homelab/</link>
    <description>Recent content in HomeLab 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/categories/homelab/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>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>
    <item>
      <title>Why Have a Home Lab?</title>
      <link>https://0x2142.com/why-have-a-home-lab/</link>
      <pubDate>Tue, 21 Mar 2017 08:00:20 +0000</pubDate>
      <guid>https://0x2142.com/why-have-a-home-lab/</guid>
      <description>Ever wonder if running a lab at home is worth it? This post explores why I think it&amp;rsquo;s an important investment</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>If you really want to become great at something, you practice it a ton, right? Well networking and IT work exactly the same. You&rsquo;re not going to become an expect by just reading a ton of tech books and blogs. While those certainly help, there is nothing better than simply getting your hands dirty. Having a good home lab setup is key to truly understanding how things work.</p>
<p>So how do you get started? Well the way that I built a home lab over the past 10 years is probably much different from you could today, given the amount of virtualization technologies available. Still, I believe that some physical pieces of equipment are necessary. I took classes in high school toward CCNA certification, and we had a lab of several routers and switches there. Once I got into the real world, I wanted to start working on additional certifications and just improve my skills overall. So I picked up an old Cisco 2611 router and a 2950 switch. I played with these for a bit and used them to get my CCNA Security, which at the time covered the basics of securing Cisco IOS routers and switches.</p>
<p>Another year or so down the road and I expanded by picking up a power-over-ethernet switch, and two Cisco 7900 series IP phones. Since I had discovered that the 2611 router could run Cisco&rsquo;s Call Manager Express, I decided to go for the CCNA Voice certification. Having this equipment to work on gave me experience that was much closer to real world, than if I had just studied the textbooks. I could configure things, break things, then sit there for hours until I figured out how to fix my problem. I could configure the entire system, test it all, then tear it down and completely rebuild. Being able to configure the entire CME system from memory gave me a lot of confidence toward taking the certification exam.</p>
<p>So do I still have a home lab today? Oh yeah, you bet I do! It&rsquo;s changed quite a bit from what it used to be, but the same concept still applies. I have an entire environment to play with, which allows me to test and learn new technologies outside of work. In fact, my &lsquo;home lab&rsquo; has evolved into just part of my home networks.
So here is what I&rsquo;ve got running today:</p>
<ul>
<li>Cisco ASA 5505 (Probably soon to be replaced with a <a href="https://www.amazon.com/gp/product/B01ICEO2U4/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=0x2142-20&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=B01ICEO2U4&amp;linkId=35fbe8300af4e5d1e26e7a860782b3ca">Juniper SRX 300</a>)</li>
<li>Two Cisco 2960G-8TC-L switches</li>
<li><a href="https://www.amazon.com/gp/product/B015PR20GY/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=0x2142-20&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=B015PR20GY&amp;linkId=864af1f40df3f986b49741655d21e926">Ubiquiti UniFi</a> 802.11n wireless access point</li>
<li>Synology DS411 Network Attached Storage with 4x 3TB drives (Soon to be replaced, as it is over 5 years old(Update: Got myself a <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>!))</li>
<li>A few spare PCs running VMware ESX 6.0</li>
</ul>
<p>The ASA, switches, and AP run just about all of my home network. I even have the ASA running AnyConnect SSL VPN so I can access my storage at home from anywhere. The Synology has been one of the best additions to my network and lab. For one, it acts as a centralized storage device for my home network. I back up all of my PCs to it, and any digital media I own is also stored on it so I can stream it to devices within my home. For two, the Synology acts as an iSCSI backend to my VMware hosts. This setup allows me much more flexibility with my lab.</p>
<p>On the ESX hosts, I have a few VMs for lab use and a few that are for my home network. A GitLab server hosts all of my Git repositories for my own personal coding projects. I have a CentOS box for running the Ubiquiti management web interface. Another few CentOS VMs for running bind DNS, Observium, and Splunk. I also run a personal Minecraft server on there, so it&rsquo;s not all work here 🙂</p>
<p>I love the idea that at any time I can just go home, spin up a few VMs, and start playing with something new. When I was learning Juniper&rsquo;s SRX platform, I downloaded their free trial of the vSRX and had it running for a while. When I changed jobs, I needed to learn a new web proxy software - so I downloaded their free trial and stood up a VM. You really learn a lot by building a platform from scratch, because you gain a better understanding of what impact certain configuration options have. You also have the freedom to change whatever settings you want and see what they do. I once had an idea for a coding project, so I turned up a VM running RabbitMQ - and spent a weekend learning how it works to see if it would accomplish what I needed for the project.</p>
<p>So to sum it up - I just want to say that having a home lab has really contributed a lot to my success. It offers way more flexibility than trying to test something at work, unless they also offer you a complete lab environment. Your lab doesn&rsquo;t have to start off perfect, nor does it need to have expensive equipment - it just needs to help facilitate your ability to learn and gain experience.
Have a lab at home? Tell me about it in the comments below! I would love to hear what other people have done.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
