|
From: Jens G. <jen...@eb...> - 2012-06-25 16:08:21
|
Zitat von John Drescher <dre...@gm...>:
> On Mon, Jun 25, 2012 at 10:30 AM, Jens Grüntjes
> <jen...@eb...> wrote:
>> Hello list,
>>
>> I have a strange problem with a Tandberg Storage Loader (some kind of
>> autochanger) and bacula. I run Debian squeeze (Kernel 2.6.32-5-686)
>> and bacula 5.0.2 (shipped with Debian). The changer has 8 slots and is
>> attached to the computer via SCSI. Her is the output of lsscsi -g:
>>
>> boromir /etc/bacula/scripts # lsscsi -g
>> [0:0:0:0] disk AMCC 9500S-8 DISK 2.06 /dev/sda /dev/sg0
>> [0:0:1:0] disk AMCC 9500S-8 DISK 2.06 /dev/sdb /dev/sg1
>> [1:0:0:0] cd/dvd TOSHIBA ODD-DVD SD-C2732 1051 /dev/sr0 /dev/sg2
>> [3:0:0:0] tape HP Ultrium 4-SCSI W51U /dev/st0 /dev/sg3
>> [3:0:0:1] mediumx TANDBERG StorageLoader 0347 /dev/sch0 /dev/sg4
>>
>> Until last week I defined a slot in the autochanger as a "Cleaning
>> Slot" so that I had 7 slots that could be used for backup-tapes. Then
>> I decided to clean the drive manually because I read that cleaning the
>> drive is actually not necessary. I could better use the slot for
>> another backup tape.
>>
>> So I redefined the former cleaning-slot to an ordinary slot in the
>> Tandberg autochanger. That was successfull because the front panel
>> indicated the cleaning-slot with a "C" which was gone and replaced by
>> an "8" (I defined the tape in slot 8 to be the cleaning tape).
>>
>> After that I started bconsole and issued an "update slots" command.
>> The output looks like this:
>>
>> boromir /etc/bacula/scripts # bconsole
>> Connecting to Director boromir.dmz:9101
>> 1000 OK: boromir-dir Version: 5.0.2 (28 April 2010)
>> Enter a period to cancel a command.
>> *update slots
>> Automatically selected Catalog: MyCatalog
>> Using Catalog "MyCatalog"
>> The defined Storage resources are:
>> 1: boromir-sd-100
>> 2: boromir-sd-1000
>> Select Storage resource (1-2): 2
>> Connecting to Storage daemon boromir-sd-1000 at 10.0.0.1:9103 ...
>> 3306 Issuing autochanger "slots" command.
>> Device "Tandberg" has 7 slots.
>> Connecting to Storage daemon boromir-sd-1000 at 10.0.0.1:9103 ...
>> 3306 Issuing autochanger "list" command.
>> Catalog record for Volume "WOC4-01L4" updated to reference slot 1.
>> Catalog record for Volume "WOC4-02L4" updated to reference slot 2.
>> Catalog record for Volume "WOC4-03L4" updated to reference slot 3.
>> Catalog record for Volume "WOC5-01L4" updated to reference slot 4.
>> Catalog record for Volume "WOC5-02L4" updated to reference slot 5.
>> Catalog record for Volume "WOC5-03L4" updated to reference slot 6.
>> Catalog record for Volume "WOC1-01L4" updated to reference slot 7.
>> *
>>
>> The strange line is the one that reads "Device "Tandberg" has 7
>> slots." because there are actually 8 slots.
>>
>> I reset the Tandberg autochanger to the default settings and rebooted
>> both the changer and the computer that it is attached to. There was no
>> change regarding the "update slots" command.
>>
>> The I tried to get the number of slots via:
>>
>> boromir /etc/bacula/scripts # ./mtx-changer /dev/sg4 slots
>> 7
>>
>> So, there are the 7 slots again.
>>
>> After some investigation I think it is not necessarily a problem with
>> bacula but could be a problem with the OS itself. But nevertheless I
>> hope you can help me on the issue. I can post config files as you
>> need, please tell me what you need.
>>
>> Does anyone of you know where I can set the number of slots or where
>> the number of slots is set by the OS?
>>
>
> I believe the problem is with mtx and probably how it handles your
> mail slot. Assuming your changer has that feature..
>
> John
What do you mean by a mail slot? I have some more output, maybe that
helps anybody?
boromir /etc/bacula/scripts # mtx -f /dev/sg4 status
Storage Changer /dev/sg4:1 Drives, 7 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=WOC4-01L4
Storage Element 2:Full :VolumeTag=WOC4-02L4
Storage Element 3:Full :VolumeTag=WOC4-03L4
Storage Element 4:Full :VolumeTag=WOC5-01L4
Storage Element 5:Full :VolumeTag=WOC5-02L4
Storage Element 6:Full :VolumeTag=WOC5-03L4
Storage Element 7:Full :VolumeTag=WOC1-01L4
There is this "Data Transfer Element" which is empty. Is that maybe my
"lost" slot?
--
Greetings
Jens
|