Hello all,
I’ve seen the discussion on backup (& Amanda), and realized I’ve put a lot of time into my current openhab system, and should probably do proper backups. (I have my current config files on my laptop, so those are always accessible, though)
I think I’ve run into a permssions issue.
I read through the Amanda documentation, set up NFS on my ubuntu 16.04 server, then on my openhabian system as per:
With some tinkering (restricting access to my RPi IP address), I had nfs working properly with a mounted directory linked to a large storage volume on my Ubuntu system. I chmod’d to 777 on it, and after mounted on my RPi, files created by the Pi showed up in the Ubuntu system with the user name (a sudo user) that I used to create the share on the ubuntu.
I installed Amanda from Openhabian-config, and followed the prompts. When I opted to not use AWS (the question suggested you set up the account at that time before proceeding, do you want to continue with installation Yes/No - when I chose ‘No’, the installed immediately exited.
- I’m worried when I thought I was simply choosing not to install/configure AWS, the installation may not have completed. The config directory is populated, though, and the mounted network folder has lots of folders/subfolders in it.
When I look at the output from the amanda installer, however, there are permissions errors:
[snip]
Setting up libxml-sax-expat-perl (0.40-2) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::Expat with priority 50...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
Updating FireMotD available updates count ... 2019-09-12 21:08:47,676: FireMotD: Error: Template folder doesn't exist. Upgrading from an older version? Please run make again or run the install function "FireMotD -I -v".
openhabian:x:1000:1000:,,,:/home/openhabian:/bin/bash
/bin/chown: changing ownership of '/media/OHBackup/testing': Operation not permitted
/bin/chown: changing ownership of '/media/OHBackup/test2': Operation not permitted
/bin/chown: changing ownership of '/media/OHBackup': Operation not permitted
/bin/chmod: changing permissions of '/media/OHBackup': Operation not permitted
/bin/chmod: changing permissions of '/media/OHBackup/testing': Operation not permitted
/bin/chmod: changing permissions of '/media/OHBackup/test2': Operation not permitted
/bin/chown: changing ownership of '/media/OHBackup/slots': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot1': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot2': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot3': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot4': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot5': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot6': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot7': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot8': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot9': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot10': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot11': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot12': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot13': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot14': Operation not permitted
chown: changing ownership of '/media/OHBackup/slots/slot15': Operation not permitted
chown: changing ownership of '/media/OHBackup/amanda-backups': Operation not permitted
2019-09-12_21:27:10_PDT [openHABian] Checking for default openHABian username:password combination... OK
2019-09-12_21:27:10_PDT [openHABian] We hope you got what you came for! See you again soon ;)
And on my ubuntu system my /etc/exports file is:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/media/MediaStore/OHBackup 192.168.x.xxx(rw,sync,no_subtree_check)
And the command I ran to mount the network location was:
echo "192.168.x.xxx:/media/MediaStore/OHBackup /media/OHBackup nfs rsize=8192,wsize=8192,timeo=14,intr 0 0" | sudo tee -a /etc/fstab
(IP addresses edited)
My questions:
-
Can I assume that Amanda installed correctly and will run correctly having chosen 'No" at the ambiguously-worded AWS prompt? I never was given the option to choose when to backup.
-
Is the installer’s FireMotD error config file error likely to be significant?
and
- Is having the permissions issue going to be a problem restoring files, or will Amanda be able to sort it out to the local users at that time?
3a) Do I need to mirror users between the Openhabian system and my Ubuntu system - or at least have an openhabian user on the Ubuntu system?
Thanks!
Ben
- Openhabian 2.4 on Raspberry Pi 3+
- installation expanded to external SSD
- Ubuntu 16.04 LTS