Dear Heitor,

In message 
<assp.0662b57ab3.2123940020.2537505.1525439098328.javamail.zim...@bacula.com.br>
 you wrote:
>
> I was always intrigued by the fact there is no easy way of
> determining Linux Tape-Library drives order, as displayed by mtx
> status command (Ref:
> https://sourceforge.net/p/mtx/mailman/message/6018053/), that says
> the only way to really make sure about the drives order is to
> insert tapes into each drive.
> Also, I've been observing that the output of the ls -la
> /dev/tape/by-id/* lately has been very accurate about the
> tape-library driver's order matching the alphabetical and TL
> physical order.
> Because of that, I wrote this script
> (https://pastebin.com/857Msd8b) that prints the order and Bacula
> configuration directives suggestion for a single installed TL.

Sorry, this doesn't work for me (under Fedora 27):

Autochanger=0
  Changer Device = /dev/tape/by-id/scsi-1TANDBERGStorageLoader_AA49LA012794

Autochanger=1
  Changer Device = 13:43

Drive-0   Archive Device = ->
sginfo: invalid option -- '>'
Error: sginfo: Unknown option
Usage: sginfo [-options] [device] [replacement_values]
        Allowed options are:
        -6    Do 6 byte mode sense and select commands (def: 10 bytes).
        -a    Display inquiry info, serial # and all mode pages.
        -A    Similar to '-a' but displays all subpages as well.
...
        -R    Replace parameters - best used with -X (expert use only)
              [replacement parameters placed after device on command line]

              sginfo version: 2.35 [20140403]; See man page for more details.

Drive-1     tape    QUANTUM  ULTRIUM 4        U61T  /dev/st1   /dev/sg7
  Archive Device = /dev/tape/by-id/scsi-3500110a0014d7c1e-nst
sginfo(open): Device or resource busy
file=/dev/tape/by-id/scsi-3500110a0014d7c1e-nst, or no corresponding sg device 
found
Is sg driver loaded?


Drive-2   Archive Device = ->
sginfo: invalid option -- '>'
Error: sginfo: Unknown option
Usage: sginfo [-options] [device] [replacement_values]
        Allowed options are:
        -6    Do 6 byte mode sense and select commands (def: 10 bytes).
        -a    Display inquiry info, serial # and all mode pages.
        -A    Similar to '-a' but displays all subpages as well.
...
       -R    Replace parameters - best used with -X (expert use only)
              [replacement parameters placed after device on command line]

              sginfo version: 2.35 [20140403]; See man page for more details.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Every time history repeats itself the price goes up.

------------------------------------------------------------------------------
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

Reply via email to