Bacula-users

Re: [Bacula-users] Please mount volume...

2010-07-16 13:31:56
Subject: Re: [Bacula-users] Please mount volume...
From: "Jeremiah D. Jester" <jjest AT u.washington DOT edu>
To: Bill Arlofski <waa-bacula AT revpol DOT com>, "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 16 Jul 2010 10:28:15 -0700
Hi Bill,

Thanks for the reply. I issued an 'update slots' command. When I load slot 2, 
it is still says it is loading slot 1 volume. However, when I look at the 
physical auto changer slot 2 is empty leading me to believe that this is a 
bacula inventory problem. 

Other thoughts?

Thanks,
JJ


*status slots
The defined Storage resources are:
     1: File
     2: Tape
Select Storage resource (1-2): 2
Enter autochanger drive[0]:
Connecting to Storage daemon Tape at bacula.microslu.washington.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "ADIC_Scalar_24" has 23 slots.
Connecting to Storage daemon Tape at bacula.microslu.washington.edu:9103 ...
3306 Issuing autochanger "list" command.
 Slot |   Volume Name    |   Status  |     Media Type       |      Pool         
 |
------+------------------+-----------+----------------------+--------------------|
    1 |           000064 |     Error |                 LTO2 |             
Onsite |
    2 |           KL0339 |    Append |                 LTO2 |            
Offsite |
    3 |           KL0423 |     Error |                 LTO2 |            
Offsite |
    4 |           000098 |     Error |                 LTO2 |             
Onsite |
    5 |           KL0313 |      Full |                 LTO2 |             
Onsite |
    6 |           KL0392 |      Full |                 LTO2 |            
Offsite |
    7 |           KL0449 |     Error |                 LTO2 |             
Onsite |
    8*|           KL0444 |         ? |                    ? |                  
? |
    9 |           KL0362 |     Error |                 LTO2 |             
Onsite |
   10 |           KL0324 |     Error |                 LTO2 |             
Onsite |
   11 |           000082 |      Full |                 LTO2 |             
Onsite |
   12 |           KL0445 |      Full |                 LTO2 |             
Onsite |
   13 |           KL0367 |      Full |                 LTO2 |             
Onsite |
   14 |           KL0385 |      Full |                 LTO2 |             
Onsite |
   15*|           000087 |         ? |                    ? |                  
? |
   16 |           000103 |     Error |                 LTO2 |             
Onsite |
   17 |           000089 |    Append |                 LTO2 |            
Offsite |
   18 |           KL0391 |     Error |                 LTO2 |             
Onsite |
   19 |           KL0419 |     Error |                 LTO2 |             
Onsite |
   20 |           KL0325 |    Append |                 LTO2 |            
Offsite |
   21 |           KL0350 |     Error |                 LTO2 |             
Onsite |
   22 |                  |           |                      |                   
 |
   23 |                  |           |                      |                   
 |
*update slots
The defined Storage resources are:
     1: File
     2: Tape
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 0
Connecting to Storage daemon Tape at bacula.microslu.washington.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "ADIC_Scalar_24" has 23 slots.
Connecting to Storage daemon Tape at bacula.microslu.washington.edu:9103 ...
3306 Issuing autochanger "list" command.
Catalog record for Volume "000064" updated to reference slot 1.
Catalog record for Volume "KL0339" updated to reference slot 2.
Catalog record for Volume "KL0423" updated to reference slot 3.
Catalog record for Volume "000098" updated to reference slot 4.
Catalog record for Volume "KL0313" updated to reference slot 5.
Catalog record for Volume "KL0392" updated to reference slot 6.
Catalog record for Volume "KL0449" updated to reference slot 7.
Volume "KL0444" not found in catalog. Slot=8 InChanger set to zero.
Catalog record for Volume "KL0362" updated to reference slot 9.
Catalog record for Volume "KL0324" updated to reference slot 10.
Catalog record for Volume "000082" updated to reference slot 11.
Catalog record for Volume "KL0445" updated to reference slot 12.
Catalog record for Volume "KL0367" updated to reference slot 13.
Catalog record for Volume "KL0385" updated to reference slot 14.
Volume "000087" not found in catalog. Slot=15 InChanger set to zero.
Catalog record for Volume "000103" updated to reference slot 16.
Catalog record for Volume "000089" updated to reference slot 17.
Catalog record for Volume "KL0391" updated to reference slot 18.
Catalog record for Volume "KL0419" updated to reference slot 19.
Catalog record for Volume "KL0325" updated to reference slot 20.
Catalog record for Volume "KL0350" updated to reference slot 21.
*


