On Fri, Aug 3, 2012 at 9:30 AM, Leandro César
<
leandro.cesar.dias AT gmail DOT com> wrote:
> I have problems setting up a tape TL2000 with 2 Drivers.
>
> # lsscsi -g
> [0:0:0:0] tape IBM ULT3580-HH5 B6W1 /dev/st0 /dev/sg0
> [0:0:0:1] mediumx IBM 3573-TL A.50 /dev/sch0 /dev/sg1
> [0:0:1:0] tape IBM ULT3580-HH5 B6W1 /dev/st1 /dev/sg2
> [1:0:0:0] disk ATA ST31500341AS CC1H /dev/sda /dev/sg3
> [1:0:1:0] cd/dvd TEAC DVD-ROM DV28SV D.0L /dev/sr0 /dev/sg4
> [2:0:0:0] disk ATA ST31500341AS CC1H /dev/sdb /dev/sg5
>
> # bacua-dir.conf
> Storage {
> Name = Autochanger
> Address =
server.com.br
> SDPort = 9103
> Password = "minha senha"
> Device = Autochanger
> Media Type = TL2000
> Autochanger = yes
> }
>
>
> # bacula-sd.conf
> Autochanger {
> Name = Autochanger
> Device = Drive-1
> Device = Drive-2
> Changer Command = "/usr/bin/mtx-changer %c %o %S %a %d"
> Changer Device = /dev/sg1
> }
>
> Device {
> Name = Drive-1
> Drive Index = 0
> Media Type = TL2000
> Archive Device = /dev/st0
> AutomaticMount = yes;
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
>
> }
>
> Device {
> Name = Drive-2
> Drive Index = 1
> Media Type = TL2000
> Archive Device = /dev/st1
> AutomaticMount = yes;
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> }
>
> I can handle the tapes with mtx-changer and usually mt.
>
> # mtx -f /dev/sg1 status
> Storage Changer /dev/sg1:2 Drives, 24 Slots ( 1 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = 000075L5
> Data Transfer Element 1:Empty
> Storage Element 1:Empty
> Storage Element 2:Full :VolumeTag=000078L5
> Storage Element 3:Full :VolumeTag=000061L5
> Storage Element 4:Full :VolumeTag=000072L5
> Storage Element 5:Full :VolumeTag=000074L5
> Storage Element 6:Full :VolumeTag=000077L5
> Storage Element 7:Full :VolumeTag=000080L5
> Storage Element 8:Full :VolumeTag=000071L5
> Storage Element 9:Full :VolumeTag=000073L5
> Storage Element 10:Full :VolumeTag=000076L5
> Storage Element 11:Full :VolumeTag=000079L5
> Storage Element 12:Full :VolumeTag=000092L5
> Storage Element 13:Full :VolumeTag=000070L5
> Storage Element 14:Full :VolumeTag=000066L5
> Storage Element 15:Full :VolumeTag=CLNU00L1
> Storage Element 16:Full :VolumeTag=000091L5
> Storage Element 17:Full :VolumeTag=000068L5
> Storage Element 18:Full :VolumeTag=000065L5
> Storage Element 19:Full :VolumeTag=000062L5
> Storage Element 20:Full :VolumeTag=000069L5
> Storage Element 21:Full :VolumeTag=000067L5
> Storage Element 22:Full :VolumeTag=000064L5
> Storage Element 23:Full :VolumeTag=000063L5
> Storage Element 24 IMPORT/EXPORT:Empty
>
> But can not see my tapes in bconsole:
>
> * status storage=Autochanger
> Connecting to Storage daemon Autochanger at
server.com.br:9103
> 3306 Issuing autochanger "slots" command.
> Device "Drive-2" has 0 slots.
> No slots in changer to scan.
>
>