Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have 2 Pis running basically non-stop (2-3 power outages) with the same SD card since 2017 (DNS/print server and Kodi, media is on external NFS). The only thing I did was to disable all logs. Never had a single problem.

They both have SanDisk 2 GB cards in them. I vaguely remember naively thinking along the lines of "less space => less bit density => better reliability".



I've been using log2ram (github/azlux/log2ram) and been happy with the results.

It mounts a ramdisk on /var and only occasionally copies the logs from ramdisk to SD card. That way I can still see all the logging without hammering the SD card quite some badly.


I'm still running Kodi on a pi1 approaching 10 years of runtime on the original SD card. It's powered on most of the time but sometimes I accidentally power of the USB power supply it's connected to. It's a little 5-port one that's about just as old with a power button that's easy to press accidentally in my specific setup.


I have a RPi that has been running non-stop continuously since 2014 on the same SD card, serving up a weather website.

I basically mounted all logging and webpages on tmpfs, and the DB resides on the SD card being written to every 5 minutes.


Are there instructions on how to upgrade my pihole to this?


Start here. https://ostechnix.com/how-to-mount-a-temporary-partition-in-...

Just understand that anything that is written to tmpfs will be lost if you have a reboot. It might make troubleshooting difficult if you need to preserve them for whatever reason.


I still have my very first Pi, it's a 1b I think.

It has seen many installs over the years but it's now a backup DNS server. Looking at the filesystem this one has been a PiHole since 2018, it has essentially ran 24/7 bar some reboots and me moving between places.

I don't write anything to the SD, it all goes to RAM at /dev/shm and the PiHole will simply have to redownload the lists the few times it goes down. It would download them anyway daily.


Same here. I have 2 Raspberry 3 models. They've been running PiHole for ad blocking since 2019. Later I started using them for local DNS and also tailscale nodes. There have been times when I haven't rebooted them for several months. Longest being about 11 months uptime. They've been rock solid. Although It does help if you have them plugged into a UPS.


Amen!

Exact same kodi-setup and sandisk cards, and has been happily running for years without problems. Disable all logs, media on smb/nfs, and off you go.


I didn't do anything special at all. My two pis have been running 24/7/365 for 5 years with no problems. I often completely forget about them. One is a pi hole and the other our print server.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: