Bacula-users

Re: [Bacula-users] Bacula asking for wrong tape.

2008-08-09 18:45:47
Subject: Re: [Bacula-users] Bacula asking for wrong tape.
From: Craig White <craigwhite AT azapple DOT com>
To: Keith Sudbury <keith AT netzensolutions DOT com>
Date: Sat, 09 Aug 2008 15:44:25 -0700
On Sat, 2008-08-09 at 23:35 +0100, Keith Sudbury wrote:
> Craig White wrote:
> > On Sat, 2008-08-09 at 01:51 +0100, Keith Sudbury wrote:
> >   
> >> I Have 4 friday tapes all in a friday pool, bacula should be asking for 
> >> friday2 however I had to restart the directory today and after the 
> >> restart it is now asking for friday3 to be mounted! is there anyway to 
> >> make it used friday2?
> >>     
> > ----
> > what is output of
> >
> > list media pool=FridayPool # or whatever you call it
> >
> > Craig
> >
> >   
> 
> +---------+------------+-----------+---------+-----------------+----------+-----
>                                                                               
>                
> ---------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes        | 
> VolFiles | 
> VolR                                                                          
>                    
> etention | Recycle | Slot | InChanger | MediaType | LastWritten         |
> +---------+------------+-----------+---------+-----------------+----------+-----
>                                                                               
>                
> ---------+---------+------+-----------+-----------+---------------------+
> |       5 | friday1    | Purged    |       1 | 203,715,606,528 |      
> 207 
> |                                                                             
>                       
> 432,000 |       1 |    0 |         1 | LTO-3     | 2008-07-26 02:18:39 |
> |       6 | friday2    | Used      |       1 |  29,428,310,016 |       
> 30 
> |                                                                             
>                       
> 432,000 |       1 |    0 |         1 | LTO-3     | 2008-08-08 23:16:19 |
> |       7 | friday3    | Recycle   |       1 |               1 |        
> 0 
> |                                                                             
>                       
> 432,000 |       1 |    0 |         1 | LTO-3     | 2008-07-07 03:02:27 |
> |       8 | friday4    | Purged    |       1 | 107,315,582,976 |      
> 109 
> |                                                                             
>                       
> 432,000 |       1 |    0 |         1 | LTO-3     | 2008-07-14 06:24:29 |
> |       9 | friday5    | Purged    |       1 | 107,307,841,536 |      
> 109 
> |                                                                             
>                       
> 432,000 |       1 |    0 |         1 | LTO-3     | 2008-07-19 03:07:29 |
> +---------+------------+-----------+---------+-----------------+----------+-----
>                                                                               
>                
> ---------+---------+------+-----------+-----------+---------------------+
> 
> Looks like it thinks friday2 was used, and wants friday3... is there any 
> way to make it use friday2? if i purged it or?
> 
> This is the message I am getting:
> 
> 09-Aug 02:49 bacula-sd: Please mount Volume "friday3" on Storage Device 
> "LTO-3" (/dev/nst0) for Job server01.2008-08-08_23.00.01
----
It doesn't want to use friday2 because it is marked 'Used' which means
that it hit the limit of jobs and won't use it again until all other
media is 'Used' and it becomes the oldest and the recycle period is
reached.

If you want to use friday2 again, you can 'update' the volume and
'purge' it but that would delete all of the previous jobs on the tape.

If you want to continue using that volume while keeping the jobs on that
tape, I think you will need to:

- Up the 'Maximum Volume Jobs' number on the pool
- restart the storage daemon
- 'update' the tape for the number of jobs
- 'update' the tape and change the status from 'Used' to 'Append'

Craig



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users