Hi Iban,

I´m afraid you have wrong configuration on your bacula-dir.conf about
storages...
I think you should have only one definition for storage, your autochanger
named TSM3500. That way bacula will find correctly your storage device, the
TSM3500, and the mtx-changer script and other configurations will help
bacula to mount the volumes.

 your "the storages contains" should be:

Storage {
  Name = TSM3500
  Address = 10.10.0.22
  SDPort = 9103
  Password = "xxxxxxxxxxxxxxxxxxx"
  Device = ULT3580-TD3
  Device = ULT3580-TD5
  Media Type = LTO-3
  Autochanger = yes
  Maximum Concurrent Jobs = 1 # i
}

Regards,
Ana

On Fri, Apr 12, 2013 at 8:48 AM, <bacula-users-requ...@lists.sourceforge.net
> wrote:

>
> Message: 15
> Date: Fri, 12 Apr 2013 13:48:07 +0200
> From: Iban Cabrillo <cabri...@ifca.unican.es>
> Subject: [Bacula-users] Restores fails
> To: Bacula-users@lists.sourceforge.net
> Message-ID:
>         <CANahg_R_Ka94R_RC1a=
> xpoe-za9c6new0yys3dskj77jsrh...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>   Since a couple of days I have problems when I try to restore a backup I
> get this error in the log :
>
> bacula-dir Fatal error: Could not get storage resource 'TSM3500'.
>
>  Error: Bacula bacula-dir 5.2.6 (21Feb12):
>
>   Build OS:               x86_64-pc-linux-gnu debian 7.0
>
>   JobId:                  1579
>
>   Job:                    RestoreFiles.2013-04-12_13.17.20_22
>
>   Restore Client:         bacula-fd
>
>   Start time:             12-abr-2013 13:17:22
>
>   End time:               12-abr-2013 13:17:22
>
>   Files Expected:         62,982
>
>   Files Restored:         0
>
>   Bytes Restored:         0
>
>   Rate:                   0.0 KB/s
>
>   FD Errors:              1
>
>   FD termination status:
>
>   SD termination status:  Error
>
>   Termination:            *** Restore Error ***
>
>  Error: Bacula bacula-dir 5.2.6 (21Feb12):
>
>   Build OS:               x86_64-pc-linux-gnu debian 7.0
>
>   JobId:                  1579
>
>   Job:                    RestoreFiles.2013-04-12_13.17.20_22
>
>   Restore Client:         bacula-fd
>
>   Start time:             12-abr-2013 13:17:22
>
>   End time:               12-abr-2013 13:17:22
>
>   Files Expected:         62,982
>
>   Files Restored:         0
>
>   Bytes Restored:         0
>
>   Rate:                   0.0 KB/s
>
>   FD Errors:              2
>
>   FD termination status:
>
>   SD termination status:  Error
>
>   Termination:            *** Restore Error ***
>
>  Start Restore Job RestoreFiles.2013-04-12_13.17.20_22
>
> bacula-fd Fatal error: job.c:2390 Bad response to Read Data command.
> Wanted 3000 OK data
>
> , got 3000 error
>
> bacula-sd Fatal error: No Volume names found for restore.
>
> bacula-dir Warning: Could not get storage resource 'TSM3500'.
>
>  Using Device "ULT3580-TD3"
>
>
>   the storages contains:
>
> Storage {
>   Name = TSM3500-LTO3
>   Address = 10.10.0.22
>   SDPort = 9103
>   Password = "xxxxxxxxxxxxxxxxxxx"
>   Device = ULT3580-TD3
>   Media Type = LTO-3
>   Autochanger = yes
>   Maximum Concurrent Jobs = 1
> }
>
> Storage {
>   Name = TSM3500-LTO5
>   Address = 10.10.0.22
>   SDPort = 9103
>   Password = "xxxxxxxxxxxxxxxxxxxxxx"
>   Device = ULT3580-TD5
>   Media Type = LTO-5
>   Autochanger = yes
>   Maximum Concurrent Jobs = 1
> }
>
> and in the bacula-sd
>
> Autochanger {
>   Name = TSM3500
>   Device = ULT3580-TD3
>   Device = ULT3580-TD5
>   Changer Device = /dev/sg7
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>                     # %c = changer device
>                     # %o = command (unload|load|loaded|list|slots)
>                     # %S = slot index (1-based)
>                     # %a = archive device (i.e., /dev/sd* name for tape
> drive)
>                     # %d = drive index (0-based)
> }
>
> Device {
>   # The TSM3100's first tape drive
>   Name = ULT3580-TD3
>   Archive Device = /dev/nst0
>   Device Type = Tape
>   Media Type = LTO-3
>   Autochanger = Yes
>   # Changer Device = <inherited from Changer>
>   Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg5 | /bin/sed -n
> /TapeAlert/p"
>   Drive Index = 0
>   RemovableMedia = yes
>   Random Access = no
>   Maximum Block Size = 262144
>   Maximum Network Buffer Size = 262144
>   Maximum Spool Size = 80gb
>   Maximum Job Spool Size = 40gb
>   Spool Directory = /backup/spool
>   AutomaticMount = Yes;
> }
>
> Device {
>   # The TSM3100's second tape drive
>   Name = ULT3580-TD5
>   Archive Device = /dev/nst1
>   Device Type = Tape
>   Media Type = LTO-5
>   Autochanger = Yes
>   # Changer Device = <inherited from Changer>
>   Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg6 | /bin/sed -n
> /TapeAlert/p"
>   Drive Index = 0
>   RemovableMedia = yes
>   Random Access = no
>   Maximum Block Size = 262144
>   Maximum Network Buffer Size = 262144
>   Maximum Spool Size = 80gb
>   Maximum Job Spool Size = 40gb
>   Spool Directory = /backup/spool
>   AutomaticMount = Yes;
> }
>
> The backup process works fine an i can nevegate through the backuped
> directories.
>
> Any Idea?
> --
> ####################################
> Iban Cabrillo Bartolome
> Instituto de Fisica de Cantabria (IFCA)
> Santander, Spain
> Tel: +34942200969
> ####################################
> Bertrand Russell:
> *"El problema con el mundo es que los est?pidos est?n seguros de todo y los
> inteligentes est?n llenos de dudas*"
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
>
> ------------------------------
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
> End of Bacula-users Digest, Vol 84, Issue 7
> *******************************************
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to