log2ram
rpi-clone
log2ram | rpi-clone | |
---|---|---|
51 | 30 | |
2,726 | 2,609 | |
1.4% | 0.8% | |
5.3 | 0.0 | |
6 months ago | about 1 year ago | |
Shell | Shell | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
log2ram
-
Follow-up on the earlier "Why Proxmox VE shreds your SSDs" β with details
But stuff like /var/lib/pve-firewall and /var/lib/rrdcached was still written to every second.
I played around with mount options like commit=n
It kind of helped to use log2ram:
https://github.com/azlux/log2ram
but it sure didn't eliminate the problem.
I think with a little effort from the proxmox guys, They could gather a lot of low-hanging fruit.
-
Raspberry Pi 5
Reducing logging, logging to ram and writing to the sdcard once a day helps longevity a lot, especially with quality sd cards.
99% of the time it's the verbose logging of application servers that is the culprit of sdcard failures.
https://github.com/azlux/log2ram
- Pihole Regular Maintenance and Performance
- Using old MicroSD on RPi for PiHole, any issues?
-
Interesting M.2 devices for the HomeLabs
I always use this: https://github.com/azlux/log2ram
-
My remote Pi for my ADSB is going bad
If you've got other issues then it's quite likely that lots of small writes from logging and similar has worn out the SD card, mounting the SD card as read only or installing log2ram could prevent it happening to another SD card.
-
EsPiFF: An ESP32 in the Raspberry Pi form factor
> writing permanent its log files and swap partition
If this is the problem, the solutions are no swap and log2ram https://github.com/azlux/log2ram
I also noticed that Armbian logs to a ramdisk. I didn't investigate the implementation and if its contents survive a reboot.
The only real problems for me are that the SD card will eventually fail no matter what (I mean, much sooner than a SDD or HDD) and that there are basically no Pis at sale at a reasonable price. As a platform it is nearly dead.
-
Can My I5 2300(12GB RAM) Server Handle This Workload
For Pi-hole, I have an Rpi Zero with $10 Usb-to-Ethernet adapter, SD-card barely written (with Log2Ram) to avoid wear. Running about 3 years now almost unattended (besides security updates).
-
I finally found an use case for my Raspberry Pi Model B+
In addition to the other helpful suggestions youβve received, look into using Log2Ram. It does what it sounds like, puts log writes in ram and then writes them to disk on a slower cadence that doesnβt work your SD card that much.
https://github.com/azlux/log2ram
-
Reduce disk writes for Ubuntu, save your USB stick
Log files are a bit trickier. I want these to stick around between reboots, so just storing them on a ramdisk wouldn't really work. Thankfully, log2ram solves this problem. Written primarily for Raspberry Pi machines, it works fine on x86-64 laptops. This stores /var/log in RAM but will sync the contents to disk from time to time, ideal for our needs.
rpi-clone
-
Considerations for a long-running Raspberry Pi
I've been running a bunch of Pi's for years now, and the biggest problem I've had is the Pi itself dying: 24/7 usage is hard on a small device. I've also found that stable power is essential, and to that end I've always used 5v 3a branded power cubes, plugged into a pure sine wave UPS. Choice of micro-SDHC cards is important and I ended up getting ATP industrial cards (https://www.atpinc.com/products/industrial-sd-cards) - expensive but really long-lived. Finally, using RPi-clone (https://github.com/billw2/rpi-clone) on a regular basis has been a life-saver. I clone to Sandisk Extreme micro-SDHCs and can recover from an outage in minutes.
- Cloning SD card in CLI to use in another pi question.
-
Boot Pi4 from an SSD, not the MicroSD card
I would normally use the Pi SD-Card copier to duplicate the SD-Card to an SSD but I'm unsure if this is available on the Ubuntu image - you could possibly use this program [Github] if you are not keen on using dd with a running system.
- DIY Raspberry / Orange Pi NAS That Looks Like a NAS β 2023 Edition
- 2022 Oct 31 π Stickied π ΅π °π & ππππππππ thread - Boot problems? Power supply problems? Display problems? Networking problems? Need ideas? Get help with these and other questions! π¨πΊπ² π―π¬πΉπ¬ ππ°πΉπΊπ»
-
Help needed on setting up Pi to boot from SSD
Then you will need to clone the SD to the SSD, you can use many tools that are available from your desktop computer or you can try with rpi-clone, just connect the SSD with Pi booted from SD, stop any possible service/docker to prevent any copy error and run, adapting device naming but usually will be (check device with dmesg):
-
Help needed on setting up Pi to boot from SSD..
I used rpi-clone, it was super easy. Whole process took 10 minutes. https://github.com/billw2/rpi-clone
- I wish I wouldβve switched to SSD Boot years ago
- Is it possible to convert an bootable sd to a bootable usb-ssd?
-
Finished my very own Smart Mirror!
rpi-clone
What are some alternatives?
folder2ram - mount those folders to ram without losing access to their counterpart on disk!
86Box - Emulator of x86-based machines.
docker-pi-hole - Pi-hole in a docker container
deskpi - DeskPi Pro is the Ultimate Case Kit for Raspberry Pi 4 with Full Size HDMI/2.5 Hard Disk Support and Safe Power Button, It has QC 3.0 Power Supply inside and New ICE Tower Cooler inside.
PiShrink - Make your pi images smaller!
TimeShift - System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.