Bacula-users

Re: [Bacula-users] bacula confused about slots on autochanger

2010-08-04 15:17:18
Subject: Re: [Bacula-users] bacula confused about slots on autochanger
From: Maria McKinley <maria AT shadlen DOT org>
To: "Laurent HENRY (EHESS/CRI)" <Laurent.Henry AT ehess DOT fr>
Date: Wed, 04 Aug 2010 12:12:43 -0700
Laurent HENRY (EHESS/CRI) wrote:
> Hi, no clever idea for me, just basic thoughts.
> 
> what is the output of an update slots command ?
> 
> what happen when you ask a 'mount' request from slot 3 ?
> 
> 

Through some trickery (loaded the tape into the drive from outside 
bacula, and then mounted in bacula), I was able to get it to use the 
tape in slot 3 for that backup, but I did not get so lucky with the next 
backup. Initially it could not eject the previous tape because of the 
confusion of slots. Then, once I manually loaded the correct tape 
outside of bacula and mounted, it did not recognize that it had the 
correct tape and attempted to eject it:
*messages
04-Aug 08:40 billie-sd JobId 1729: 3307 Issuing autochanger "unload slot 
7, drive 0" command.
04-Aug 08:40 billie-sd JobId 1729: 3995 Bad autochanger "unload slot 7, 
drive 0": ERR=Child exited with code 1
Results=Storage Element 6 is Already Full

04-Aug 08:40 billie-sd JobId 1729: 3301 Issuing autochanger "loaded? 
drive 0" command.
04-Aug 08:40 billie-sd JobId 1729: 3302 Autochanger "loaded? drive 0", 
result is Slot 7.
04-Aug 01:59 billie-sd JobId 1729: Please mount Volume "A0000007" or 
label a new one for:
     Job:          MailBackup.2010-08-01_01.10.00.33
     Storage:      "Drive-1" (/dev/nst0)
     Pool:         Servers
     Media type:   VXA-2
*exit
billie:~# mtx -f /dev/sg2 status
   Storage Changer /dev/sg2:1 Drives, 10 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = 
A0000005
       Storage Element 1:Full :VolumeTag=A0000006 

       Storage Element 2:Full :VolumeTag=B0000005 

       Storage Element 3:Empty:VolumeTag= 

       Storage Element 4:Full :VolumeTag=A0000004 

       Storage Element 5:Full :VolumeTag=B0000004 

       Storage Element 6:Full :VolumeTag=C0000005 

       Storage Element 7:Full :VolumeTag=A0000007 

       Storage Element 8:Full :VolumeTag=C0000006 

       Storage Element 9:Full :VolumeTag=A0000010 

       Storage Element 10:Full :VolumeTag=CLNA0001 

billie:~# mtx -f /dev/sg2 unload 3
Unloading drive 0 into Storage Element 3...done
billie:~# mtx -f /dev/sg2 load 7
Loading media from Storage Element 7 into drive 0...done
billie:~# bconsole
Connecting to Director 127.0.0.1:9101
1000 OK: billie-dir Version: 2.4.4 (28 December 2008)
Enter a period to cancel a command.
*mount
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
      1: Exabyte
      2: File
Select Storage resource (1-2): 1
3001 OK mount. Device="Drive-1" (/dev/nst0)
You have messages.
*messages
04-Aug 08:40 billie-sd JobId 1729: 3301 Issuing autochanger "loaded? 
drive 0" command.
04-Aug 08:40 billie-sd JobId 1729: 3302 Autochanger "loaded? drive 0", 
result is Slot 7.
04-Aug 08:40 billie-sd JobId 1729: 3307 Issuing autochanger "unload slot 
7, drive 0" command.
04-Aug 08:40 billie-sd JobId 1729: 3995 Bad autochanger "unload slot 7, 
drive 0": ERR=Child exited with code 1
Results=Storage Element 6 is Already Full
*update slots
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
      1: Exabyte
      2: File
Select Storage resource (1-2): 1
Connecting to Storage daemon Exabyte at billie:9103 ...
3306 Issuing autochanger "slots" command.
Device "Exabyte" has 10 slots.
Connecting to Storage daemon Exabyte at billie:9103 ...
3306 Issuing autochanger "list" command.
Catalog record for Volume "A0000006" updated to reference slot 1.
Catalog record for Volume "B0000005" updated to reference slot 2.
Catalog record for Volume "A0000005" updated to reference slot 3.
Catalog record for Volume "A0000004" updated to reference slot 4.
Catalog record for Volume "B0000004" updated to reference slot 5.
Volume "C0000005" not found in catalog. Slot=6 InChanger set to zero.
Catalog record for Volume "A0000007" updated to reference slot 7.
Catalog record for Volume "C0000006" updated to reference slot 8.
Catalog record for Volume "A0000010" updated to reference slot 9.
Catalog record for Volume "CLNA0001" updated to reference slot 10.

Ugh.

thanks,
maria

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users