Amanda fails creating filesystem

I’m using openHAB3.01 stable with latest openHABian ([openHAB3]patchday-20210316-1251(9334918)) and I am trying to use amanda for backup purposes.

So: after confguring pretty much all, amanda obviously fails with creating filesystem as the console (after exiting openhabian-config) tells me:

[12:55:26] openhabian@openhabMain:~$ sudo openhabian-config
2021-03-20_12:55:32_CET [openHABian] Checking for root privileges... OK
2021-03-20_12:55:33_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-03-20_12:55:33_CET [openHABian] openHABian configuration tool version: [openHAB3]patchday-20210316-1251(9334918)
2021-03-20_12:55:33_CET [openHABian] Checking for changes in origin branch openHAB3... OK
2021-03-20_12:55:33_CET [openHABian] Switching to branch openHAB3... OK
2021-03-20_12:55:37_CET [openHABian] Updating Linux package information... OK
2021-03-20_12:55:38_CET [openHABian] Beginning setup of the Amanda backup system... OK
2021-03-20_12:55:39_CET [openHABian] Configuring Amanda backup system prerequisites... 2021-03-20_12:55:42_CET [openHABian] Configuring Amanda backup system prerequisites... OK
2021-03-20_12:55:57_CET [openHABian] Creating Amanda filesystem... FAILED (link drive0)
2021-03-20_12:56:02_CET [openHABian] Checking for default openHABian username:password combination... OK
2021-03-20_12:56:02_CET [openHABian] We hope you got what you came for! See you again soon ;)

Funny enough, on my NAS the mein directory “slots” gets created, but nothing more:

[13:00:50] openhabian@openhabMain:~$ ls -la /mnt/synology/openHAB/
total 0
drwxrwxrwx 2 root root 0 Mar 20 12:33 .
drwxrwxrwx 2 root root 0 Mar 20 12:25 ..
drwxrwxrwx 2 root root 0 Mar 20 12:41 slots

Any idea, where I can start looking?

Debug guide ! Read the section in the docs on CIFS ?
Come on Thomas as a long term user you should be able to do better than that.

1 Like

Sorry, even as a long term user I didn’t expect to have openHABian logging for the amanda setup, but yes - I should’ve known better! :wink:

Yes, I use CIFS, because I use it in my whole environment, and as “slots” were created…
But then, as I read the openHABian logs, I stumbled across the “symlink”-creation problem.
So, I changed my /etc/fstab and added mfsymlinks to the mount and now it worked:

//192.168.XX.YY/Backup /mnt/synology/ cifs dir_mode=0777,file_mode=0777,username=USER,password=PASS,mfsymlinks 0 0

for someone searching for it, here’s the log output for reference:

$ chown --recursive backup:backup /mnt/synology/openHAB/slots
+ chown --recursive backup:backup /mnt/synology/openHAB/slots
+ return 0
+ cond_redirect ln -sf /mnt/synology/openHAB/slots /mnt/synology/openHAB/slots/drive0
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ ln -sf /mnt/synology/openHAB/slots /mnt/synology/openHAB/slots/drive0 \033[39;49;00m'

$ ln -sf /mnt/synology/openHAB/slots /mnt/synology/openHAB/slots/drive0
+ ln -sf /mnt/synology/openHAB/slots /mnt/synology/openHAB/slots/drive0
ln: failed to create symbolic link '/mnt/synology/openHAB/slots/drive0': Operation not supported
+ return 1
+ echo 'FAILED (link drive0)'
FAILED (link drive0)
+ return 1
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "50 | Backup/Restore"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/ or how to proceed.' 14 80
+ return 0
+ true
1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.