I am using openhabian with pi3 booting from an USB key.
I noticed that the led indicating access to the USB key is almost always on, meaning that the system is continuously writing to the usb key.
So I tried to move the log files to RAM (tmpfs) modifying the file /etc/fstab as follows:
proc /proc proc defaults 0 0 PARTUUID=4f82b826-01 /boot vfat defaults 0 2 PARTUUID=4f82b826-02 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, no line here # use dphys-swapfile swap[on|off] for that # # FOLLOWING TWO LINES ADDED BY ME: tmpfs /var/log tmpfs nodev,nosuid,size=50M,mode=1777 0 0 tmpfs /tmp tmpfs nodev,nosuid,size=30M,mode=1777 0 0 # /usr/share/openhab2 /srv/openhab2-sys none bind 0 0 /etc/openhab2 /srv/openhab2-conf none bind 0 0 /var/lib/openhab2 /srv/openhab2-userdata none bind 0 0 /var/log/openhab2 /srv/openhab2-logs none bind 0 0 /usr/share/openhab2/addons /srv/openhab2-addons none bind 0 0
But unfortunately after this change openhab does not start. I can start the pi3 and login but the status of openhab2 service is as follows:
[22:07:13] openhabian@openHABianPi:~$ systemctl status openhab2 ● openhab2.service - openHAB 2 - empowering the smart home Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled) Active: deactivating (stop) (Result: exit-code) since Mon 2017-09-11 22:07:19 CEST; 84ms ago Docs: http://docs.openhab.org https://community.openhab.org Process: 5828 ExecStart=/usr/share/openhab2/start.sh server (code=exited, status=255) Main PID: 5828 (code=exited, status=255); : 5981 (stop) CGroup: /system.slice/openhab2.service └─control ├─5981 /bin/sh /usr/share/openhab2/runtime/bin/stop ├─5997 /bin/sh /usr/share/openhab2/runtime/bin/stop ├─5998 /bin/sh /usr/share/openhab2/runtime/bin/stop ├─5999 /bin/sh /usr/share/openhab2/runtime/bin/stop ├─6008 /bin/sh /usr/share/openhab2/runtime/bin/stop ├─6012 /bin/sh /usr/share/openhab2/runtime/bin/stop ├─6015 /bin/sh /usr/share/openhab2/runtime/bin/stop └─6016 basename /usr/lib/jvm