Hello everyone, Thanks for the answer Ben, and sorry for the late reply. I've changed the Media Type, now my first Library and it's devices are using "Media Type = LTO-5-LibHP08", and the other one is using "Media Type = LTO-5-LibHP09".
The problem now is when my jobs run, it tries to use a media with "Media Type = LTO-5-LibHP08", but all the medias are still configured as "LTO-5". The following log was generated: 18-Ago 11:49 maquina-bacula-dir JobId 7583: Start Backup JobId 7583, Job=Job-Archive.2014-08-18_11.45.00_09 18-Ago 11:49 maquina-bacula-dir JobId 7583: Using Device "LibHP08-drive_1" 18-Ago 11:36 client-fd JobId 7583: Warning: DIR and FD clocks differ by -816 seconds, FD automatically compensating. 18-Ago 11:29 LibHP JobId 7583: Job Job-Archive.2014-08-18_11.45.00_09 is waiting. Cannot find any appendable volumes. Please use the "label" command to create a new Volume for: Storage: "LibHP08-drive_1" (/dev/tape/by-id/scsi-35001438016063c05-nst) Pool: Job-Archive-Daily-Pool Media type: LTO-5-LibHP08 When i list the media on bconsole, all of them still are LTO-5, after searching for solutions, all i found was people suggesting to update the values manually on database. is there a better way to correct the media type on the medias? Thanks. On Thu, Aug 7, 2014 at 2:39 PM, Roberts, Ben <ben.robe...@gsacapital.com> wrote: > Hi Vinicius, > > > > You need to use a unique Media Type for each autochanger, e.g. > “LTO5-Library1” and “LTO5-Library2”. These are arbitrary string values, the > exact name doesn’t matter. Bacula believes a drive in library1 is suitable > for loading a tape from library2 because the same Media Type is used for > each. > > > > Regards, > > Ben Roberts > > > > *From:* Vinicius Alexandre Pereira de Souza [mailto: > vinicius.apso...@gmail.com] > *Sent:* 07 August 2014 17:39 > *To:* bacula-users@lists.sourceforge.net > *Subject:* [Bacula-users] Bacula Loading Tape at the Wrong Library > > > > Hello everybody, > > I'm new to Bacula, and i'm having a problem using different storages in a > same pool. > > I have two HP Tape Libraries installed on the Storage (LibHP08 and > LibHP09), i tried to configure some jobs to access both libraries, but I'm > having some trouble with bacula accessing the wrong library. > > For example, bacula tries to access volume "G00022L5" on slot 20 at > LibHP08, but it reaches the volume "H00011L5" on slot 20 at LibHP09. > Basically, it tries to get a tape on the correct slot, but in the wrong > Library. It Generates the Following error: > > > > LibHP 3307 Issuing autochanger "unload slot 20, drive 1" command. > > Warning: Director wanted Volume "G00022L5". > > Current Volume "H00011L5" not acceptable because: > > 1998 Volume "H00011L5" catalog status is Append, not in Pool. > > Then, bacula unloads the drive, tries to find the correct tape, but > loads the wrong one, generates the error again, and so on. > > The job never completes, since it doesn't find the correct tape. > > Some of my Pools: > > > > Pool { > > Name = machine-Pool-Weekly > > Pool Type = Backup > > Storage = LibHP08, LibHP09 > > Recycle = yes > > AutoPrune = yes > > Volume Retention = 34 days > > } > > > > Pool { > > Name = machine-Pool-Monthly > > Pool Type = Backup > > Storage = LibHP08, LibHP09 > > Recycle = yes > > AutoPrune = yes > > Volume Retention = 1825 days > > } > > > > Devices/Autochangers Config: > > > > # > > ## An autochanger device with four drives > > ## Library HP (LibHP08) > > ## > > Autochanger { > > Name = LibHP08_Changer > > Device = LibHP08-drive_1, LibHP08-drive_2, LibHP08-drive_3, LibHP08-drive_4 > > Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d" > > Changer Device = /dev/tape/by-id/scsi-35001438016063c04 > > } > > > > # > > ## An autochanger device with four drives > > ## Library HP (LibHP09) > > ## > > Autochanger { > > Name = LibHP09_Changer > > Device = LibHP09-drive_1, LibHP09-drive_2, LibHP09-drive_3, LibHP09-drive_4 > > Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d" > > Changer Device = /dev/tape/by-id/scsi-3500143801606395c > > } > > > > Device { > > Name = LibHP08-drive_1 # > > Drive Index = 0 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063c05-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP08-drive_2 # > > Drive Index = 1 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063c08-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP08-drive_3 # > > Drive Index = 2 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063c0b-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP08-drive_4 # > > Drive Index = 3 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063c0e-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP09-drive_1 # > > Drive Index = 0 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-3500143801606395d-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP09-drive_2 # > > Drive Index = 1 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063960-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP09-drive_3 # > > Drive Index = 2 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063963-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > > > Device { > > Name = LibHP09-drive_4 # > > Drive Index = 3 > > Media Type = LTO-5 > > Archive Device = /dev/tape/by-id/scsi-35001438016063966-nst > > AutomaticMount = yes; # when device opened, read it > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > Alert Command = "sh -c 'smartctl -H -l error %c'" > > Maximum Changer Wait = 600 > > Maximum Concurrent Jobs = 1 > > LabelMedia = yes > > } > > Storage config: > > > > Storage { > > Name = LibHP08 > > Address = sd-host > > SDPort = 9103 > > Password = "myPassword" > > Device = LibHP08_Changer > > Media Type = LTO-5 > > Autochanger = yes > > Maximum Concurrent Jobs = 4 > > } > > > > Storage { > > Name = LibHP09 > > Address = sd-host > > SDPort = 9103 > > Password = "myPassword" > > Device = LibHP09_Changer > > Media Type = LTO-5 > > Autochanger = yes > > Maximum Concurrent Jobs = 4 > > } > > At bconsole, i executed the following: > > > > update slots > > There was some tapes at the wrong place, it updated the catalog, but the > error persists. > > I'm Currently using Bacula v5.2.12, I've installed the Director and the > Storage on different machines, both of them communicating with no problems > > Any ideas? > > > > I also created a question at Serverfault: > > http://serverfault.com/questions/618720/ > > > > Thanks in advance! > > -- > > Att, > > Vinicius Alexandre Pereira de Souza > > > > ------------------------------ > This email and any files transmitted with it contain confidential and > proprietary information and is solely for the use of the intended > recipient. If you are not the intended recipient please return the email to > the sender and delete it from your computer and you must not use, disclose, > distribute, copy, print or rely on this email or its contents. This > communication is for informational purposes only. It is not intended as an > offer or solicitation for the purchase or sale of any financial instrument > or as an official confirmation of any transaction. Any comments or > statements made herein do not necessarily reflect those of GSA Capital. GSA > Capital Partners LLP is authorised and regulated by the Financial Conduct > Authority and is registered in England and Wales at Stratton House, 5 > Stratton Street, London W1J 8LA, number OC309261. GSA Capital Services > Limited is registered in England and Wales at the same address, number > 5320529. > > -- Att, Vinicius Alexandre Pereira de Souza
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users