Re: [Bacula-users] scripting bconsole (Re: vchanger and "intervention needed")

2014-08-18 Thread Roberts, Ben
> > You could use the expect command to script a reply to request as in: > > I could also use python's subprocess.Popen or execvp(3) and dup(2) in c. > The way every proper unix utility works is > > bconsole -c "delete volume=xyz" -y Bacula will do this for you without any other tools; you jus

Re: [Bacula-users] scripting bconsole (Re: vchanger and "intervention needed")

2014-08-18 Thread Dimitri Maziuk
On 08/18/2014 05:55 PM, Jeffrey Lang wrote: > Dimitri > > You could use the expect command to script a reply to request as in: I could also use python's subprocess.Popen or execvp(3) and dup(2) in c. The way every proper unix utility works is bconsole -c "delete volume=xyz" -y -- Dimitri Maz

Re: [Bacula-users] scripting bconsole (Re: vchanger and "intervention needed")

2014-08-18 Thread Jeffrey Lang
Dimitri You could use the expect command to script a reply to request as in: #!/usr/bin/expect -f set volume [lindex $argv 0] spawn bconsole expect "*" send "delete volume=$volume\r" expect "(yes/no): " send "yes\r"; expect "*" send "exit\r" interact On 08/18/2014 04:21 PM, Dimi

[Bacula-users] scripting bconsole (Re: vchanger and "intervention needed")

2014-08-18 Thread Dimitri Maziuk
On 10/31/2013 02:53 PM, Josh Fisher wrote: > I don't think so. Wildcards in 'delete volume' would be pretty > dangerous. You can, though, run bconsole from a shell script. I use the > following on Centos. ... > bconsole < delete volume=${mag}_${s} > EOD > n=`expr $n + 1` > done Sorry to

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] pruning oldest volume when its impossible

2014-08-18 Thread Jeff MacDonald
This was exactly my issue. I had “Recycle oldest volume” on. Which meant it was looking to see if there was anything to recycle but since my job/file retentions are so high there was no chance it would ever find anything and so it keeps chugging and chugging trying to fid it. Learned a lot in t

Re: [Bacula-users] Lets open up a discussion about estimating required space for backups.

2014-08-18 Thread Jeff MacDonald
Hi Dmitri, WOW! I didn’t know about vchanger. I just read the wiki article about it and this could really change how I do disk based backup. I like using a NAS for bacula in the datacenter but some of my customers have it in their offices and this would really make things cheaper with higher

Re: [Bacula-users] DAT72 USB tape-drive support on Linux 2.6 kernel?

2014-08-18 Thread Huub Van Niekerk
Now that the poweradapter of the tapedrive is replaced I actually could test this and find that both drivers are not being loaded. As said before, I previously used Barracuda Backup. Since my server runs Slackware from 2007 (migration to CentOS6 is planned...), does this mean that the drivers ar