> It comes complete with a "pjc-changer" script that can be used instead of
> the Bacula "mtx-changer" script.

Hi Peter,

just was bored and tried your pjc-0.6.
System is SuSE9.0 Kernel 2.4.21-286-smp4G.

Compiles without warnings.
Runs without warnings.
But:
---------------------------------------------------
epistaxis:/usr/src/pjc-0.6 # ./pjc -f /dev/scsi/sgh1-c800c0i6l0 -v inquiry
[PJC 0.6 - Copyright (c) Peter Eriksson - Built Jun  8 2005 09:23:31]

  Peripheral Qualifier:      Device (probably) available
  Device type:               Media Changer
  Removable:                 Yes
  ISO Version:               0
  ECMA Version:              0
  ANSI Version:              SCSI-2
  Manufacturer:              HP
  Product:                   C5173-7000
  Revision:                  4.06
  Response Data Format:      2
  RelAdr Flag:               Off
  WBus32 Flag:               Off
  WBus16 Flag:               Off
  Sync Flag:                 Off
  Linked Flag:               Off
  CmdQue Flag:               Off
  SftRe Flag:                Off
---------------------------------------------------

So it recognizes the changer, but doesn't list any transports,drives,storage.

These work fine:
---------------------------------------------------
epistaxis:/usr/src/pjc-0.6 # ./pjc -f /dev/scsi/sgh1-c800c0i6l0 -v 
list-element-status BL0105
[PJC 0.6 - Copyright (c) Peter Eriksson - Built Jun  8 2005 09:23:31]


    Drive #31:
      Element Adress:                 1
      Access State:                   Yes
      Abnormal State:                 No
      Full:                           Yes
      Sense Code:                     0x00 / 0x00 (No additional sense 
information)
      Not on same SCSI Bus:           No
      SCSI Bus Address:               5
      SCSI Bus Logical Unit:          0
      Element Inverted:               No
      Source Storage Element Address: 34
      Primary Volume Tag:             BL0105                           [#8224]
---------------------------------------------------
Thats for a loaded tape.

---------------------------------------------------
epistaxis:/usr/src/pjc-0.6 # ./pjc -f /dev/scsi/sgh1-c800c0i6l0 -v 
list-element-status BL0101
[PJC 0.6 - Copyright (c) Peter Eriksson - Built Jun  8 2005 09:23:31]


    Storage #31:
      Element Adress:                 31
      Access State:                   Yes
      Abnormal State:                 No
      Full:                           Yes
      Sense Code:                     0x00 / 0x00 (No additional sense 
information)
      Element Inverted:               No
      Source Storage Element Address: 31
      Primary Volume Tag:             BL0101                           [#8224]
---------------------------------------------------
Thats for an unloaded tape.

Your supplied mtx wrapper is working as expected:
---------------------------------------------------
epistaxis:/usr/src/pjc-0.6 # ./mtx status
Storage Changer /dev/changer: Drives,  Slots ( Import/Export)
      Storage Element 31:Full :VolumeTag=BL0101
      Storage Element 32:Full :VolumeTag=BL0103
      Storage Element 33:Full :VolumeTag=BL0104
      Storage Element 34:Empty
      Storage Element 35:Full :VolumeTag=BL0106
      Storage Element 36:Full :VolumeTag=CN0101
      Storage Element 37:Full :VolumeTag=CN0102
      Storage Element 38:Full :VolumeTag=CN0103
      Storage Element 39:Full :VolumeTag=CN0104
      Storage Element 40:Full :VolumeTag=CN0105
      Storage Element 41:Empty
      Storage Element 42:Empty
      Storage Element 43:Empty
      Storage Element 44:Empty
      Storage Element 45:Empty
Data Transfer Element 1:Full (Storage Element 34 Loaded):VolumeTag=BL0105
---------------------------------------------------

Couldn't test the pjc-changer, as I didn't know what to use for TAPEWAIT.

CU Sven


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to