-
Platform information:
- Hardware: RPi 4B
- OS: openhabian 1.6
- Java Runtime Environment: OpenJDK 11.0.11+9
- openHAB version: 3.2 Release
-
Issue of the topic: I haven’t experienced and SD card failure, but want to be prepared for what I’m learning is an inevitable eventuality.
I have set up SD card mirroring using openhabian menu 53, and confirmed that the timers it created are running using systemctl list-timers:
openhabian@openhab:~ $ systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Sun 2022-01-09 18:49:04 MST 1h 32min left Sat 2022-01-08 18:49:04 MST 22h ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Mon 2022-01-10 00:00:00 MST 6h left Sun 2022-01-09 00:00:14 MST 17h ago logrotate.timer logrotate.service
Mon 2022-01-10 00:00:00 MST 6h left Sun 2022-01-09 00:00:14 MST 17h ago man-db.timer man-db.service
Mon 2022-01-10 00:08:04 MST 6h left Sun 2022-01-09 11:09:49 MST 6h ago apt-daily.timer apt-daily.service
Mon 2022-01-10 02:02:35 MST 8h left Sun 2022-01-09 02:00:49 MST 15h ago sdrsync.timer sdrsync.service
Mon 2022-01-10 06:58:34 MST 13h left Sun 2022-01-09 06:44:49 MST 10h ago apt-daily-upgrade.timer apt-daily-upgrade.service
Fri 2022-07-01 01:15:00 MDT 5 months 20 days left Sat 2022-01-01 01:15:44 MST 1 weeks 1 days ago sdrawcopy.timer sdrawcopy.service
I read in the documentation that if the internal SD card fails, I should “replace the broken SD card in the internal slot with your backup card from the external reader. Get another SD card that matches the size of the backup (now in internal slot) card and use menu option 54 to copy your active backup card back to the new one.”
I currently have a 16 GB SD card in the internal slot and a 128 GB SD card in an external SD card reader in one of the USB ports of the Pi. My expectation was that if the 16 GB SD card failed, I would replace it with a card the same size. But this sounds like I would need a second 128 GB card and going forward I would need them both even though the recommended hardware is a 16 GB card.
Also, I’m a little unclear on how using the mirrored card backups actually works. How can it boot using the mirrored card that has an old full back up and a recent incremental back up? I would think I would need to do something to create the latest complete set from these two.
As I said, I haven’t had trouble yet, I’m just trying to be prepared for when I do. Thanks in advance for any insights and help.