Re: [Bacula-users] Deleting Obsolete Volumes

2023-04-15 Thread Chris Wilkinson
Yes that is true. I was concerned that a deleted volume of a job with no
files would cause subsequent backups to fail. That doesn't seem to be the
case. It is only incr/diffs that would get deleted since fulls are never
empty.

-Chris-

On Fri, 14 Apr 2023, 17:57 Martin Simmons,  wrote:

> The problem is that the catalog doesn't record which jobs are on each
> volume.
> It uses the jobmedia table to record which files of a job are on each
> volume
> (in groups between firstindex and lastindex).  As a result, if a job has no
> files then it has no rows in the jobmedia table and hence is invisible to
> 'query 14'.
>
> Why are you worried about deleting these empty volumes?  There should be no
> problem because they will never be used in a restore.
>
> __Martin
>
>
> > On Thu, 13 Apr 2023 23:17:50 +0100, Chris Wilkinson said:
> >
> > Yes that is true. In the other cases I found, these were also zero file
> > incr/diff jobs.
> >
> > However it appears that the job wrote a Volume as it appears in the list
> > media result and there is such a Volume on disk but only 667 bytes so
> only
> > the label I presume.
> >
> > I had expected that 'query 14' would recognise that a Volume has an
> > associated job even if that job wrote zero files to the volume but it
> > doesn't.
> >
> > The script needs some additional condition for deletion to avoid deleting
> > these zero file volumes. No idea what that might be right now.
> >
> > Chris-
> >
> > On Thu, 13 Apr 2023, 22:55 Bill Arlofski,  wrote:
> >
> > > Hello Chris,
> > >
> > > Your jobid  2,371 wrote 0 files, 0 bytes, and the job's Summary shows
> for
> > > `Volume name(s):`  No volumes.
> > >
> > > So, unless there are other jobs on this volume, jobid 2,371 did not
> > > actually write to it.
> > >
> > >
> > > Hope this helps,
> > > Bill
> > >
> > > --
> > > Bill Arlofski
> > > w...@protonmail.com
> > >
> > > -Chris-
> >
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] truncate all purged disk file volumes in a given pool

2023-04-15 Thread Ana Emília M . Arruda
Dear Justin,

yes, truncate pool=mypool1 storage=mystor1 is the command to use to
truncate all volumes in a single pool.

Best,
Ana

On Wed, Mar 15, 2023 at 12:24 AM Justin Case  wrote:

> Dear fellows,
>
> I know i may truncate all disk file volumes in all pools of a given
> storage like this:
> truncate allpools storage=mystor1
>
> I just need confirmation: if I wanted to truncate just all volumes in a
> given pool, would I do it like this?
> truncate pool=mypool1 storage=mystor1
>
> Best
>  j/c
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Multiple Restore jobs

2023-04-15 Thread Yateen Shaligram Bhagat (Nokia)



Hi Bill

Yes, setting MaximumConcurrentJobs = n ; worked for me.
I could run multiple Restoration jobs concurrently.

Thanks
Yateen 

-Original Message-
From: Bill Arlofski  
Sent: Friday, April 14, 2023 8:07 PM
To: Yateen Shaligram Bhagat (Nokia) ; 
bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Multiple Restore jobs

On 4/14/23 03:42, Yateen Shaligram Bhagat (Nokia) wrote:
> Hi Bill,
>
> You are correct,, I can see the MaximumConcurrentJobs limitation, see the 
> "status dir" output from bconsole below:
> So how to we enhance this limit for the Restore jobs


Hello Yateen,

I think you just need to add `MaximumConcurrentJobs = x` to your restore job 
called `RestoreFiles`

Set `x` to any number higher than 1, like 10, 20, whatever, and you should be 
OK to do multiple concurrent restore jobs.


Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users