<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sys Admin on William Floyd (low-quality images)</title>
    <link>https://w-floyd.com/categories/sys-admin/</link>
    <description>Recent content in Sys Admin on William Floyd</description>
    <generator>Hugo</generator><language>en</language><managingEditor>William Floyd</managingEditor><webMaster>William Floyd</webMaster><lastBuildDate>Tue, 29 Aug 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://w-floyd.com/categories/sys-admin/index.low.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ghetto NAS Part 1</title>
      <link>https://w-floyd.com/2023/08/ghetto-nas-part-01/</link>
      <pubDate>Tue, 29 Aug 2023 00:00:00 +0000</pubDate><author>William Floyd</author>
      <guid>https://w-floyd.com/2023/08/ghetto-nas-part-01/</guid><description>&lt;p&gt;This is an ongoing project to build a custom NAS on the most minimal budget possible.&lt;/p&gt;&#xA;&lt;h1 id=&#34;use-case&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#use-case&#34;&gt;Use Case&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;Storing a large (30TB+) amount of infrequently accessed data that must still be immediately accessible (primarily Jellyfin, Nextcloud), with some level of safety.&lt;/p&gt;&#xA;&lt;p&gt;Some details about my use case:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;There will be no external network access except via a single local client mounting the drive and sharing via ZeroTier&lt;/li&gt;&#xA;&lt;li&gt;There will be very few clients total&lt;/li&gt;&#xA;&lt;li&gt;Most data is replaceable, though inconveniently so (media may be reacquired / restored from backups)&lt;/li&gt;&#xA;&lt;li&gt;Neither latency nor throughput are very important&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;bill-of-materials&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#bill-of-materials&#34;&gt;Bill of Materials&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Quantity&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Item&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Per Unit Cost&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Notes&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;3&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Dell Wyse 3030LT Thin Client&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;$11&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;eBay - Fairly common, though may run out eventually - other thin clients will no doubt appear&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;3&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;HGST 10TB He10 510&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;$80&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Amazon / eBay - Very common, can pick these up any day&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;3&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;ORICO 3.5in to USB enclosure&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;$25&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Amazon - Could use another, this is what I chose, does the job for me&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;5&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Ethernet Cables&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;$2.5&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Amazon - $12.50 / 5 pack - Or whatever you have lying around&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;1&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;8 Port Ethernet Switch&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;$13&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Amazon - Or whatever you have lying around&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;0.5kg&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;PLA&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;$20&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;For the NAS enclosure&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h1 id=&#34;rationale&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#rationale&#34;&gt;Rationale&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;In order of importance for my use case: Price &amp;gt; Redundancy &amp;gt; Performance&lt;/p&gt;&#xA;&lt;h2 id=&#34;hardware&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#hardware&#34;&gt;Hardware&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;thin-client&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#thin-client&#34;&gt;Thin Client&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;You simply cannot beat a whole working Linux box for $11.&#xA;With 2GB RAM, 4GB eMMC, 1 GbE, 1 USB 3 port, and a bundled power adapter, it does the bare minimum I need.&lt;/p&gt;&#xA;&lt;h3 id=&#34;hdd&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#hdd&#34;&gt;HDD&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Similarly, &lt;strong&gt;used&lt;/strong&gt; enterprise drives deliver an amazing value.&#xA;For less than &lt;span class=&#34;katex&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mn&gt;9&lt;/mn&gt;&lt;mi mathvariant=&#34;normal&#34;&gt;/&lt;/mi&gt;&lt;mi&gt;T&lt;/mi&gt;&lt;mi&gt;B&lt;/mi&gt;&lt;mi&gt;o&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;mi&gt;u&lt;/mi&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mi&gt;o&lt;/mi&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;10/TB with the enclosure, these drives are the cheapest possible way to get storage right now.&#xA;By using external enclosures we can also upgrade to larger drives in future, with minimal effort.&#xA;No shucking required!&lt;/p&gt;&#xA;&lt;p&gt;I buy ones that have a 5 year warranty (spoiler - it&amp;rsquo;s worth having!).&lt;/p&gt;&#xA;&lt;h3 id=&#34;networking&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#networking&#34;&gt;Networking&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;1GbE is plenty enough for me, but if in future I need more speed, I can find a network switch with 10GbE uplink and scale horizontally a fair bit.&#xA;For now, a cheap unmanaged GbE switch will do just fine.&lt;/p&gt;&#xA;&lt;h3 id=&#34;ups&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#ups&#34;&gt;UPS&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Not 100% required, but the peace of mind in having the whole system on a UPS is worth it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;software&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#software&#34;&gt;Software&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;gluster&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#gluster&#34;&gt;Gluster&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;I am using Gluster to run my NAS cluster.&#xA;This is in large part due to its very modest hardware requirements, especially memory.&#xA;I can run my nodes with less than 50% memory utilization, and not fill my limited eMMC storage either.&#xA;It is very easy to work with, and offers flexible redundancy configurations.&lt;/p&gt;&#xA;&lt;h4 id=&#34;configuration&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#configuration&#34;&gt;Configuration&lt;/a&gt;&#xA;&lt;/h4&gt;&#xA;&lt;p&gt;I am using Gluster with a dispersed volume, using the native client on my main server to mount the volume.&#xA;Dispersed lets me add clusters of bricks fairly easily, which suits my needs well.&lt;/p&gt;&#xA;&lt;h3 id=&#34;netdata&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#netdata&#34;&gt;Netdata&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;This lets me know if/when drives get full, lets me know drive temperature from SMART data, and will email me if any hosts go offline.&lt;/p&gt;&#xA;&lt;h1 id=&#34;experiences-so-far&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#experiences-so-far&#34;&gt;Experiences so far&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been too busy to document the whole process, but I currently have a 2 x (2 + 1) array running (if I&amp;rsquo;d known I&amp;rsquo;d need 6 drives, I&amp;rsquo;d have done 1 x (4 + 2), but I didn&amp;rsquo;t know at first).&#xA;Capacity is 60TB raw, 40TB usable.&lt;/p&gt;&#xA;&lt;h2 id=&#34;hdd-failures&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#hdd-failures&#34;&gt;HDD Failures&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;That 5 year warranty I mentioned?&#xA;I&amp;rsquo;ve needed it twice so far - one drive died about 1 month in, and a second died 2 months in.&#xA;To their credit, the vendor got me a return package label within one business day each time, and refunded me as soon as the return package arrived.&#xA;For now, I continue to use these drives because the $/TB is so good, but in future I may upgrade to some larger drives in the same way to keep power costs down.&lt;/p&gt;&#xA;&lt;h2 id=&#34;power-draw&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#power-draw&#34;&gt;Power Draw&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;6 x HDDs + 6 x Thin Clients + Network Switch + 12V Power Supply, draws about 40W at the wall under regular load (serving files).&lt;/p&gt;&#xA;&lt;h1 id=&#34;topology&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#topology&#34;&gt;Topology&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Not shown in feeds: a Mermaid diagram, drawn by JavaScript. &lt;a href=&#34;https://w-floyd.com/2023/08/ghetto-nas-part-01/&#34;&gt;View it on the site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&#xA;</description>
    </item>
  </channel>
</rss>
