I did a clean install of Hassbian, setup Samba, copied over my Yaml files, setup Spotify and TotaConnect. Everything was good. I didn’t have any errors other then some minor ones dealing with some sliders I need to fix. If I rebooted HASS, it also gave an error that it failed to run the restart service but it would still restart in a minute or less. It had always done that so no big deal. For the most part, everything was fine.
Then I tried to get fancy…
I used Tinkerer’s very well done guides located here as a guideline and did the following:
- Partitioned a USB drive into thirds. Used one partition to offload the database, the other for logs. This was to save on read/writes on the SD card.
- Setup rclone to upload an encrypted copy of my yaml files to Google Drive. Setup another remote of rclone to backup to the last partition on the USB. I tested and they worked. I then setup a cron job for each. The GDrive remote runs every hour and syncs any differences. The USB rclone job runs every hour and 10 minutes. Tested and all worked. I setup rclone to exclude the database, logs, etc when it syncs.
- Setup rpi-clone so I can manually clone my SD card to another that is plugged into the pi. This is not scheduled, I just run it manually.
After I performed all of that, I noticed I’m getting timer out of sync errors every 7-12 minutes. Also rebooting went from a minute or so to 20 minutes it seems. I looked at the CPU and memory usage but it doesn’t seem high really. Seems pretty normal. I removed the cron jobs and the same result. I’m beginning to think its an issue with moving the database, logs, etc to the USB? The USB is a verbatim 32GB split into roughly 10GB partitions.
Update: I’ve disabled logbook and history. Seeing what happens as far as errors.
Update 2: Looks like it is definitely dealing with the logs and such being on the USB. Not sure why it does that but I may just revert that part and not worry about offloading them.