Hi everyone, currently I run Pi-hole in a VM as my primary DNS server, and I added a Raspberry Pi Zero 2 as a secondary Pi-hole for redundancy.
The idea was that if my VMgoes down, I would still have DNS through the Pi Zero 2 but The problem is that the Pi Zero 2 itself hasn’t been very reliable.
A few times now, after a power outage or even accidentally unplugging the Pi, the SD card / Raspberry Pi OS seems to get corrupted. The Pi won’t boot properly, and I end up having to rewrite the Raspberry Pi OS image and configure Pi-hole again from scratch.
That’s obviously not great for something that’s supposed to be my redundant DNS server.
I’m trying to figure out the best way to make the Pi Zero 2 much more resilient to sudden power loss.
I’m considering:
1. Buying a high-endurance microSD card such as Samsung PRO Endurance or SanDisk High Endurance
Enabling Raspberry Pi OS read-only filesystem / 2. OverlayFS mode through raspi-config
Using both a high-endurance SD card and read-only mode
Moving logs/temp files to RAM (tmpfs)
Using some other setup entirely
My main question is: Would Raspberry Pi OS read-only/OverlayFS mode solve most of the corruption problems caused by suddenly unplugging the Pi?
Source: r/pihole · by /u/rex_divakar