Hasty Briefsbeta

Bilingual

The death and rebirth of my home server

17 hours ago
  • The author's home server running on a Raspberry Pi 4B with a microSD card failed after a power outage, likely due to the card reaching its write cycle limit.
  • Important data was backed up on external HDDs, and the NixOS configuration was preserved, minimizing data loss.
  • A new setup was configured to minimize writes to the microSD card by using zram for swap, a RAM disk for /tmp, and disabling atime.
  • External HDDs were repurposed into a btrfs pool with RAID1 replication for redundancy, using an autosubvol module for declarative subvolume management per service.
  • Backups were set up using restic with sops-nix integration, and permissions were managed via a media group for shared access among services.
  • Monitoring plans include btrfs scrubs and potential setup of smartd, Prometheus, or Grafana for system health tracking.
  • A new high-endurance microSD card was purchased, and the system was deployed using NixOS with a custom SD image build.