<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Backup on TurboVision</title>
    <link>https://turbovision.in6-addr.net/tags/backup/</link>
    <description>Recent content in Backup on TurboVision</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 21 Apr 2026 14:06:12 +0000</lastBuildDate>
    <atom:link href="https://turbovision.in6-addr.net/tags/backup/index.xml" rel="self" type="application/rss&#43;xml" />
    
    
    
    <item>
      <title>Storage Reliability on Budget Linux Boxes: Lessons from 2000s Operations</title>
      <link>https://turbovision.in6-addr.net/linux/storage-reliability-on-budget-linux-boxes/</link>
      <pubDate>Tue, 08 Nov 2011 00:00:00 +0000</pubDate>
      <lastBuildDate>Tue, 08 Nov 2011 00:00:00 +0000</lastBuildDate>
      <guid>https://turbovision.in6-addr.net/linux/storage-reliability-on-budget-linux-boxes/</guid>
      <description>&lt;p&gt;If there is one topic that separates &amp;ldquo;it works in the lab&amp;rdquo; from &amp;ldquo;it survives in production,&amp;rdquo; it is storage reliability.&lt;/p&gt;
&lt;p&gt;In the 2000s, many of us ran important services on hardware that was affordable, not luxurious. IDE disks, then SATA, mixed controller quality, inconsistent cooling, tight budgets, and growth curves that never respected procurement cycles. The internet was becoming mandatory for daily work, but infrastructure budgets often still assumed occasional downtime was acceptable.&lt;/p&gt;
&lt;p&gt;Reality did not agree.&lt;/p&gt;
&lt;p&gt;This article is the field manual I wish I had taped to every rack in 2006: what actually made budget Linux storage reliable, what failed repeatedly, and how to build recovery confidence without enterprise magic.&lt;/p&gt;
&lt;h2 id=&#34;the-first-uncomfortable-truth-storage-failure-is-normal&#34;&gt;The first uncomfortable truth: storage failure is normal&lt;/h2&gt;
&lt;p&gt;We lose time when we treat disk failure as exceptional. In practice, component failure is normal; surprise is the failure mode.&lt;/p&gt;
&lt;p&gt;Budget reliability starts by assuming:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;disks will die&lt;/li&gt;
&lt;li&gt;cables will go bad&lt;/li&gt;
&lt;li&gt;controllers will behave oddly under load&lt;/li&gt;
&lt;li&gt;power events will corrupt writes at the worst time&lt;/li&gt;
&lt;li&gt;humans will make one dangerous command mistake eventually&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once those assumptions are explicit, architecture becomes calmer and better.&lt;/p&gt;
&lt;h2 id=&#34;reliability-is-a-system-not-a-raid-checkbox&#34;&gt;Reliability is a system, not a RAID checkbox&lt;/h2&gt;
&lt;p&gt;Many teams thought &amp;ldquo;we use RAID, so we are safe.&amp;rdquo; That sentence caused more pain than almost any other storage myth.&lt;/p&gt;
&lt;p&gt;RAID addresses only one class of failure: media or device failure under defined conditions. It does not protect against:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;accidental deletion&lt;/li&gt;
&lt;li&gt;filesystem corruption from bad shutdown or firmware bugs&lt;/li&gt;
&lt;li&gt;application-level data corruption&lt;/li&gt;
&lt;li&gt;ransomware or malicious deletion&lt;/li&gt;
&lt;li&gt;operator mistakes replicated across mirrors&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The baseline model we adopted:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;availability layer + integrity layer + recoverability layer&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You need all three.&lt;/p&gt;
&lt;h2 id=&#34;availability-layer-sane-local-redundancy&#34;&gt;Availability layer: sane local redundancy&lt;/h2&gt;
&lt;p&gt;On budget Linux hosts, software RAID (&lt;code&gt;md&lt;/code&gt;) gave excellent value when configured and monitored properly. Typical choices:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;RAID1 for system + small critical datasets&lt;/li&gt;
&lt;li&gt;RAID10 for heavier mixed read/write workloads&lt;/li&gt;
&lt;li&gt;RAID5/6 only when capacity pressure justified parity tradeoffs and rebuild risk was understood&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We used simple, explicit arrays over exotic layouts. Complexity debt in storage appears during emergency replacement, not during normal days.&lt;/p&gt;
&lt;p&gt;A conceptual &lt;code&gt;mdadm&lt;/code&gt; baseline:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mdadm --create /dev/md0 --level&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; --raid-devices&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;2&lt;/span&gt; /dev/sda1 /dev/sdb1
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkfs.ext4 /dev/md0
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mount /dev/md0 /srv/data&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;The command is easy. The discipline around it is the work.&lt;/p&gt;
&lt;h2 id=&#34;integrity-layer-detect-silent-drift-early&#34;&gt;Integrity layer: detect silent drift early&lt;/h2&gt;
&lt;p&gt;Availability without integrity checks can keep serving bad data very efficiently.&lt;/p&gt;
&lt;p&gt;We implemented recurring integrity habits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SMART health polling&lt;/li&gt;
&lt;li&gt;filesystem scrubs/check schedules&lt;/li&gt;
&lt;li&gt;periodic checksum validation for critical datasets&lt;/li&gt;
&lt;li&gt;controller/kernel log review automation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The practical metric: how quickly do we detect &amp;ldquo;degrading but not yet failed&amp;rdquo; states?&lt;/p&gt;
&lt;p&gt;Early detection turned midnight emergencies into daytime maintenance.&lt;/p&gt;
&lt;h2 id=&#34;recoverability-layer-backups-that-are-actually-restorable&#34;&gt;Recoverability layer: backups that are actually restorable&lt;/h2&gt;
&lt;p&gt;Backups are often measured by completion status. That is inadequate. A backup is only successful when restore is tested.&lt;/p&gt;
&lt;p&gt;We standardized backup policy language:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;RPO&lt;/strong&gt; (how much data we can lose)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RTO&lt;/strong&gt; (how long recovery can take)&lt;/li&gt;
&lt;li&gt;retention classes (daily/weekly/monthly)&lt;/li&gt;
&lt;li&gt;restore rehearsal schedule&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Small teams do not need huge governance decks. They do need explicit recovery promises.&lt;/p&gt;
&lt;p&gt;A simple but strong pattern:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nightly incremental with &lt;code&gt;rsync&lt;/code&gt;/snapshot-like method&lt;/li&gt;
&lt;li&gt;weekly full&lt;/li&gt;
&lt;li&gt;off-host copy&lt;/li&gt;
&lt;li&gt;monthly restore test into isolated path&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;No restore test, no trust.&lt;/p&gt;
&lt;h2 id=&#34;filesystem-choice-conservative-beats-trendy&#34;&gt;Filesystem choice: conservative beats trendy&lt;/h2&gt;
&lt;p&gt;In the 2005-2011 window, filesystem decisions were often arguments about features versus operational familiarity. We learned to prefer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;known behavior under our workload&lt;/li&gt;
&lt;li&gt;documented recovery procedure our team can execute&lt;/li&gt;
&lt;li&gt;predictable fsck/check tooling&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A technically superior filesystem that nobody on call can recover confidently is a liability.&lt;/p&gt;
&lt;p&gt;This is why reliability is social as much as technical.&lt;/p&gt;
&lt;h2 id=&#34;power-and-cooling-boring-infrastructure-that-saves-data&#34;&gt;Power and cooling: boring infrastructure that saves data&lt;/h2&gt;
&lt;p&gt;Many storage incidents were not &amp;ldquo;disk technology problems.&amp;rdquo; They were environment problems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;unstable power&lt;/li&gt;
&lt;li&gt;overloaded circuits&lt;/li&gt;
&lt;li&gt;poor airflow&lt;/li&gt;
&lt;li&gt;dust-clogged chassis&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Low-cost improvements produced huge gains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;right-sized UPS with tested shutdown scripts&lt;/li&gt;
&lt;li&gt;clean cabling and airflow paths&lt;/li&gt;
&lt;li&gt;temperature monitoring with alert thresholds&lt;/li&gt;
&lt;li&gt;periodic physical inspection as routine task&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If your drives bake at high temperature every afternoon, no RAID level will fix strategy failure.&lt;/p&gt;
&lt;h2 id=&#34;monitoring-signals-that-mattered&#34;&gt;Monitoring signals that mattered&lt;/h2&gt;
&lt;p&gt;We tracked a concise set of storage health signals:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SMART pre-fail and reallocated sector changes&lt;/li&gt;
&lt;li&gt;array degraded state and rebuild progress&lt;/li&gt;
&lt;li&gt;I/O wait and service latency spikes&lt;/li&gt;
&lt;li&gt;disk error messages by host/controller&lt;/li&gt;
&lt;li&gt;filesystem free space trend&lt;/li&gt;
&lt;li&gt;backup job success + duration trend&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Duration trend for backups was underrated. Slower backups often predicted imminent failures before explicit errors appeared.&lt;/p&gt;
&lt;h2 id=&#34;incident-story-the-rebuild-that-almost-cost-everything&#34;&gt;Incident story: the rebuild that almost cost everything&lt;/h2&gt;
&lt;p&gt;One painful lesson came from a two-disk mirror where one member failed and replacement began during business hours. Rebuild looked normal until the surviving disk started showing intermittent I/O errors under rebuild load. We were one unlucky sequence away from total loss.&lt;/p&gt;
&lt;p&gt;We recovered because we had:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;fresh off-host backup&lt;/li&gt;
&lt;li&gt;documented emergency stop/recover plan&lt;/li&gt;
&lt;li&gt;clear decision authority to pause non-critical workloads&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Post-incident changes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;mandatory SMART review before rebuild start&lt;/li&gt;
&lt;li&gt;rebuild scheduling policy for lower-load windows&lt;/li&gt;
&lt;li&gt;pre-rebuild backup verification check&lt;/li&gt;
&lt;li&gt;runbook update for &amp;ldquo;degraded array + unstable survivor&amp;rdquo;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The mistake was assuming rebuild is always routine. It is high-risk by definition.&lt;/p&gt;
&lt;h2 id=&#34;capacity-planning-avoid-cliff-edge-operations&#34;&gt;Capacity planning: avoid cliff-edge operations&lt;/h2&gt;
&lt;p&gt;Storage reliability fails quietly when capacity planning is optimistic. We set growth guardrails:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;warning at 70%&lt;/li&gt;
&lt;li&gt;action planning at 80%&lt;/li&gt;
&lt;li&gt;no-exception escalation at 90%&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This applied per volume and per backup target.&lt;/p&gt;
&lt;p&gt;The goal was to never negotiate capacity under incident pressure. Pressure destroys judgment quality.&lt;/p&gt;
&lt;h2 id=&#34;data-classification-reduced-risk-and-cost&#34;&gt;Data classification reduced risk and cost&lt;/h2&gt;
&lt;p&gt;Not all data needs identical durability, retention, and replication. We classified:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;critical transactional/configuration data&lt;/li&gt;
&lt;li&gt;important operational logs&lt;/li&gt;
&lt;li&gt;reproducible artifacts&lt;/li&gt;
&lt;li&gt;disposable cache/temp data&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then we aligned backup and replication effort to class. This prevented both under-protection and expensive over-protection.&lt;/p&gt;
&lt;p&gt;The result was better reliability &lt;em&gt;and&lt;/em&gt; better budget usage.&lt;/p&gt;
&lt;h2 id=&#34;operational-practices-that-paid-for-themselves&#34;&gt;Operational practices that paid for themselves&lt;/h2&gt;
&lt;p&gt;The highest ROI practices in our environments were:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;immutable-ish config backups before every risky change&lt;/li&gt;
&lt;li&gt;one-command host inventory dump (disks, arrays, mount table, versions)&lt;/li&gt;
&lt;li&gt;monthly restore drills&lt;/li&gt;
&lt;li&gt;quarterly &amp;ldquo;assume host lost&amp;rdquo; tabletop exercise&lt;/li&gt;
&lt;li&gt;documented replacement procedure with exact part expectations&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are cheap compared to one major data-loss incident.&lt;/p&gt;
&lt;h2 id=&#34;human-factors-train-for-0200-not-1400&#34;&gt;Human factors: train for 02:00, not 14:00&lt;/h2&gt;
&lt;p&gt;Recovery runbooks written at noon by calm engineers often fail at 02:00 when someone tired follows them under pressure.&lt;/p&gt;
&lt;p&gt;So we did two things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;wrote steps as short imperative actions with expected output&lt;/li&gt;
&lt;li&gt;tested runbooks with operators who did not author them&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If a fresh operator can recover safely, your documentation is good.
If only the author can recover, you have performance art, not operations.&lt;/p&gt;
&lt;h2 id=&#34;the-budget-paradox&#34;&gt;The budget paradox&lt;/h2&gt;
&lt;p&gt;A surprising truth from the 2000s: budget environments can be very reliable if disciplined, and expensive environments can be fragile if undisciplined.&lt;/p&gt;
&lt;p&gt;Reliability correlated less with branded hardware and more with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;explicit failure assumptions&lt;/li&gt;
&lt;li&gt;layered protection design&lt;/li&gt;
&lt;li&gt;monitoring and restore testing&lt;/li&gt;
&lt;li&gt;clean runbooks and ownership&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Money helps. Process decides outcomes.&lt;/p&gt;
&lt;h2 id=&#34;a-practical-12-point-storage-reliability-baseline&#34;&gt;A practical 12-point storage reliability baseline&lt;/h2&gt;
&lt;p&gt;If I had to summarize the playbook for a small Linux team:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;choose simple array design you can recover confidently&lt;/li&gt;
&lt;li&gt;monitor SMART and array status continuously&lt;/li&gt;
&lt;li&gt;track latency and error trends, not just &amp;ldquo;up/down&amp;rdquo;&lt;/li&gt;
&lt;li&gt;define RPO/RTO per data class&lt;/li&gt;
&lt;li&gt;keep off-host backups&lt;/li&gt;
&lt;li&gt;test restores on schedule&lt;/li&gt;
&lt;li&gt;harden power and thermal environment&lt;/li&gt;
&lt;li&gt;enforce capacity thresholds with escalation&lt;/li&gt;
&lt;li&gt;snapshot/config-backup before risky changes&lt;/li&gt;
&lt;li&gt;document rebuild and replacement procedures&lt;/li&gt;
&lt;li&gt;rehearse host-loss scenarios quarterly&lt;/li&gt;
&lt;li&gt;update runbooks after every real incident&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Do these consistently and your budget stack will outperform many &amp;ldquo;enterprise&amp;rdquo; setups run casually.&lt;/p&gt;
&lt;h2 id=&#34;what-we-deliberately-stopped-doing&#34;&gt;What we deliberately stopped doing&lt;/h2&gt;
&lt;p&gt;Reliability improved not only because of what we added, but because of what we stopped doing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;no unplanned firmware updates during business hours&lt;/li&gt;
&lt;li&gt;no &amp;ldquo;quick disk swap&amp;rdquo; without pre-checking backup freshness&lt;/li&gt;
&lt;li&gt;no silent cron backup failures left unresolved for days&lt;/li&gt;
&lt;li&gt;no undocumented partitioning layouts on production hosts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Removing these habits reduced variance in incident outcomes. In storage operations, variance is the enemy. A predictable, slightly slower maintenance culture beats a fast improvisational culture every time.&lt;/p&gt;
&lt;p&gt;We also stopped postponing disk replacement just because a degraded array was &amp;ldquo;still running.&amp;rdquo; Running degraded is a temporary state, not a stable mode. Treating degraded operation as normal is how minor wear-out events become full restoration events.&lt;/p&gt;
&lt;h2 id=&#34;closing-note-from-the-field&#34;&gt;Closing note from the field&lt;/h2&gt;
&lt;p&gt;In daily operations, we learn that storage reliability is not a product you buy once. It is an operational habit you either maintain or lose.&lt;/p&gt;
&lt;p&gt;Every boring checklist item you skip eventually returns as expensive drama.
Every boring checklist item you keep buys you one more quiet night.&lt;/p&gt;
&lt;p&gt;That is the whole game.&lt;/p&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://turbovision.in6-addr.net/retro/linux/migrations/from-mailboxes-to-everything-internet-part-4-perimeter-proxies-and-the-operations-upgrade/&#34;&gt;From Mailboxes to Everything Internet, Part 4: Perimeter, Proxies, and the Operations Upgrade&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://turbovision.in6-addr.net/electronics/debugging-noisy-power-rails/&#34;&gt;Debugging Noisy Power Rails&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://turbovision.in6-addr.net/hacking/incident-response-with-a-notebook/&#34;&gt;Incident Response with a Notebook&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
  </channel>
</rss>
