I’m running the latest openhabian on Buster on a Raspberry Pi 4 Model B Rev 1.1. I’ve tried to setup Amanda backups on to a NAS via NFS.
I’ve read through the docs and did the first backup.
This reports me now:
STRANGE DUMP DETAILS:
/-- openhab /var/lib/openhab2 lev 0 STRANGE
sendbackup: start [openhab:/var/lib/openhab2 level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/tar -xpGf - ...
sendbackup: info end
? /bin/tar: ./persistence: directory is on a different filesystem; not dumped
| Total bytes written: 92282880 (89MiB, 49MiB/s)
sendbackup: native-CRC de287d5f:92282880
sendbackup: client-CRC de287d5f:92282880
sendbackup: size 90120
sendbackup: end
\--------
Complete one is:
[13:00:33] backup@openhab:~$ amreport openhab-dir
Hostname: openhab
Org : openHABian openhab-dir
Config : openhab-dir
Date : Juni 21, 2020
These dumps were to tape openHABian-openhab-dir-001.
The next 10 tapes Amanda expects to use are: 10 new tapes.
STRANGE DUMP SUMMARY:
openhab /var/lib/openhab2 lev 0 STRANGE (see below)
STATISTICS:
Total Full Incr. Level:#
-------- -------- -------- --------
Estimate Time (hrs:min) 0:00
Run Time (hrs:min) 0:00
Dump Time (hrs:min) 0:00 0:00 0:00
Output Size (meg) 88.5 88.5 0.0
Original Size (meg) 88.5 88.5 0.0
Avg Compressed Size (%) 100.0 100.0 --
DLEs Dumped 2 2 0
Avg Dump Rate (k/s) 21254.1 21254.1 --
Tape Time (hrs:min) 0:00 0:00 0:00
Tape Size (meg) 88.5 88.5 0.0
Tape Used (%) 0.7 0.7 0.0
DLEs Taped 2 2 0
Parts Taped 2 2 0
Avg Tp Write Rate (k/s) 18134.0 18134.0 --
USAGE BY TAPE:
Label Time Size % DLEs Parts
openHABian-openhab-dir-001 0:00 90670K 0.7 2 2
STRANGE DUMP DETAILS:
/-- openhab /var/lib/openhab2 lev 0 STRANGE
sendbackup: start [openhab:/var/lib/openhab2 level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/tar -xpGf - ...
sendbackup: info end
? /bin/tar: ./persistence: directory is on a different filesystem; not dumped
| Total bytes written: 92282880 (89MiB, 49MiB/s)
sendbackup: native-CRC de287d5f:92282880
sendbackup: client-CRC de287d5f:92282880
sendbackup: size 90120
sendbackup: end
\--------
NOTES:
planner: tapecycle (14) <= runspercycle (14)
planner: Adding new disk openhab:/etc/openhab2.
planner: Adding new disk openhab:/var/lib/openhab2.
planner: WARNING: no history available for openhab:/var/lib/openhab2; guessing that size will be 1000000 KB
planner: WARNING: no history available for openhab:/etc/openhab2; guessing that size will be 1000000 KB
taper: Slot 1 without label can be labeled
taper: tape openHABian-openhab-dir-001 kb 90670 fm 2 [OK]
big estimate: openhab /etc/openhab2 0
est: 1000032K out 550K
big estimate: openhab /var/lib/openhab2 0
est: 1000032K out 90120K
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------------- ---------------------- --------------- --------------
openhab /etc/openhab2 0 550 550 -- 0:01 418.6 0:01 550.0
openhab /var/lib/openhab2 0 90120 90120 -- 0:03 30528.2 0:04 22530.0
(brought to you by Amanda version 3.5.1)
Did I do something wrong? The system is absolutely standard. Nothing got installed except stuff available in openhabian-config.
[13:43:44] backup@openhab:~$ amreport openhab-dir
Hostname: openhab
Org : openHABian openhab-dir
Config : openhab-dir
Date : Juni 21, 2020
These dumps were to tape openHABian-openhab-dir-003.
The next 10 tapes Amanda expects to use are: 10 new tapes.
STRANGE DUMP SUMMARY:
openhab /var/lib/openhab2 lev 1 STRANGE (see below)
STATISTICS:
Total Full Incr. Level:#
-------- -------- -------- --------
Estimate Time (hrs:min) 0:00
Run Time (hrs:min) 0:00
Dump Time (hrs:min) 0:00 0:00 0:00
Output Size (meg) 0.7 0.0 0.6
Original Size (meg) 0.7 0.0 0.6
Avg Compressed Size (%) 100.0 100.0 100.0
DLEs Dumped 3 1 2 1:2
Avg Dump Rate (k/s) 194.7 8.9 285.1
Tape Time (hrs:min) 0:00 0:00 0:00
Tape Size (meg) 0.7 0.0 0.6
Tape Used (%) 0.0 0.0 0.0
DLEs Taped 3 1 2 1:2
Parts Taped 3 1 2 1:2
Avg Tp Write Rate (k/s) 2233.3 100.0 3300.0
USAGE BY TAPE:
Label Time Size % DLEs Parts
openHABian-openhab-dir-003 0:00 670K 0.0 3 3
STRANGE DUMP DETAILS:
/-- openhab /var/lib/openhab2 lev 1 STRANGE
sendbackup: start [openhab:/var/lib/openhab2 level 1]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/tar -xpGf - ...
sendbackup: info end
? /bin/tar: ./persistence: directory is on a different filesystem; not dumped
| Total bytes written: 604160 (590KiB, 8.5MiB/s)
sendbackup: native-CRC cbbcd0c5:604160
sendbackup: client-CRC cbbcd0c5:604160
sendbackup: size 590
sendbackup: end
\--------
NOTES:
planner: tapecycle (14) <= runspercycle (14)
planner: Last full dump of openhab:/etc/openhab2 on tape openHABian-openhab-dir-001 overwritten in 1 run.
planner: Last full dump of openhab:/var/lib/openhab2 on tape openHABian-openhab-dir-002 overwritten in 1 run.
planner: Adding new disk openhab:/var/lib/openhab2/persistence.
planner: WARNING: no history available for openhab:/var/lib/openhab2/persistence; guessing that size will be 1000000 KB
planner: WARNING: no history available for openhab:/var/lib/openhab2; guessing that size will be 45060 KB
planner: WARNING: no history available for openhab:/etc/openhab2; guessing that size will be 275 KB
taper: Slot 3 without label can be labeled
taper: tape openHABian-openhab-dir-003 kb 670 fm 3 [OK]
big estimate: openhab /var/lib/openhab2/persistence 0
est: 1000032K out 10K
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------------------------- ---------------------- -------------- -------------
openhab /etc/openhab2 1 70 70 -- 0:01 62.0 0:00 700.0
openhab /var/lib/openhab2 1 590 590 -- 0:01 497.4 0:00 5900.0
openhab /var/lib/openhab2/persistence 0 10 10 -- 0:01 8.9 0:00 100.0
(brought to you by Amanda version 3.5.1)
Is the change of the dumptype something required or just optional to get rid of the message?
[15:04:43] backup@openhab:~$ amcheck openhab-dir
Amanda Tape Server Host Check
-----------------------------
slot 1: contains an empty volume
Will write label 'openHABian-openhab-dir-004' to new volume in slot 1.
NOTE: skipping tape-writable test
NOTE: storage 'openhab-dir': retentions-tapes (14) <= runspercycle (14)
Server check took 0.623 seconds
Amanda Backup Client Hosts Check
--------------------------------
ERROR: openhab: selfcheck request failed: tcpm_recv_token: invalid size: "amandad: critical (fatal): create debug directory \"/var/log/amanda/amandad/\": Permission denied\naman"
Client check: 1 host checked in 1.259 seconds. 1 problem found.
(brought to you by Amanda 3.5.1)
[15:05:16] backup@openhab:~$ amreport openhab-dir
Hostname: openhab
Org : openHABian openhab-dir
Config : openhab-dir
Date : Juni 21, 2020
The next 10 tapes Amanda expects to use are: 10 new tapes.
FAILURE DUMP SUMMARY:
planner: ERROR Request to openhab failed: tcpm_recv_token: invalid size: "amandad: critical (fatal): create debug directory \"/var/log/amanda/amandad/\": Permission denied\naman"
openhab /etc/openhab2 lev 0 FAILED [Request to openhab failed: tcpm_recv_token: invalid size: "amandad: critical (fatal): create debug directory \"/var/log/amanda/amandad/\": Permission denied\naman"]
openhab /var/lib/openhab2 lev 0 FAILED [Request to openhab failed: tcpm_recv_token: invalid size: "amandad: critical (fatal): create debug directory \"/var/log/amanda/amandad/\": Permission denied\naman"]
openhab /var/lib/openhab2/persistence lev 0 FAILED [Request to openhab failed: tcpm_recv_token: invalid size: "amandad: critical (fatal): create debug directory \"/var/log/amanda/amandad/\": Permission denied\naman"]
STATISTICS:
Total Full Incr. Level:#
-------- -------- -------- --------
Estimate Time (hrs:min) 0:00
Run Time (hrs:min) 0:00
Dump Time (hrs:min) 0:00 0:00 0:00
Output Size (meg) 0.0 0.0 0.0
Original Size (meg) 0.0 0.0 0.0
Avg Compressed Size (%) -- -- --
DLEs Dumped 0 0 0
Avg Dump Rate (k/s) -- -- --
Tape Time (hrs:min) 0:00 0:00 0:00
Tape Size (meg) 0.0 0.0 0.0
Tape Used (%) 0.0 0.0 0.0
DLEs Taped 0 0 0
Parts Taped 0 0 0
Avg Tp Write Rate (k/s) -- -- --
NOTES:
planner: tapecycle (14) <= runspercycle (14)
planner: Last full dump of openhab:/etc/openhab2 on tape openHABian-openhab-dir-001 overwritten in 1 run.
planner: Last full dump of openhab:/var/lib/openhab2 on tape openHABian-openhab-dir-002 overwritten in 1 run.
planner: Last full dump of openhab:/var/lib/openhab2/persistence on tape openHABian-openhab-dir-003 overwritten in 1 run.
driver: WARNING: got empty schedule from planner
taper: Slot 4 without label can be labeled
amreport: 2020-06-21 14:42:09 1jmzIX-0000jx-AC Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
amreport: 2020-06-21 14:42:09 1jmzIX-0000jx-AC <= backup@openhab U=backup P=local S=3475
amreport: 2020-06-21 14:42:09 1jmzIX-0000jx-AC Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
amreport: exim: could not open panic log - aborting: see message(s) above
amreport: Can't send mail: sendmail process failed with error code 1
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------------------------- ---------------------- -------------- -------------
openhab /etc/openhab2 FAILED
openhab /var/lib/openhab2 FAILED
openhab /var/lib/openhab2/persistence FAILED
(brought to you by Amanda version 3.5.1)
The amdump openhab-dir failed while backing up the whole sd card (16GB). I had to restart the pi to gain access again. After removing the sd card from the disklist and trying to do another backup I’m getting the check result above.
A simple test of sendmail results in:
[15:08:07] openhabian@openhab:~$ echo "Subject: sendmail test" | sendmail -v my@email.com
LOG: MAIN
<= openhabian@openhab U=openhabian P=local S=297
LOG: PANIC DIE
Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
2020-06-21 15:15:36 1jmzou-0001Ig-TX <= openhabian@openhab U=openhabian P=local S=297
2020-06-21 15:15:36 1jmzou-0001Ig-TX Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
exim: could not open panic log - aborting: see message(s) above
Seems Amanda cannot write to /var/log. Possibly ZRAM didnt sync when you powercycled. Restart ZRAM and or create/set permissions on those dirs it complains about