> Hi Ana,

> Thanks for the answer. Have a command that I can delete all volumes with error
> in one shot?
Hello, Elias: if you want to recycle like you said in original post you can try 
this script or something similar: 

# Shell script to purge all Error volumes from a pool. 
clear && echo "list pools" |bconsole && read -p "Enter the Pool Name you want 
to purge all error volumes: " pool && for volname in $(echo "list media 
pool=$pool" |bconsole | grep -e Error | cut -f 3 -d '|' | tail -3 | tr -d " "); 
do echo purge volume=$volname |bconsole; done 

Regards, 

> Em 05/05/2016 7:14 PM, "Ana Emília M. Arruda" < emiliaarr...@gmail.com >
> escreveu:

>> Hello Elias,

>> Yes, you can directly update the database. If using MySQL, something like the
>> bellow:

>> update Media set VolStatus="Used" where VolStatus="Error";

>> If you're going to do this, set the status to "Used" or "Full" and then 
>> bacula
>> will recycle the volumes when its retention periods expires.

>> Nevertheless, I would recommend you to delete these volumes, because they 
>> could
>> have entered this error status caused by a label corruption. And If this is 
>> the
>> case, when Bacula would try to reuse them, they will enter again into this
>> error status.

>> Best regards,
>> Ana

>> On Thu, May 5, 2016 at 3:18 PM, Elias Pereira < empbi...@gmail.com > wrote:

>>> Hello guys,
>>> I have many volumes with errors and would like to recycle them. I can do 
>>> this in
>>> one command?

>>> --
>>> Elias Pereira

>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers 
>>> of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial!
>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users

> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
======================================================================= 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 02 de maio: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 
======================================================================== 
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to