Lobsters | 📄 原文链接 | 2026-07-20 收录

家庭服务器的「死亡」与重生:一次 SD 卡故障的启示

来源:sgt.hootr.club — 2026-07-19

📋 概述

作者讲述了一台运行多年的 Raspberry Pi 4B 家庭服务器因 SD 卡寿终正寝而崩溃的故事。这场事故暴露出日常运维中的诸多隐患:root 文件系统直接运行在 microSD 上、缺乏自动化备份、配置分散在记忆中而非版本控制中。痛定思痛之后,作者将系统迁移到 SSD、采用 NixOS 声明式配置加 flakes 锁定版本、用 restic 和 rclone 建立自动化备份,并引入了全面的监控告警。这不仅是一次硬件升级,更是一场从“能用就行”到“可维护基础设施”的运维哲学转变。

🔑 核心要点

💡 金句

The microSD was mounted as the root FS and I had taken next to no precautions against something like this happening. Long story short, the card was likely dead, and the blackout had simply delivered the coup de grâce.
← 返回 Lobsters 首页