[Stgt-devel] Bug report mediachanger ?

Mark Harvey mark_harvey
Wed Jul 23 01:14:59 CEST 2008


You need to ask the maintainer of the mtx this question.

Using the tgt-core-test script as my 'bench' configuration, I get the
following
# mtx --version
mtx version 1.3.11
# mtx -f /dev/sg7 status
  Storage Changer /dev/sg7:3 Drives, 13 Slots ( 5 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
      Storage Element 1:Full :VolumeTag=ABC123
      Storage Element 2:Empty:VolumeTag=
      Storage Element 3:Full :VolumeTag=ULT001L3
      Storage Element 4:Empty:VolumeTag=
      Storage Element 5:Empty:VolumeTag=
      Storage Element 6:Empty:VolumeTag=
      Storage Element 7:Empty:VolumeTag=
      Storage Element 8:Empty:VolumeTag=
      Storage Element 9 IMPORT/EXPORT:Empty:VolumeTag=

      Storage Element 10 IMPORT/EXPORT:Empty:VolumeTag=

      Storage Element 11 IMPORT/EXPORT:Empty:VolumeTag=

      Storage Element 12 IMPORT/EXPORT:Empty:VolumeTag=

      Storage Element 13 IMPORT/EXPORT:Empty:VolumeTag=

Using a 'NetBackup' test utility to query device:
# /usr/openv/volmgr/bin/tldtest -r /dev/sg7
Opening /dev/sg7
MODE_SENSE complete
Enter tld commands (? returns help information)

s s
slot 1 (addr 1024) contains Cartridge = yes
Barcode = ABC123
slot 2 (addr 1025) contains Cartridge = no
slot 3 (addr 1026) contains Cartridge = yes
Barcode = ULT001L3
slot 4 (addr 1027) contains Cartridge = no
slot 5 (addr 1028) contains Cartridge = no
slot 6 (addr 1029) contains Cartridge = no
slot 7 (addr 1030) contains Cartridge = no
slot 8 (addr 1031) contains Cartridge = no
READ_ELEMENT_STATUS complete

mode
First transport addr = 16, Number transport elements = 1
First storage addr = 1024, Number storage elements = 8
First media access port addr = 32, Number media access port elements = 5
First drive addr = 1, Number drive elements = 3
Library does have a barcode reader
MODE_SENSE complete

Cheers
Mark

-----Original Message-----
From: stgt-devel-bounces at lists.berlios.de
[mailto:stgt-devel-bounces at lists.berlios.de] On Behalf Of Albert Pauw
Sent: Wednesday, July 23, 2008 6:43 AM
To: STGT
Subject: [Stgt-devel] Bug report mediachanger ?

For the media changer I defined three drives starting at address 1,
one robot arm at address 16, ten tape slots starting at 1024, and five
import/export elements at address 32.

However, when I use mtx for the status (mtx -f /dev/sg4 status) I get:

  Storage Changer /dev/sg4:3 Drives, 13 Slots ( 5 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = 
ABC123                        
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
      Storage Element 1:Empty:VolumeTag=                               
      Storage Element 2:Full :VolumeTag=ULT001L3                      
      Storage Element 3:Empty:VolumeTag=                               
      Storage Element 4:Empty:VolumeTag=                              
      Storage Element 5:Empty:VolumeTag=                              
      Storage Element 6:Empty:VolumeTag=                              
      Storage Element 7:Empty:VolumeTag=                              
      Storage Element 8:Empty:VolumeTag=                              
      Storage Element 9 
IMPORT/EXPORT:Empty:VolumeTag=                              
      Storage Element 10 
IMPORT/EXPORT:Empty:VolumeTag=                              
      Storage Element 11 
IMPORT/EXPORT:Empty:VolumeTag=                              
      Storage Element 12 
IMPORT/EXPORT:Empty:VolumeTag=                              
      Storage Element 13 IMPORT/EXPORT:Empty:VolumeTag=                

Why doesn't show mtx the proper addresses as defined at setup,
i.e. first storage element -> 1024?

Thanks,

Albert
_______________________________________________
Stgt-devel mailing list
Stgt-devel at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/stgt-devel



More information about the stgt mailing list