Ana, Gary,

The devices were not properly owned. Changing them did not correct the
problem, sadly. (Given the previous hardware was working with the incorrect
ownerships this isn't really surprising to me, though I would have loved
the quick fix had it held.)

The ownership is now bacula:bacula.

As you suggest, I'll discard the offline unmount directive entirely (it's
been commented out for all of today's tests).

The reason I was trying it is, in order to unload the tape after any test I
have to rewoffl it first. From the most recent test:
 -- begin excerpt --
=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
unload status=Bad 268435457
3992 Bad autochanger command: /usr/libexec/bacula/mtx-changer
/dev/changer/0 unload 1 /dev/tape/0 0
3992 result="Unloading drive 0 into Storage Element 1...Unloading drive 0
into Storage Element 1...Unloading drive 0 into Storage Element
1...Unloading drive 0 into Storage Element 1...Unloading drive 0 into
Storage Element 1...mtx: Request Sense: Long Report=yes
": ERR=Child exited with code 1
3303 Issuing autochanger "load 1 0" command.
3993 Bad autochanger command: /usr/libexec/bacula/mtx-changer
/dev/changer/0 load 1 /dev/tape/0 0
3993 result="Drive 0 Full (Storage Element 1 loaded)
": ERR=Child exited with code 1
You must correct this error or the Autochanger will not work.
*quit
: || lvd@harrier ~ [103] ; please mtx -f /dev/changer/0 unload 1
Unloading drive 0 into Storage Element 1...mtx: Request Sense: Long
Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 53
mtx: Request Sense: Additional Sense Qualifier = 01
mtx: Request Sense: Field in Error = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=yes
mtx: Request Sense: Field Pointer = 00 00
MOVE MEDIUM from Element Address 256 to 4096 Failed
: || lvd@harrier ~ [104] ; please mt -f /dev/tape/0 rewoffl
: || lvd@harrier ~ [105] ; please mtx -f /dev/changer/0 unload 1
Unloading drive 0 into Storage Element 1...done
 -- end of excerpt --

I set debug_log=1 and debug_level=100, this is all that shows up
in /var/spool/bacula/mtx.log:

0120-09:00:00.46 0 Parms: /dev/changer/0 loaded 0 /dev/tape/0 0
0120-09:00:00.47 0 Doing mtx -f /dev/changer/0 0 -- to find what is loaded
0120-09:02:04.50 0 Parms: /dev/changer/0 loaded 1 /dev/tape/0 0
0120-09:02:04.50 0 Doing mtx -f /dev/changer/0 0 -- to find what is loaded
0120-09:02:05.86 0 Parms: /dev/changer/0 unload 1 /dev/tape/0 0
0120-09:02:05.86 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:09.97 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:16.81 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:21.96 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:28.00 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:35.01 0 FAIL: mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:35.12 0 Parms: /dev/changer/0 load 1 /dev/tape/0 0
0120-09:02:35.12 0 Doing mtx -f /dev/changer/0 load slot=1 drv=0
0120-09:02:36.40 0 FAIL: mtx -f /dev/changer/0 load slot=1 drv=0

That is repeated for every run of /usr/bin/sudo /sbin/btape -c
/etc/bacula/bacula-sd.conf /dev/tape/0

Thank you both for the pointers!

nomad
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to