I am not sure of the expected behaviour of btape and am following the User
Guide in configuring, testing my autochanger (Exabyte Magnum 224 LTO-3) with
Bacula. I have already tested the tape device with mt and the changer with
mtx. The mtx-changer script is working as described by the guide. I start
with the tapes loaded in the magazine of the autochanger and no tape in the
drive. If I run the first test
btape -c bacula-sd.conf /dev/rmt/0cbn
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/rmt/0cbn" for writing.
10-Jul 14:37 btape: 3301 Issuing autochanger "loaded? drive 0" command.
10-Jul 14:37 btape: 3302 Autochanger "loaded? drive 0", result: nothing
loaded.
10-Jul 14:37 btape: Fatal Error at device.c:280 because:
dev open failed: dev.c:425 Unable to open device "Ultrium-TD3"
(/dev/rmt/0cbn): ERR=I/O error
10-Jul 14:37 btape: btape Fatal error: butil.c:195 Cannot open "Ultrium-TD3"
(/dev/rmt/0cbn)
It seems that btape is detecting that no tape is loaded, but doesn't try to
load one. Is this its correct behavior?
I load the tape in Slot 1 into the drive directly with mtx and try again.
btape -c bacula-sd.conf /dev/rmt/0cbn
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/rmt/0cbn" for writing.
10-Jul 14:51 btape: 3301 Issuing autochanger "loaded? drive 0" command.
10-Jul 14:51 btape: 3302 Autochanger "loaded? drive 0", result is Slot 1.
10-Jul 14:51 btape: 3301 Issuing autochanger "loaded? drive 0" command.
10-Jul 14:51 btape: 3302 Autochanger "loaded? drive 0", result is Slot 1.
btape: btape.c:368 open device "Ultrium-TD3" (/dev/rmt/0cbn): OK
This seems to work, so I run the "test" command in btape
btape: btape.c:1348 Now forward spacing 1 more file.
We should be in file 5. I am at file 5. This is correct!
=== End Forward space files test ===
Ah, I see you have an autochanger configured.
To test the autochanger you must have a blank tape
that I can write on in Slot 1.
Do you wish to continue with the Autochanger test? (y/n):
=== 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=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
10-Jul 14:55 btape: 3301 Issuing autochanger "loaded? drive 0" command.
10-Jul 14:55 btape: 3302 Autochanger "loaded? drive 0", result is Slot 1.
btape: btape.c:368 open device "Ultrium-TD3" (/dev/rmt/0cbn): OK
btape: btape.c:1235 Rewound "Ultrium-TD3" (/dev/rmt/0cbn)
btape: btape.c:1242 Wrote EOF to "Ultrium-TD3" (/dev/rmt/0cbn)
The test autochanger worked!!
So it seems that btape can issue a load command, and unload properly. So
whats the deal? Should btape has loaded a tape in the first place when it
didn't detect one?
Thanks,
Shon
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users