I think the first argument to mtx-changer must be the generic device
associated with /dev/sch0 (the robot), not the tape drive.

You can list the generic devices using "lsscsi --generic".  See
https://unix.stackexchange.com/a/193474.

__Martin


>>>>> On Tue, 1 Dec 2020 04:35:35 +0100, mauric said:
> 
> root@bacularestore:/home/caragadm# lsscsi
> [1:0:0:0]    cd/dvd  hp       DVDRW  DU8A6SH   DHS3  /dev/sr0
> [2:0:0:0]    disk    ATA      MTFDDAK256MBF-1A M6T3  /dev/sda
> [6:0:0:0]    disk    Generic- SD Card Reader   1.00  /dev/sdb
> [7:0:0:0]    tape    HP       Ultrium 6-SCSI   334U  /dev/st0
> [7:0:0:1]    mediumx TANDBERG StorageLoader    0495  /dev/sch0
> #
> 
> ok here i see me tape library, try loading the tape from slot 5, to tape,
> will do nothing. I think this command are right
> 
> root@bacularestore:/home/cgadm# /etc/bacula/scripts/mtx-changer /dex/st0
> load 5 /dev/nst0 0
> 
> thanks Mauri
> 
> 
> 
> Von: mau...@gmx.ch <mau...@gmx.ch>
> Gesendet: Dienstag, 1. Dezember 2020 03:55
> An: bacula-users@lists.sourceforge.net
> Betreff: Re: [Bacula-users] Tandberg 8 Slot - Config help need and Bscan
> need
> 
> 
> 
> Hello Bacula Members
> 
> 
> 
> Please i cant communicate with me Tandberg Tape Roboter, I have Debian 9
> installed with a LSI Controller.
> 
> I have configured Bacula-dir.conf and if try to mount any tape with mount
> the tape will do nothing.
> 
> 
> 
> Also I need to do any cataog for one tape..  Bscan
> 
> 
> 
> Thanks
> 
> Mauri
> 
> 
> 
> Von:  <mailto:mau...@gmx.ch> mau...@gmx.ch < <mailto:mau...@gmx.ch>
> mau...@gmx.ch>
> Gesendet: Montag, 30. November 2020 19:49
> An:  <mailto:bacula-users@lists.sourceforge.net>
> bacula-users@lists.sourceforge.net
> Betreff: [Bacula-users] Tandberg 8 Slot - Config help need and Bscan need
> 
> 
> 
> Hello Bacula
> 
> Running gere with Debian 9, and Bacula 7.4.4
> 
> 
> 
> root@bacularestore:/home/caragadm# bconsole
> 
> Connecting to Director bacularestore:9101
> 
> 1000 OK: 102 bacularestore-dir Version: 7.4.4 (20 September 2016)
> 
> Enter a period to cancel a command.
> 
> *mount
> 
> Automatically selected Catalog: CaragCatalog
> 
> Using Catalog "CaragCatalog"
> 
> The defined Storage resources are:
> 
>      1: FileStorageVMware
> 
>      2: TapeStorageVMware
> 
> Select Storage resource (1-2): 1
> 
> 
> 
> here nothing going on
> 
> please i need to load Slot 5 and do a Bscan so that
> 
>  help for bscan command ?
> 
> after that need restoring Data from this tape, that sitting
> 
> on slot 5, try also with this command but the Tape will do nothing
> 
>   /etc/bacula/scripts/mtx-changer /dev/sg3 load 5 /dev/nst0
> 
> 
> 
> I have here by me critical recorver, please help me so that i can do
> 
> communication with this Tape Roboter, so that i can start as fast possible
> 
> the process.
> 
> 
> 
> also iam not shure if the Bacula-sd.conf are setup correct, in the meantime
> 
> i the this setup, and the Tape Library mad no sign of live.
> 
> 
> 
> this tape library are a 8 Slot Tape Tandberg - LTO-6
> 
> 
> 
> ---
> 
> 
> 
> root@bacularestore:/etc/bacula# cat bacula-sd.conf
> 
> #
> 
> # Default Bacula Storage Daemon Configuration file
> 
> #
> 
> #  For Bacula release 7.4.4 (20 September 2016) -- debian 9.13
> 
> #
> 
> # You may need to change the name of your tape drive
> 
> #   on the "Archive Device" directive in the Device
> 
> #   resource.  If you change the Name and/or the
> 
> #   "Media Type" in the Device resource, please ensure
> 
> #   that dird.conf has corresponding changes.
> 
> #
> 
> #
> 
> # Copyright (C) 2000-2015 Kern Sibbald
> 
> # License: BSD 2-Clause; see file LICENSE-FOSS
> 
> #
> 
> 
> 
> Storage {                             # definition of myself
> 
>   Name = bacularestore-sd
> 
>   SDPort = 9103                  # Director's port
> 
>   WorkingDirectory = "/var/lib/bacula"
> 
>   Pid Directory = "/run/bacula"
> 
>   Maximum Concurrent Jobs = 20
> 
>   SDAddress = 127.0.0.1
> 
> }
> 
> 
> 
> #
> 
> # List Directors who are permitted to contact Storage daemon
> 
> #
> 
> Director {
> 
>   Name = bacularestore-dir
> 
>   Password = "o5ahKDmsAMGoVm-LO8k5U_s8Glk3K2hHk"
> 
> }
> 
> 
> 
> #
> 
> # Restricted Director, used by tray-monitor to get the
> 
> #   status of the storage daemon
> 
> #
> 
> Director {
> 
>   Name = bacularestore-mon
> 
>   Password = "G5UTaDyJDaLIXofnE43X_ywY2YyA3QSiA"
> 
>   Monitor = yes
> 
> }
> 
> 
> 
> #
> 
> # Note, for a list of additional Device templates please
> 
> #  see the directory <bacula-source>/examples/devices
> 
> # Or follow the following link:
> 
> #
> <http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devic
> es/>
> http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/device
> s/
> 
> #
> 
> 
> 
> #
> 
> # Devices supported by this Storage daemon
> 
> # To connect, the Director's bacula-dir.conf must have the
> 
> #  same Name and MediaType.
> 
> #
> 
> 
> 
> #
> 
> # Define a Virtual autochanger
> 
> #
> 
> Autochanger {
> 
>   Name = FileChgr1
> 
>   Device = FileChgr1-Dev1, FileChgr1-Dev2
> 
>   Changer Command = ""
> 
>   Changer Device = /dev/null
> 
> }
> 
> 
> 
> Device {
> 
>   Name = FileChgr1-Dev1
> 
>   Media Type = File1
> 
>   Archive Device = /nonexistant/path/to/file/archive/dir
> 
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
> 
>   Random Access = Yes;
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   RemovableMedia = no;
> 
>   AlwaysOpen = no;
> 
>   Maximum Concurrent Jobs = 5
> 
> }
> 
> 
> 
> Device {
> 
>   Name = FileChgr1-Dev2
> 
>   Media Type = File1
> 
>   Archive Device = /nonexistant/path/to/file/archive/dir
> 
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
> 
>   Random Access = Yes;
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   RemovableMedia = no;
> 
>   AlwaysOpen = no;
> 
>   Maximum Concurrent Jobs = 5
> 
> }
> 
> 
> 
> #
> 
> # Define a second Virtual autochanger
> 
> #
> 
> Autochanger {
> 
>   Name = FileChgr2
> 
>   Device = FileChgr2-Dev1, FileChgr2-Dev2
> 
>   Changer Command = ""
> 
>   Changer Device = /dev/null
> 
> }
> 
> 
> 
> Device {
> 
>   Name = FileChgr2-Dev1
> 
>   Media Type = File2
> 
>   Archive Device = /nonexistant/path/to/file/archive/dir
> 
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
> 
>   Random Access = Yes;
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   RemovableMedia = no;
> 
>   AlwaysOpen = no;
> 
>   Maximum Concurrent Jobs = 5
> 
> }
> 
> 
> 
> Device {
> 
>   Name = FileChgr2-Dev2
> 
>   Media Type = File2
> 
>   Archive Device = /nonexistant/path/to/file/archive/dir
> 
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
> 
>   Random Access = Yes;
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   RemovableMedia = no;
> 
>   AlwaysOpen = no;
> 
>   Maximum Concurrent Jobs = 5
> 
> }
> 
> 
> 
> 
> 
> #
> 
> # An autochanger device with two drives
> 
> #
> 
> #Autochanger {
> 
> #  Name = Autochanger
> 
> #  Device = Drive-1
> 
> #  Device = Drive-2
> 
> #  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> 
> #  Changer Device = /dev/sg0
> 
> #}
> 
> 
> 
> #Device {
> 
> #  Name = Drive-1                      #
> 
> #  Drive Index = 0
> 
> #  Media Type = DLT-8000
> 
> #  Archive Device = /dev/nst0
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  AlwaysOpen = yes;
> 
> #  RemovableMedia = yes;
> 
> #  RandomAccess = no;
> 
> #  AutoChanger = yes
> 
> #  #
> 
> #  # Enable the Alert command only if you have the mtx package loaded
> 
> #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
> 
> #  #  thus if you turn this on, make sure it does not reset your SCSI
> 
> #  #  controller.  I have never had any problems, and smartctl does
> 
> #  #  not seem to cause such problems.
> 
> #  #
> 
> #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> 
> #  If you have smartctl, enable this, it has more info than tapeinfo
> 
> #  Alert Command = "sh -c 'smartctl -H -l error %c'"
> 
> #}
> 
> 
> 
> 
> 
> 
> 
> 
> 
> #
> 
> # A Linux or Solaris LTO-4 tape drive
> 
> #
> 
> Device {
> 
>   Name = LTO-6
> 
>   Media Type = LTO-6
> 
>   Archive Device = /dev/nst0
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   # Maximum File Size = 5GB
> 
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> 
>   Changer Device = /dev/sg0
> 
>   AutoChanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
> ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> 
> ## If you have smartctl, enable this, it has more info than tapeinfo
> 
> ## Alert Command = "sh -c 'smartctl -H -l error %c'"
> 
> }
> 
> 
> 
> 
> 
> 
> 
> Messages {
> 
>   Name = Standard
> 
>   director = bacularestore-dir = all
> 
> 
> 
> 
> 
> 
> 
> ---
> 
> 
> 
> also now this messages will be appair
> 
> 
> 
> 30-Nov 17:23 bacularestore-dir JobId 0: Warning: bsock.c:107 Could not
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> Retrying ...
> 
> 30-Nov 17:28 bacularestore-dir JobId 0: Warning: bsock.c:107 Could not
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> Retrying ...
> 
> 30-Nov 17:33 bacularestore-dir JobId 0: Warning: bsock.c:107 Could not
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> Retrying ...
> 
> 30-Nov 17:38 bacularestore-dir JobId 0: Warning: bsock.c:107 Could not
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> Retrying ...
> 
> 30-Nov 17:43 bacularestore-dir JobId 0: Warning: bsock.c:107 Could not
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> Retrying ...
> 
> 30-Nov 17:49 bacularestore-dir JobId 0: Warning: bsock.c:107 Could not
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> Retrying ...
> 
> 30-Nov 17:53 bacularestore-dir JobId 0: Fatal error: bsock.c:113 Unable to
> connect to Storage daemon on tape.car.local:9103. ERR=Connection refused
> 
> 


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

Reply via email to