Bacula-users

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

2010-08-04 10:56:55
Subject: Re: [Bacula-users] bacula confused about slots on autochanger
From: Josh Fisher <jfisher AT pvct DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 04 Aug 2010 10:37:21 -0400
On 8/3/2010 9:20 PM, Maria McKinley wrote:
> It seems that part of the problem I have been having with backup is that
> bacula is having communication problems with the autochanger. Bacula
> tells the autochanger to load slot 3, but instead slot 2 is loaded:

On some systems, (BSD?) slot numbers are expected to begin at zero. 
Bacula (and Linux) expect slot numbers to begin at one. When Bacula 
sends a command to the autochanger to load slot 1, it is expecting the 
first slot to be loaded. But on systems that number from zero, when you 
use mtx to load slot 1 it will actually load the second slot. This can 
be worked around by changing your autochanger script to subtract 1 from 
the slot number on a load command and add 1 to slot numbers for the 
loaded and list commands.

> *messages
> 03-Aug 18:14 billie-sd JobId 1728: 3301 Issuing autochanger "loaded?
> drive 0" command.
> 03-Aug 18:14 billie-sd JobId 1728: 3302 Autochanger "loaded? drive 0",
> result: nothing loaded.
> 03-Aug 18:14 billie-sd JobId 1728: 3304 Issuing autochanger "load slot
> 3, drive 0" command.
> *
> 03-Aug 18:15 billie-sd JobId 1728: 3305 Autochanger "load slot 3, drive
> 0", status is OK.
> *
> 03-Aug 18:15 billie-sd JobId 1728: Warning: Director wanted Volume
> "A0000005".
>       Current Volume "B0000005" not acceptable because:
>       1998 Volume "B0000005" status is Full, not in Pool.
> 03-Aug 18:15 billie-sd JobId 1728: Please mount Volume "A0000005" or
> label a new one for:
>       Job:          NightlySave.2010-08-01_01.05.00.32
>       Storage:      "Drive-1" (/dev/nst0)
>       Pool:         Daily
>       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 2 Loaded):VolumeTag =
> B0000005
>         Storage Element 1:Full :VolumeTag=A0000006
>
>         Storage Element 2:Empty:VolumeTag=
>
>         Storage Element 3:Full :VolumeTag=A0000005
>
>         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
>
> Any ideas what is going on or how to fix it?
>
> 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

------------------------------------------------------------------------------
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