getumbrel / umbrel-os

umbrelOS for Raspberry Pi 4 (only). Covert your Raspberry Pi into a home server in one click. For other hardware, checkout https://github.com/getumbrel/umbrel
https://umbrel.com
BSD 3-Clause "New" or "Revised" License
578 stars 57 forks source link

Log to RAM to prevent SD degradation #30

Closed mayankchhabra closed 3 years ago

mayankchhabra commented 4 years ago

Not necessarily required right now, but definitely worth considering in the near future. https://github.com/azlux/log2ram

nolim1t commented 4 years ago

good idea

mayankchhabra commented 4 years ago

This a good thread for more ideas - https://www.thethingsnetwork.org/forum/t/how-can-microsd-flash-memory-wear-be-minimized/15896

nolim1t commented 4 years ago

Will look at this after partitioner / swap

nolim1t commented 4 years ago

Testing this out too

nolim1t commented 4 years ago

Can't get it to work? Anyone else?

mayankchhabra commented 4 years ago

What's the issue you're facing?

nolim1t commented 4 years ago

doesnt run at all

nolim1t commented 4 years ago

I'm more for making the SD card a read only filesystem, and putting everything (including moving docker images) onto the external media. SD card is a lot harder to replace

mayankchhabra commented 4 years ago

If you've got it working like that, then sure let's try it. But if it's too much work, then just logging to RAM will save the SD from a ton of unnecessary hammering.

nolim1t commented 4 years ago

probably be something as part of creating a partition.. stop docker, then move all the docker stuff over, and then start docker again. Then make everything read only.

mayankchhabra commented 4 years ago

Hmm feel free to give it shot if you want to. IMO we can stick with just offloading the logs to SD Card for the public beta, and create a RO filesystem on SD post that.

nolim1t commented 4 years ago

Yes this is a nice to have..

mayankchhabra commented 3 years ago

Replaced by https://github.com/getumbrel/umbrel/issues/206