*mount
The defined Storage resources are:
     1: File
     2: Tape
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 0
Enter autochanger slot: 2
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
3905 Device "Drive1" (/dev/st0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.

*status slots
The defined Storage resources are:
     1: File
     2: Tape
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 0
Connecting to Storage daemon Tape at bacula.microslu.washington.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "ADIC_Scalar_24" has 23 slots.
Connecting to Storage daemon Tape at bacula.microslu.washington.edu:9103 ...
3306 Issuing autochanger "list" command.
 Slot |   Volume Name    |   Status  |     Media Type       |      Pool         
 |
------+------------------+-----------+----------------------+--------------------|
    1 |                  |           |                      |                   
 |
    2 |           KL0339 |    Append |                 LTO2 |            
Offsite |
    3 |           KL0423 |     Error |                 LTO2 |            
Offsite |
    4 |           000098 |     Error |                 LTO2 |             
Onsite |
    5 |           KL0313 |      Full |                 LTO2 |             
Onsite |
    6 |           KL0392 |      Full |                 LTO2 |            
Offsite |
    7 |           KL0449 |     Error |                 LTO2 |             
Onsite |
    8*|           KL0444 |         ? |                    ? |                  
? |
    9 |           KL0362 |     Error |                 LTO2 |             
Onsite |
   10 |           KL0324 |     Error |                 LTO2 |             
Onsite |
   11 |           000082 |      Full |                 LTO2 |             
Onsite |
   12 |           KL0445 |      Full |                 LTO2 |             
Onsite |
   13 |           KL0367 |      Full |                 LTO2 |             
Onsite |
   14 |           KL0385 |      Full |                 LTO2 |             
Onsite |
   15*|           000087 |         ? |                    ? |                  
? |
   16 |           000103 |     Error |                 LTO2 |             
Onsite |
   17 |           000089 |    Append |                 LTO2 |            
Offsite |
   18 |           KL0391 |     Error |                 LTO2 |             
Onsite |
   19 |           KL0419 |     Error |                 LTO2 |             
Onsite |
   20 |           KL0325 |    Append |                 LTO2 |            
Offsite |
   21 |           KL0350 |     Error |                 LTO2 |             
Onsite |
   22 |                  |           |                      |                   
 |
   23 |                  |           |                      |                   
 |

-----Original Message-----
From: Bill Arlofski [mailto:waa-bacula AT revpol DOT com] 
Sent: Wednesday, July 14, 2010 8:07 PM
To: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Please mount volume...

On 07/14/10 18:54, Jeremiah D. Jester wrote:
> I keep on getting this error message despite having additional appendable 
> tapes in my offsite pool.
> 
> 14-Jul 15:34 bacula01-sd JobId 323: Please mount Volume "KL0339" or label a 
> new one for:
>     Job:          baretta-offsite.2010-07-13_01.00.00_17
>     Storage:      "Drive1" (/dev/st0)
>     Pool:         Offsite
>     Media type:   LTO2
> 
> 
> When I issue a 'status slots' and explicitly mount KL0339 volume it loads the 
> wrong tape (slot 1, instead of slot 2). This seems very whacky. Output 
> below...

JJ, try issuing the "update slots" command. This will cause Bacula to request
from the library which tape is currently in which slot and it will then update
the database for the media accordingly.

You have already shown the output of the "status slots" command, when you run
the "update slots" command you can compare.

You might also want to create a job of type "Admin" that just runs the "update
slots" command prior to your nightly backups (same time, higher priority).
This way you don't have to worry about remembering to run that command when
you need to manually remove/rotate tapes on a cycle.

Hope this helps.

--
Bill Arlofski
Reverse Polarity, LLC

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users