Hi everyone, I’m reaching out to seek some assistance with Amanda backups on my Raspberry Pi 4 setup. I’ve recently migrated from a Raspberry Pi 3 to a Pi 4, reinstalling everything from scratch to improve my OpenHABian skills. However, I’ve encountered some issues with Amanda backups that I can’t seem to resolve, and I’m hoping someone here might have some insights.
I’ve successfully mounted a folder from my FreeNAS server via NFS under /mnt/backup, and the folder mounts automatically at boot. The user openhabian has the necessary permissions to write and delete files in this directory. After installing Amanda through openhabian-config, I noticed that the backup wasn’t working as expected. The backup size is reported as 0 bytes, and I’m seeing a MISSING line for the /var/lib/openhab folder in the dump summary. This is quite concerning, as it means my backups aren’t capturing the data I need.
Here’s a snippet from the log file I obtained using sudo cat /var/log/amanda/openhab-dir/amdump.1:
planner: time 2.959: getting estimates took 2.957 secs
FAILED QUEUE: empty
DONE QUEUE: 0: openhabian /var/lib/openhab
1: openhabian /etc
2: openhabian /boot
ANALYZING ESTIMATES…
From what I can gather, Amanda is unable to perform degraded dumps without holding the disk, which is preventing the backup from completing. I’ve tried searching online for solutions, but nothing seems to address this specific issue. I’m wondering if this could be related to missing permissions or some misconfiguration in my setup.
I’ve also checked the permissions for the relevant directories:
openhabian@openhabian:~ $ ls -all /mnt/backups/
drwxrwxr-x 5 backup backup 5 Oct 17 11:34 .
drwxr-xr-x 3 root root 4096 Oct 17 09:38 …
drwxrwxr-x 2 backup backup 3 Oct 18 02:03 amanda-backups
And the /mnt directory:
openhabian@openhabian:~ $ ls -all /mnt/
drwxr-xr-x 3 root root 4096 Oct 17 09:38 .
drwxr-xr-x 19 root root 4096 Oct 18 07:18 …
drwxrwxr-x 5 backup backup 5 Oct 17 11:34 backups
The amcheck utility reports that everything seems to be in order, with only a note about the host info and index directories not existing yet. This suggests that the issue might not be with the configuration itself but perhaps with how Amanda is handling the backup process.
I’m considering whether this could be related to the way Amanda interacts with the NFS mount or if there’s a bug in the version of Amanda I’m using (3.5.1). I’m also curious if others have encountered similar issues and how they resolved them. Any pointers or suggestions would be greatly appreciated!
Looking forward to hearing from you all. Thanks in advance for your help!