Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-18 Thread stefano scotti
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 < v

Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-18 Thread Vinicius Alexandre Pereira de Souza
Hello everbody, I tried the relabel as suggested, the media type has changed, but when bacula tries to run a job, it doesn't find any appendable volumes. I have 2 volumes on Scratch pool, both of them with the new media type "LTO-5-LibHP09". The following log was generated: LibHP Job riviera-Da

Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-18 Thread Heitor Faria
Vinícius, One option I just tested is use the relabel command twice. One relabel to any arbitrary volume name (since you can't relabel to the same volume name), and a second relabel to the original volume name witch is acquired from the tape paper label. Don't know if there is better options. Che

Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-18 Thread Vinicius Alexandre Pereira de Souza
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 wrote: > > > > The problem now is when my jobs run, it tries to use a media wi

Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-18 Thread Heitor Faria
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 w

Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-18 Thread Vinicius Alexandre Pereira de Souza
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

Re: [Bacula-users] Bacula Loading Tape at the Wrong Library

2014-08-07 Thread Roberts, Ben
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