I guess if you want to make your pi run for a while then you will eventually end up at this great topic here.
I am pretty new to all this so please forgive me if I am slow in taking all this in.
Yesterday my RPi 3 B+ arrived with a 64GB SanDisk Extreme Ultra SD card (to have space for wear-levelling) and now I have arrived here to reduce the IO to a minimum.
For the moment I am running OpenHab2 and mosquitto
What is the best tool to monitor my SD I/O’s?
so first I mounted those two:
sudo mount -t tmpfs -o size=100M,mode=0755 tmpfs ` /var/lib/openhab2/persistence
sudo mount -t tmpfs -o size=100M,mode=0755 tmpfs /var/log/openhab2
then edited fstab:
tmpfs /var/lib/openhab2/persistence tmpfs size=100M,mode=0755 0 0 tmpfs /var/log/openhab2 tmpfs size=100M,mode=0755 0 0
etc/systemd/system/varlog.service is in my case syslog.service
/usr/local/bin/varlog I have /usr/local/bin/openhabian-config
I don’t have /etc/systemd/system/openhabmount.service
and also /usr/local/bin/openhab I don’t have. there is only /usr/local/bin/openhabian-config
can you guys please check if my config was ok like that and how I can set up that the files are being saved every couple of hours as well as copied back and forth during a shut-down or restart?
sorry for these stupid questions but this is all pretty new to me.
And sure enough it won’t reboot anymore because it can’t find the openhab2 configuration files.
So I must be doing something right, thanks to you guys.
How can I recover those files and which ones?