Re: [Bacula-users] Bacula Loading Tape at the Wrong Library
2014-08-18 16:30:46
hello,
i used to have the same problem and i solved it with "raw" sql queries like that :
update Media set MediaType="new_type" where mediatype="old_type";
i didnt found other methods, neither through the bconsole program. On Mon, Aug 18, 2014 at 1:24 PM, Vinicius Alexandre Pereira de Souza <
vinicius.apsouza AT gmail DOT com> wrote:
> Hi Heitor,>
> Thanks for help. I tried: update > volume parameters > all volumes from> all pools, but it didn't worked. I don't have an option like "update media
> type" also.>
>> On Mon, Aug 18, 2014 at 1:14 PM, Heitor Faria <heitor AT bacula.com DOT br>
> wrote:>
>>>>
>>>> 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:>>>
>>> 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?
>>>>>
>>>> Hi Vinicius: did you try the update > volume parameters > all volumes
>> from all pools?>>
>>>>>
>>>>>> Thanks.
>>>>>>
>>> On Thu, Aug 7, 2014 at 2:39 PM, Roberts, Ben <Ben.Roberts AT gsacapital DOT 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.apsouza AT gmail DOT com]
>>>> *Sent:* 07 August 2014 17:39>>>> *To:* bacula-users AT lists.sourceforge DOT 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 AT lists.sourceforge DOT net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>>>
>>>>
>> -->> ============================================
>> Heitor Medrado de Faria | Need Bacula training? 10% discount coupon code>> at Udemy: bacula-users
>> <https://www.udemy.com/bacula-backup-software/?couponCode=bacula-users>
>> +55 61 2021-8260
>> +55 61 8268-4220
>> Site: www.bacula.com.br
>> Facebook: heitor.faria <http://www.facebook.com/heitor.faria>
>> Gtalk: heitorfaria AT gmail DOT com
>> ============================================
>>>
>>
> --> Att,
> Vinicius Alexandre Pereira de Souza>
>
--
-- Please consider the environment before printing this email
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- Re: [Bacula-users] Bacula Loading Tape at the Wrong Library,
stefano scotti <=
|
|
|