Hello,

2018-05-04 22:01 GMT+02:00 Ralph Lawrence <[email protected]>:

> Hi,
>
> I've been banging my head against this for over a week now.  Basically, I
> can't get AWS VTL Tape working with Bacula.
>
> # btape -d 200  VTLDrive1
>
> returns...
>
> btape: autochanger.c:342-0 Unlocking changer VTLchgr
> btape: tape_dev.c:104-0 Try open "VTLDrive1" (/dev/sg6) mode=OPEN_READ_ONLY
> btape: tape_dev.c:127-0 Rewind after open
> btape: tape_dev.c:137-0 Rewind error on "VTLDrive1" (/dev/sg6) close:
> ERR=Operation not permitted
> btape: tape_dev.c:174-0 tape_dev.c:170 Unable to open device "VTLDrive1"
> (/dev/sg6): ERR=Operation not permitted
> btape: tape_dev.c:182-0 open dev: tape -1 opened
>
> config looks like...
>
> Autochanger {
>   Name = "VTLchgr"
>   Device = VTLDrive1
>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   ChangerDevice = /dev/sg6
> }
>
> Device {
>   Name = VTLDrive1
>   Drive Index = 0
>   MediaType = ULT3580-TD5
>   ArchiveDevice = "/dev/sg6"
>

The Archive Device is wrong. It should be a tape device (/dev/nst* on
Linux) and not a scsi generic one. You should correct it.

best regards
-- 
Radosław Korzeniewski
[email protected]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to