Use /dev/sch0, not /dev/sg2.  Bear in mind, udev is not your friend.  If you 
ever add another tape drive to your library or expand your device fabric, these 
device references will/can change with every system boot.  As is, the /dev/sgX 
references can change with reboots, but if you only have one changer and one 
drive, the /dev/sch0 and /dev/nst0 devices should remain static.  Also, you 
have "Drive Index = 1" commented out.  Uncomment and change it to "Drive Index 
= 0".  All tape drives in a changer must have an index and the first one is 
zero.  Give those a try.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 11/5/18, 12:26 PM, "William Muriithi" <will...@perasotech.com> wrote:

    Hello,
    
    We have a quantum superloader 3 that seem to be fine when tested through mt 
and mtx command.
    
    [root@eng-backup02 ~]# lsscsi -g
    [0:2:0:0]    disk    DELL     PERC H710P       3.13  /dev/sda   /dev/sg0 
    [1:0:2:0]    tape    IBM      ULTRIUM-HH6      E4J1  /dev/st0   /dev/sg1 
    [1:0:2:1]    mediumx QUANTUM  UHDL             0091  /dev/sch0  /dev/sg2 
    [root@eng-backup02 ~]#
    
    When we run btape -c test, the command, it come back successful for all 
tape tests.  However, for the autochanger, I am getting this error.  Have 
anyone seen it before and how did you resolve it?
    
    === Autochanger test ===
    
    3301 Issuing autochanger "loaded" command.
    Slot 3 loaded. I am going to unload it.
    3302 Issuing autochanger "unload 3 0" command.
    unload status=OK 0
    3303 Issuing autochanger "load 1 0" command.
    3993 Bad autochanger command: /etc/bacula/scripts/mtx-changer /dev/sg2 load 
1 /dev/nst0 0
    3993 result="Loading media from Storage Element 1 into drive 0...done
    ": ERR=Child died from signal 15: Termination
    You must correct this error or the Autochanger will not work.
    *
    
    Below is my storage configurations:
    Autochanger {
      Name = SuperLoader3
      Device = ultrium1 
      Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
      Changer Device = /dev/sg2
    }
    
    Device {
      Name = ultrium1
      Media Type = LTO-6
      Archive Device = /dev/nst0
    #  Drive Index = 1
      LabelMedia = yes;                   # lets Bacula label unlabeled media
      Random Access = no;
      AutomaticMount = yes;               # when device opened, read it
      RemovableMedia = yes;
      AlwaysOpen = yes;
      Autochanger = yes;
    }
    
    Would appreciate any guidance a  lot
    
    Regards,
    William 
    
    _______________________________________________
    Bacula-users mailing list
    Bacula-users@lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/bacula-users
    


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to