ramdisk problem after upgrade to 2020.1
Posted: Monday 23 March 2020 20:20
Hello everyone!
Until now, I used ramdisk ( ramdrive)to protect the SD card from quick damage. Today after upgrading to the stable version 4.2020 domoticz started with an "empty" database (luckily I had a backup). Provided to restore the backup but it did not help clean installation of Domoticz and it worked
... but the joy did not last too long because editing the domoticz.sh file to start the ramdisk again, restart the system and again the lack of database and domoticz says that there is an update available though I just installed it (before trying to make ramdisk)
Here is a great request and question - how to start ramdisk in the new version (4.2020) or how to protect the SD card against a quick "death" due to a large number of records ??? Unfortunately, Rpi is so built-up that I have no space for an SSD drive and I have to do everything on SD.
I forgot to add that I have this situation both on RPi 4 and RPi2 so I know it is not a matter of chance ... in both after a clean installation of Domoticz and restoring the database everything works - adding in /etc/init.d/domoticz.sh :
DAEMON_ARGS = "$ DAEMON_ARGS -log /tmp/log/domoticz.log -loglevel normal"
and
ln -sf /tmp/log/domoticz.db-shm / home / pi / domoticz
ln -sf /tmp/log/domoticz.db-wal / home / pi / domoticz
it breaks everything
Thank you in advance for your help
Daniel
Until now, I used ramdisk ( ramdrive)to protect the SD card from quick damage. Today after upgrading to the stable version 4.2020 domoticz started with an "empty" database (luckily I had a backup). Provided to restore the backup but it did not help clean installation of Domoticz and it worked
Here is a great request and question - how to start ramdisk in the new version (4.2020) or how to protect the SD card against a quick "death" due to a large number of records ??? Unfortunately, Rpi is so built-up that I have no space for an SSD drive and I have to do everything on SD.
I forgot to add that I have this situation both on RPi 4 and RPi2 so I know it is not a matter of chance ... in both after a clean installation of Domoticz and restoring the database everything works - adding in /etc/init.d/domoticz.sh :
DAEMON_ARGS = "$ DAEMON_ARGS -log /tmp/log/domoticz.log -loglevel normal"
and
ln -sf /tmp/log/domoticz.db-shm / home / pi / domoticz
ln -sf /tmp/log/domoticz.db-wal / home / pi / domoticz
it breaks everything
Thank you in advance for your help
Daniel