Thanks for your help.
> On 2Feb 2018, at 4:07 AM, Alan Brown <a.br...@ucl.ac.uk> wrote:
>
> On 31/01/18 03:23, Kenneth Garges wrote:
>> I’m having trouble getting a tape library to work. Individual tape drive
>> seems ok but the library sometimes makes btape hang requiring a reboot. Or
>> it fails.
>
>
> > # Define a Virtual autochanger
>
> Remove anything you're not actually using. They're just going to add
> confusion.
We’re using the virtual auto changer. Works fine. I’m trying to add a tape
library to a running system.
>
>> # Quantum Scalar i80 tape library at UCSC
>> # Hostname of library: core-prod-jb-2
>> #
>> Autochanger {
>> Name = "core-prod-jb-2"
>> Device = "Drive1"
>> # Device = "Drive2"
>> Changer Command = "/usr/local/etc/bacula/mtx-changer %c %o %S %a %d"
>> # Changer Device = /dev/ch0
>> Changer Device = /dev/pass42
>> }
>
> *ahem*
>
> MTX is _only_ designed to interface to scsi generic devices. Unless
> /dev/pass42 is another name for the generic device you'll have problems.
I believe that /dev/pass42 is the generic SCSI device. /dev/ch0 is also
provided. That’s what this implies:
# camcontrol devlist
…
<HP Ultrium 4-SCSI V62Z> at scbus8 target 0 lun 0 (pass41,sa0)
<QUANTUM Scalar i40-i80 180G> at scbus8 target 0 lun 1 (pass42,ch0)
>
> What do "tapeinfo -f /dev/pass42" and "loaderinfo -f /dev/pass42" give you?
>
> You should see something like this:
>
> # tapeinfo -f /etc/bacula/DEVICES/MSSLYF-changer
> Product Type: Medium Changer
> Vendor ID: 'QUANTUM '
> Product ID: 'Scalar i500 '
> Revision: '690G'
> Attached Changer API: No
> SerialNumber: 'QUANTUMA0C0xxxxxx_LLA '
> SCSI ID: 2
> SCSI LUN: 1
> Ready: yes
>
> # loaderinfo -f /etc/bacula/DEVICES/MSSLYF-changer
> Product Type: Medium Changer
> Vendor ID: 'QUANTUM '
> Product ID: 'Scalar i500 '
> Revision: '690G'
> Attached Changer: No
> Bar Code Reader: Yes
> EAAP: Yes
> Number of Medium Transport Elements: 1
> Number of Storage Elements: 83
> Number of Import/Export Elements: 18
> Number of Data Transfer Elements: 6
> Transport Geometry Descriptor Page: Yes
> Invertable: No
> Device Configuration Page: Yes
> Storage: Data Transfer, Import/Export, Storage
> SCSI Media Changer (rev 2): No
> Transfer Medium Transport: ->Import/Export, ->Storage
> Transfer Storage: ->Data Transfer, ->Import/Export, ->Storage
> Transfer Import/Export: ->Data Transfer, ->Import/Export, ->Storage
> Transfer Data Transfer: ->Data Transfer, ->Import/Export, ->Storage
> Exchange Medium Transport: None
> Exchange Storage: None
> Exchange Import/Export: None
> Exchange Data Transfer: None
>
>
Yes I think these are good:
# tapeinfo -f /dev/pass42
Product Type: Medium Changer
Vendor ID: 'QUANTUM '
Product ID: 'Scalar i40-i80 '
Revision: '180G'
Attached Changer API: No
SerialNumber: 'QUANTUMD1H0420126_LLB '
Ready: yes
# loaderinfo -f /dev/pass42
Product Type: Medium Changer
Vendor ID: 'QUANTUM '
Product ID: 'Scalar i40-i80 '
Revision: '180G'
Attached Changer: No
Bar Code Reader: Yes
EAAP: Yes
Number of Medium Transport Elements: 1
Number of Storage Elements: 49
Number of Import/Export Elements: 5
Number of Data Transfer Elements: 2
Transport Geometry Descriptor Page: Yes
Invertable: No
Device Configuration Page: Yes
Storage: Data Transfer, Import/Export, Storage
SCSI Media Changer (rev 2): No
Transfer Medium Transport: ->Import/Export, ->Storage
Transfer Storage: ->Data Transfer, ->Import/Export, ->Storage
Transfer Import/Export: ->Data Transfer, ->Import/Export, ->Storage
Transfer Data Transfer: ->Data Transfer, ->Import/Export, ->Storage
Exchange Medium Transport: None
Exchange Storage: None
Exchange Import/Export: None
Exchange Data Transfer: None
> Operating systems may provide a /dev/changer or /dev/chio device but that
> doesn't mean it's the same thing as the generic.
>
> The other thing to check is that the device is readable _and writable_ by the
> UID that's running bacula-sd - the default for the /dev/pass devices on the
> BSD systems here is 0600:root:operator and bacula-sd runs as user bacula.
>
I set that up this way:
# ls -l /dev/pass41 /dev/pass42 /dev/ch0 /dev/nsa0
crw-rw---- 1 root operator 0x77 Feb 1 16:03 /dev/ch0
crw-rw---- 1 root operator 0x72 Feb 1 16:19 /dev/nsa0
crw-rw---- 1 root operator 0xa2 Feb 1 16:03 /dev/pass41
crw-rw---- 1 root operator 0xa3 Feb 1 16:03 /dev/pass42
UID bacula is in the operator group.
------------------------------------------------------------------------------
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users