More info in debug mode:
server-dir: ua_label.c:794-0 Sent: readlabel MSL-2024 Slot=2 drive=0
server-dir: ua_label.c:799-0 Got: 3001 Volumen=archivado-02 Ranura=2
server-dir: ua_label.c:810-0 get_vol_name=*Ninguno*
server-dir: ua_label.c:243-0 Got Vol=<NULL> from SD for Slot=2
server-dir: sql_update.c:501-0 UPDATE Media SET InChanger=0, Slot=0 WHERE
Slot=2 AND StorageId=3
server-dir: ua_label.c:255-0 No VolName for Slot=2 setting InChanger to
zero.
o_0'
On Wed, Dec 28, 2011 at 9:45 AM, ninyo <ninyod...@gmail.com> wrote:
> Hello
>
> this is the output from bacula when i run updateslots with the drive
> empty:
>
> *shell command: ejecutar BeforeJob "/etc/bacula/updateslots.sh"*
> *BeforeJob: Conectando al Director x*
> *BeforeJob: 1000 OK: server-dir Versión: 5.2.3(16 December 2011)*
> *BeforeJob: Introduzca un perÃodo para cancelar un comando.*
> *BeforeJob: update slots=1-24 storage=cinta scan*
> *BeforeJob: Seleccionado automáticamente Catalogo: MyCatalog*
> *BeforeJob: Usando Catalogo "MyCatalog"*
> *BeforeJob: Conectando al demonio Storage cinta en x ...*
> *BeforeJob: Conectando al demonio Storage cinta en x ...*
> *BeforeJob: 3306 Emitiendo comando "slots" al auto-cambiador.*
> *BeforeJob: Dispositivo "MSL-2024" tiene 24 ranuras.*
> *BeforeJob: Conectando al demonio Storage cinta en x.*
> *BeforeJob: 3306 Emitiendo comando "list" al auto-cambiador.*
> *BeforeJob: Conectando al demonio Storage cinta en x ...*
> *BeforeJob: 3301 Emitiendo comando auto-cambiador "¿cargado? unidad 0".*
> *BeforeJob: 3302 Auto-cambiador "¿cargado? unidad 0", resultado: nada
> cargado.*
> *BeforeJob: 3304 Emitiendo comando auto-cambiador "cargar ranura 1,
> unidad 0".*
> *BeforeJob: 3305 Auto-cambiador "carga ranura 1, unidad 0", estado es OK.*
> *BeforeJob: 3001 Volumen=incremental-03 Ranura=1*
> *BeforeJob: Ninguno VolName para Ranura=1 InChanger establecido en cero.*
>
> This is the script used:
>
> *#!/bin/sh*
> *echo 'update slots=1-24 storage=cinta scan' | /sbin/bconsole -c
> /etc/bacula/bconsole.conf*
> *
> *
> Rgds
>
>
> o_0'
>
>
> On Tue, Dec 27, 2011 at 8:42 PM, ninyo <ninyod...@gmail.com> wrote:
>
>> Hello,
>>
>> Drive unloaded before update slots. No changes. Tomorrow will post the
>> logs.
>>
>> o_0'
>>
>>
>> On Tue, Dec 27, 2011 at 6:20 PM, Simone Caronni <negativ...@gmail.com>wrote:
>>
>>> Hello,
>>>
>>> before issuing "update slots" you should do "mtx unload 0 1" on the
>>> console to park the tape in the first slot. According to your output the
>>> drive is loaded from a tape that was before in one of your empty slots.
>>>
>>> --Simone
>>> On Dec 27, 2011 6:12 PM, "ninyo" <ninyod...@gmail.com> wrote:
>>>
>>>> Hi simone
>>>>
>>>> */etc/bacula# mtx status*
>>>> * Storage Changer /dev/changer:1 Drives, 24 Slots ( 1 Import/Export )*
>>>> *Data Transfer Element 0:Full (Storage Element 1 Loaded)*
>>>> * Storage Element 1:Empty*
>>>> * Storage Element 2:Full*
>>>> * Storage Element 3:Full*
>>>> * Storage Element 4:Full*
>>>> * Storage Element 5:Full*
>>>> * Storage Element 6:Full*
>>>> * Storage Element 7:Full*
>>>> * Storage Element 8:Full*
>>>> * Storage Element 9:Full*
>>>> * Storage Element 10:Full*
>>>> * Storage Element 11:Full*
>>>> * Storage Element 12:Full*
>>>> * Storage Element 13:Full*
>>>> * Storage Element 14:Full*
>>>> * Storage Element 15:Full*
>>>> * Storage Element 16:Full*
>>>> * Storage Element 17:Empty*
>>>> * Storage Element 18:Full*
>>>> * Storage Element 19:Full*
>>>> * Storage Element 20:Empty*
>>>> * Storage Element 21:Full*
>>>> * Storage Element 22:Full*
>>>> * Storage Element 23:Full*
>>>> * Storage Element 24 IMPORT/EXPORT:Full*
>>>>
>>>> Once executed, i run again:
>>>>
>>>> *"update slots=1-24 storage=cinta scan"*
>>>> *
>>>> *
>>>> Same results. Im using MySQL.
>>>>
>>>> Rgds
>>>>
>>>> o_0'
>>>>
>>>>
>>>> On Tue, Dec 27, 2011 at 6:07 PM, Simone Caronni
>>>> <negativ...@gmail.com>wrote:
>>>>
>>>>> It happened to me quite a few time because of a power problem in one
>>>>> datacenter which was cutting power to our tape library.
>>>>> I just updated the slot status with the mtx command outside of
>>>>> bconsole to make sure that the status matches what bacula thinks.
>>>>>
>>>>> I think unloading the tape in the slot with "mtx unload <sourceslot>
>>>>> <destslot>" and update again through bconsole should solve the
>>>>> problem.
>>>>>
>>>>> Regards,
>>>>> --Simone
>>>>>
>>>>> 2011/12/27 ninyo <ninyod...@gmail.com>:
>>>>> > Hello
>>>>> >
>>>>> > recently migrated from bacula 5.0.3 (from apt) to 5.2.3 (from
>>>>> sources) on
>>>>> > different hosts. Export the database, import and upgrade from
>>>>> script. All
>>>>> > goes fine, but when i try to update slots from console, i get this
>>>>> for all
>>>>> > the slots:
>>>>> >
>>>>> > 3305 Auto-cambiador "carga ranura 23, unidad 0", estado es OK.
>>>>> > 3001 Volumen=Incremental-03 Ranura=23
>>>>> > Ninguno VolName para Ranura=23 InChanger establecido en cero.
>>>>> >
>>>>> > in english :p
>>>>> >
>>>>> > No VolName for Slot=23 InChanger set to zero
>>>>> >
>>>>> > slot in list volumes are not upgraded. Bacula can read the label
>>>>> from the
>>>>> > tape, but the flag "slot" is not updated.
>>>>> >
>>>>> > I can read the label from btape:
>>>>> >
>>>>> > /etc/bacula# btape -c bacula-sd.conf /dev/nst0
>>>>> > Granularidad del bloque de cinta es 1024 bytes.
>>>>> > btape: butil.c:290 Utilizando el dispositivo: «/dev/nst0» para
>>>>> escritura.
>>>>> > 27-dic 17:44 btape JobId 0: 3301 Emitiendo comando auto-cambiador
>>>>> > "¿cargado? unidad 0".
>>>>> > 27-dic 17:44 btape JobId 0: 3302 Auto-cambiador "¿cargado? unidad
>>>>> 0", el
>>>>> > resultado es Ranura 1.
>>>>> > btape: btape.c:477 abrir dispositivo "drive" (/dev/nst0): OK
>>>>> > *readlabel
>>>>> > btape: btape.c:529 Etiqueta de volumen leida correctamente.
>>>>> >
>>>>> > Volumen Label:
>>>>> > Id : Bacula 1.0 immortal
>>>>> > VerNo : 11
>>>>> > VolName : incremental-03
>>>>> > PrevVolName :
>>>>> > VolFile : 0
>>>>> > LabelType : VOL_LABEL
>>>>> > LabelSize : 173
>>>>> > PoolName : Incremental
>>>>> > MediaType : LTO2
>>>>> > PoolType : Backup
>>>>> > HostName : HOSTNAME
>>>>> > Fecha de etiqueta escrito: 08-nov-2011 17:23
>>>>> >
>>>>> > The label name and pool name are OK.The volume is on the list
>>>>> volumes on
>>>>> > bconsole. Any ideas?
>>>>> >
>>>>> > Rgds.
>>>>> >
>>>>> >
>>>>> > o_0'
>>>>> >
>>>>> >
>>>>> ------------------------------------------------------------------------------
>>>>> > Write once. Port to many.
>>>>> > Get the SDK and tools to simplify cross-platform app development.
>>>>> Create
>>>>> > new or port existing apps to sell to consumers worldwide. Explore the
>>>>> > Intel AppUpSM program developer opportunity.
>>>>> appdeveloper.intel.com/join
>>>>> > http://p.sf.net/sfu/intel-appdev
>>>>> > _______________________________________________
>>>>> > Bacula-users mailing list
>>>>> > Bacula-users@lists.sourceforge.net
>>>>> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You cannot discover new oceans unless you have the courage to lose
>>>>> sight of the shore (R. W. Emerson).
>>>>>
>>>>
>>>>
>>
>
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users