Re: [Bacula-users] Can not update slots
Placing your reply AFTER the question enables reading of the thread without scrolling up and down and up and down… Thanks Dan, i will keep that in mind. Sorry for the inconvenience. :) Given that your tapes do not have barcodes, this output is expected. There is no way for Bacula to know the labels without barcodes. That said, I do recall some mechanism for manually creating a file which contains the labels… do not recall where I saw that reference.. This is my updateslots.sh script: *echo 'update slots=1-24 storage=cinta scan' | /sbin/bconsole -c /etc/bacula/bconsole.conf* This script works without problems in previous versión. Anyway, for reasons unknown (i suspect machine reboot) now it works. Updteslots job is placed to work on friday and when i see it was working and updating the slots i cant belive it. Im repeating the tests now, launching again the script and trying to understand why is working now. Im totally confused -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
Yes. It works correctly on the old server with 5.0.2 version. o_0' On Thu, Dec 29, 2011 at 11:25 PM, Dan Langille d...@langille.org wrote: On Dec 29, 2011, at 2:48 PM, John Drescher wrote: On Thu, Dec 29, 2011 at 2:42 PM, ninyo ninyod...@gmail.com wrote: Hello Fresh Bacula 5.0.2 install from apt = same error Fresh Bacula 5.2.3 compiled from sources, with default conf files = same error Maybe i have to start thinking on library error? Anyone have an idea about how to test this? It is recommended that you use bar code labels on your autochanger if you have a changer with a barcode reader. I have seen reports of users working without barcodes in the past however I can not help with that. I have no experience with that type of setup. I am using a tape library with FreeBSD and Bacula 5.0.3 Getting the library working can be tricky with respect to permissions. If I recall correctly, if you do not have a barcode reader, you must supply the list of volume names in a file, which is then used instead of the barcode reader. The details do not come to mind immediately. Has this ever worked for you before? I'll wait your answers before proceeding. -- Dan Langille - http://langille.org -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
I look at the msl 2024 admin web and looks like it has barcode. No reason for not using it. I will try to obtain a barcode sticker to make some tests. o_0' On Thu, Dec 29, 2011 at 11:21 PM, Dan Langille d...@langille.org wrote: On Dec 29, 2011, at 7:55 AM, ninyo wrote: No. Im not working with barcodes o_0' Is this because there is no barcode reader or because you don't want to use the one that is there? On Thu, Dec 29, 2011 at 1:54 PM, John Drescher dresche...@gmail.comwrote: Wait a minute. incremental-03 does not seem possible as a barcode label since there are way too many characters. You do not have a barcode reader on your autochanger? John -- Dan Langille - http://langille.org -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
Mtx status output again :) root@WILLY-FOG:/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:Full Storage Element 21:Full Storage Element 22:Full Storage Element 23:Full Storage Element 24 IMPORT/EXPORT:Empty o_0' 2011/12/30 Dietz Pröpper di...@rotfl.franken.de Dan Langille: On Dec 29, 2011, at 7:55 AM, ninyo wrote: No. Im not working with barcodes o_0' Is this because there is no barcode reader or because you don't want to use the one that is there? He mailed the output of mtx status way up the thread, and it seems to me, that he does not use barcodes. Is mtx-changer supposed to work w/o barcodes anyway? regards, Dietz -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
mtx.log output: 20111229-20:14:56 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:14:56 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:17:17 Parms: /dev/sg4 loaded 1 /dev/nst0 0 20111229-20:17:17 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:17:17 Parms: /dev/sg4 unload 20 /dev/nst0 0 20111229-20:17:17 Doing mtx -f /dev/sg4 unload 20 0 20111229-20:18:04 Parms: /dev/sg4 load 1 /dev/nst0 0 20111229-20:18:04 Doing mtx -f /dev/sg4 load 1 0 20111229-20:19:52 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:19:52 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:23:56 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:23:56 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:24:49 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:24:49 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:29:48 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:29:48 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:32:17 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:32:17 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:32:17 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:32:17 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:32:29 Parms: /dev/sg4 loaded 1 /dev/nst0 0 20111229-20:32:29 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:32:30 Parms: /dev/sg4 load 1 /dev/nst0 0 20111229-20:32:30 Doing mtx -f /dev/sg4 load 1 0 20111229-20:33:53 Parms: /dev/sg4 unload 1 /dev/nst0 0 20111229-20:33:53 Doing mtx -f /dev/sg4 unload 1 0 20111229-20:35:27 Parms: /dev/sg4 slots 0 /dev/nst0 0 20111229-20:35:27 Doing mtx -f /dev/sg4 -- to get count of slots 20111229-20:35:28 Parms: /dev/sg4 list 0 /dev/nst0 0 20111229-20:35:28 Doing mtx -f /dev/sg4 -- to list volumes 20111229-20:35:28 Parms: /dev/sg4 loaded 1 /dev/nst0 0 20111229-20:35:28 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:35:28 Parms: /dev/sg4 load 1 /dev/nst0 0 20111229-20:35:28 Doing mtx -f /dev/sg4 load 1 0 20111229-20:55:00 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-20:55:00 Doing mtx -f /dev/sg4 0 -- to find what is loaded 20111229-20:55:34 Parms: /dev/sg4 slots 0 /dev/nst0 0 20111229-20:55:34 Doing mtx -f /dev/sg4 -- to get count of slots 20111229-20:55:34 Parms: /dev/sg4 list 0 /dev/nst0 0 20111229-20:55:34 Doing mtx -f /dev/sg4 -- to list volumes 20111229-21:05:53 Parms: /dev/sg4 loaded 0 /dev/nst0 0 20111229-21:05:53 Doing mtx -f /dev/sg4 0 -- to find what is loaded o_0' On Fri, Dec 30, 2011 at 9:14 AM, ninyo ninyod...@gmail.com wrote: Mtx status output again :) root@WILLY-FOG:/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:Full Storage Element 21:Full Storage Element 22:Full Storage Element 23:Full Storage Element 24 IMPORT/EXPORT:Empty o_0' 2011/12/30 Dietz Pröpper di...@rotfl.franken.de Dan Langille: On Dec 29, 2011, at 7:55 AM, ninyo wrote: No. Im not working with barcodes o_0' Is this because there is no barcode reader or because you don't want to use the one that is there? He mailed the output of mtx status way up the thread, and it seems to me, that he does not use barcodes. Is mtx-changer supposed to work w/o barcodes anyway? regards, Dietz -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix
Re: [Bacula-users] Can not update slots
Some news new clean database for bacula. Label one tape and add to a pool: **label* *Seleccionado automáticamente Catalogo: MyCatalog* *Usando Catalogo MyCatalog* *Los recursos Storage definidos son:* * 1: disco* * 2: cinta* *Seleccione recurso Storage (1-2): 2* *Conectando al demonio Storage cinta en ip:9103 ...* *Introduzca el nuevo nombre de Volumen: incremental_PRUEBAS_01* *Introduzca ranura (0 o Enter para ninguno):* *Pools definidos:* * 1: Incremental-disco* * 2: Incremental* * 3: Semanal* * 4: Mensual* * 5: Archivado* * 6: Default* *Seleccione el Pool (1-6): 2* *Conectando al demonio Storage cinta en ip:9103 ...* *Enviando comando relabel para Volumen incremental_PRUEBAS_01 Ranura 0 ... * *No slot defined in catalog (slot=0) for Volume on drive (/dev/nst0).* *Cartridge change or update slots may be required.* *3000 OK label. VolBytes=64512 DVD=0 Volume=incremental_PRUEBAS_01 Device=drive (/dev/nst0)* *Registro Catalogo para Volumen incremental_PRUEBAS_01, Ranura 0 creado correctamente.* *Solicitando para montar MSL-2024 ...* *3001 Device drive (/dev/nst0) is mounted with Volume incremental_PRUEBAS_01* List volumes **list volumes* *Pool: Incremental-disco* *No hay resultados para listar.* *Pool: Incremental* *+-++---+-+--+--+--+-+--+---+- --+-+* *| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |* *+-++---+-+--+--+--+-+--+---+- --+-+* *| 1 | incremental_PRUEBAS_01 | Append| 1 | 64,512 | 0 | 518,400 | 1 |0 | 0 | LTO2 | -00-00 00:00:00 |* *+-++---+-+--+--+--+-+--+---+- --+-+* *root@WILLY-FOG:/etc/bacula# echo 'update slots=20 storage=cinta scan' | /sbin/bconsole -c /etc/bacula/bconsole.conf* *Conectando al Director 172.16.9.20:9101* *1000 OK: WILLY-FOG-dir Versión: 5.2.3(16 December 2011)* *Introduzca un perÃodo para cancelar un comando.* *update slots=20 storage=cinta scan* *Seleccionado automáticamente Catalogo: MyCatalog* *Usando Catalogo MyCatalog* *Conectando al demonio Storage cinta en 172.16.9.20:9103 ...* *3306 Emitiendo comando slots al auto-cambiador.* *Dispositivo MSL-2024 tiene 24 ranuras.* *Conectando al demonio Storage cinta en 172.16.9.20:9103 ...* *3306 Emitiendo comando list al auto-cambiador.* *Conectando al demonio Storage cinta en 172.16.9.20:9103 ...* *3301 Emitiendo comando auto-cambiador ¿cargado? unidad 0.* *3302 Auto-cambiador ¿cargado? unidad 0, resultado: nada cargado.* *3304 Emitiendo comando auto-cambiador cargar ranura 20, unidad 0.* *3305 Auto-cambiador carga ranura 20, unidad 0, estado es OK.* *3001 Volumen=incremental_PRUEBAS_01 Ranura=20* *Ninguno VolName para Ranura=20 InChanger establecido en cero.* I suspected about BD fail, but now im working with a clean database. Im totally lost o_0' On Thu, Dec 29, 2011 at 2:17 PM, ninyo ninyod...@gmail.com wrote: ... is this a problem? I was working without problems on bacula 5.0 o_0' On Thu, Dec 29, 2011 at 1:55 PM, ninyo ninyod...@gmail.com wrote: No. Im not working with barcodes o_0' On Thu, Dec 29, 2011 at 1:54 PM, John Drescher dresche...@gmail.comwrote: Wait a minute. incremental-03 does not seem possible as a barcode label since there are way too many characters. You do not have a barcode reader on your autochanger? John -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
Hello Fresh Bacula 5.0.2 install from apt = same error Fresh Bacula 5.2.3 compiled from sources, with default conf files = same error Maybe i have to start thinking on library error? Anyone have an idea about how to test this? Thx o_0' On Thu, Dec 29, 2011 at 5:17 PM, ninyo ninyod...@gmail.com wrote: Some news new clean database for bacula. Label one tape and add to a pool: **label* *Seleccionado automáticamente Catalogo: MyCatalog* *Usando Catalogo MyCatalog* *Los recursos Storage definidos son:* * 1: disco* * 2: cinta* *Seleccione recurso Storage (1-2): 2* *Conectando al demonio Storage cinta en ip:9103 ...* *Introduzca el nuevo nombre de Volumen: incremental_PRUEBAS_01* *Introduzca ranura (0 o Enter para ninguno):* *Pools definidos:* * 1: Incremental-disco* * 2: Incremental* * 3: Semanal* * 4: Mensual* * 5: Archivado* * 6: Default* *Seleccione el Pool (1-6): 2* *Conectando al demonio Storage cinta en ip:9103 ...* *Enviando comando relabel para Volumen incremental_PRUEBAS_01 Ranura 0 ...* *No slot defined in catalog (slot=0) for Volume on drive (/dev/nst0). * *Cartridge change or update slots may be required.* *3000 OK label. VolBytes=64512 DVD=0 Volume=incremental_PRUEBAS_01 Device=drive (/dev/nst0)* *Registro Catalogo para Volumen incremental_PRUEBAS_01, Ranura 0 creado correctamente.* *Solicitando para montar MSL-2024 ...* *3001 Device drive (/dev/nst0) is mounted with Volume incremental_PRUEBAS_01* List volumes **list volumes* *Pool: Incremental-disco* *No hay resultados para listar.* *Pool: Incremental* *+-++---+-+--+--+--+-+--+---+- --+-+* *| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |* *+-++---+-+--+--+--+-+--+---+- --+-+* *| 1 | incremental_PRUEBAS_01 | Append| 1 | 64,512 | 0 | 518,400 | 1 |0 | 0 | LTO2 | -00-00 00:00:00 |* *+-++---+-+--+--+--+-+--+---+- --+-+* *root@WILLY-FOG:/etc/bacula# echo 'update slots=20 storage=cinta scan' | /sbin/bconsole -c /etc/bacula/bconsole.conf* *Conectando al Director 172.16.9.20:9101* *1000 OK: WILLY-FOG-dir Versión: 5.2.3(16 December 2011)* *Introduzca un perÃodo para cancelar un comando.* *update slots=20 storage=cinta scan* *Seleccionado automáticamente Catalogo: MyCatalog* *Usando Catalogo MyCatalog* *Conectando al demonio Storage cinta en 172.16.9.20:9103 ...* *3306 Emitiendo comando slots al auto-cambiador.* *Dispositivo MSL-2024 tiene 24 ranuras.* *Conectando al demonio Storage cinta en 172.16.9.20:9103 ...* *3306 Emitiendo comando list al auto-cambiador.* *Conectando al demonio Storage cinta en 172.16.9.20:9103 ...* *3301 Emitiendo comando auto-cambiador ¿cargado? unidad 0.* *3302 Auto-cambiador ¿cargado? unidad 0, resultado: nada cargado.* *3304 Emitiendo comando auto-cambiador cargar ranura 20, unidad 0.* *3305 Auto-cambiador carga ranura 20, unidad 0, estado es OK.* *3001 Volumen=incremental_PRUEBAS_01 Ranura=20* *Ninguno VolName para Ranura=20 InChanger establecido en cero.* I suspected about BD fail, but now im working with a clean database. Im totally lost o_0' On Thu, Dec 29, 2011 at 2:17 PM, ninyo ninyod...@gmail.com wrote: ... is this a problem? I was working without problems on bacula 5.0 o_0' On Thu, Dec 29, 2011 at 1:55 PM, ninyo ninyod...@gmail.com wrote: No. Im not working with barcodes o_0' On Thu, Dec 29, 2011 at 1:54 PM, John Drescher dresche...@gmail.comwrote: Wait a minute. incremental-03 does not seem possible as a barcode label since there are way too many characters. You do not have a barcode reader on your autochanger? John -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
No one has any idea? Not pretending a solution but a ideas to make test or see where it can be failing. Rgds. o_0' On Wed, Dec 28, 2011 at 4:29 PM, ninyo ninyod...@gmail.com wrote: Here he go: bacula-sd.conf: * * *Storage { # definition of myself* * Name = SERVER-sd* * SDPort = 9103 # Director's port* * WorkingDirectory = /var/bacula/working* *# WorkingDirectory = /var/lib/bacula* * Pid Directory = /var/run* * Maximum Concurrent Jobs = 20* * SDAddress = IP* *}* * * *Director {* * Name = SERVER-dir* * Password = PASSWORD* *}* * * *#* *# Restricted Director, used by tray-monitor to get the* *# status of the storage daemon* *#* *Director {* * Name = SERVER-mon* * Password = PASSWORD* * Monitor = yes* *}* * * *Device {* * Name = disco* * Media Type = File* * Archive Device = /mnt/Disco2/Backups/Bacula/Backups* * LabelMedia = yes; # lets Bacula label unlabeled media * * Random Access = Yes;* * AutomaticMount = yes; # when device opened, read it* * RemovableMedia = no;* * AlwaysOpen = yes;;* *}* * * * * *Autochanger {* * Name = MSL-2024* * Device = drive* *## Changer Command = /usr/local/sbin/mtx %c %o %S %a %d* * Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d* * Changer Device = /dev/sg4 ### /dev/changer - /dev/sg3* *}* * * *Device {* * Name = drive #* * Drive Index = 0* * Media Type = LTO2* * Archive Device = /dev/nst0 ### /dev/tape - /dev/st0* * Device Type = Tape* * AutomaticMount = yes; # when device opened, read it* * AlwaysOpen = yes;* * RemovableMedia = yes;* * RandomAccess = no;* * AutoChanger = yes* * Changer Device = /dev/sg4* * Offline On Unmount = no* * Hardware End of Medium = yes* * Fast Forward Space File = yes* * TWO EOF = yes* * * * #BSF at EOM = yes* * #Backward Space Record = no* * #Fast Forward Space File = no* * #TWO EOF = yes* *}* * * *Messages {* * Name = Standard* * director = SERVER-dir = all* *}* * * *o_0' * On Wed, Dec 28, 2011 at 4:24 PM, John Drescher dresche...@gmail.comwrote: On Wed, Dec 28, 2011 at 10:17 AM, ninyo ninyod...@gmail.com wrote: Gotcha *query Seleccionado automáticamente Catalogo: MyCatalog Usando Catalogo MyCatalog Consultas disponibles: 1: List up to 20 places where a File is saved regardless of the directory 2: List where the most recent copies of a file are saved 3: List last 20 Full Backups for a Client 4: List all backups for a Client after a specified time 5: List all backups for a Client 6: List Volume Attributes for a selected Volume 7: List Volumes used by selected JobId 8: List Volumes to Restore All Files 9: List Pool Attributes for a selected Pool 10: List total files/bytes by Job 11: List total files/bytes by Volume 12: List Files for a selected JobId 13: List Jobs stored on a selected MediaId 14: List Jobs stored for a given Volume name 15: List Volumes Bacula thinks are in changer 16: List Volumes likely to need replacement from age or errors 17: List Volumes Bacula thinks are eligible for the changer 18: List Volumes by Volume: 19: List Volumes by Jobs: 20: List Volumes for a jobname: Elija una consulta (1-20): 15 No hay resultados para listar. (NO RESULTS) * That is unusual. I do not have an explanation for that. Can you post your bacula-sd.conf Also, I have to go for now. I will try to help in 12 hours or so if I am not too tired. BTW, your english is much better than my spanish although I understood most of the spanish output.. John -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
No. Im not working with barcodes o_0' On Thu, Dec 29, 2011 at 1:54 PM, John Drescher dresche...@gmail.com wrote: Wait a minute. incremental-03 does not seem possible as a barcode label since there are way too many characters. You do not have a barcode reader on your autochanger? John -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
... is this a problem? I was working without problems on bacula 5.0 o_0' On Thu, Dec 29, 2011 at 1:55 PM, ninyo ninyod...@gmail.com wrote: No. Im not working with barcodes o_0' On Thu, Dec 29, 2011 at 1:54 PM, John Drescher dresche...@gmail.comwrote: Wait a minute. incremental-03 does not seem possible as a barcode label since there are way too many characters. You do not have a barcode reader on your autochanger? John -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can not update slots
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.comwrote: 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.comwrote: 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
Re: [Bacula-users] Can not update slots
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.comwrote: 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.comwrote: 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
Re: [Bacula-users] Can not update slots
That is correct! (maybe my poor english do not help) Where i can get the querys? How can i install them? o_0' On Wed, Dec 28, 2011 at 3:57 PM, John Drescher dresche...@gmail.com wrote: 2011/12/28 ninyo ninyod...@gmail.com: 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. Are you trying to say that there are loaded tapes that bacula is not correctly setting the inchanger flag? if you had the queries installed I would like to see the result of query 15 in bconsole however this may not work anymore since it may not be installed as default. John -- 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
Re: [Bacula-users] Can not update slots
Gotcha **query* *Seleccionado automáticamente Catalogo: MyCatalog* *Usando Catalogo MyCatalog* *Consultas disponibles:* * 1: List up to 20 places where a File is saved regardless of the directory* * 2: List where the most recent copies of a file are saved* * 3: List last 20 Full Backups for a Client* * 4: List all backups for a Client after a specified time* * 5: List all backups for a Client* * 6: List Volume Attributes for a selected Volume* * 7: List Volumes used by selected JobId* * 8: List Volumes to Restore All Files* * 9: List Pool Attributes for a selected Pool* *10: List total files/bytes by Job* *11: List total files/bytes by Volume* *12: List Files for a selected JobId* *13: List Jobs stored on a selected MediaId* *14: List Jobs stored for a given Volume name* *15: List Volumes Bacula thinks are in changer* *16: List Volumes likely to need replacement from age or errors* *17: List Volumes Bacula thinks are eligible for the changer* *18: List Volumes by Volume:* *19: List Volumes by Jobs:* *20: List Volumes for a jobname:* *Elija una consulta (1-20): 15* *No hay resultados para listar. (NO RESULTS)* *** o_0' On Wed, Dec 28, 2011 at 4:03 PM, ninyo ninyod...@gmail.com wrote: That is correct! (maybe my poor english do not help) Where i can get the querys? How can i install them? o_0' On Wed, Dec 28, 2011 at 3:57 PM, John Drescher dresche...@gmail.comwrote: 2011/12/28 ninyo ninyod...@gmail.com: 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. Are you trying to say that there are loaded tapes that bacula is not correctly setting the inchanger flag? if you had the queries installed I would like to see the result of query 15 in bconsole however this may not work anymore since it may not be installed as default. John -- 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
Re: [Bacula-users] Can not update slots
Here he go: bacula-sd.conf: * * *Storage { # definition of myself* * Name = SERVER-sd* * SDPort = 9103 # Director's port* * WorkingDirectory = /var/bacula/working* *# WorkingDirectory = /var/lib/bacula* * Pid Directory = /var/run* * Maximum Concurrent Jobs = 20* * SDAddress = IP* *}* * * *Director {* * Name = SERVER-dir* * Password = PASSWORD* *}* * * *#* *# Restricted Director, used by tray-monitor to get the* *# status of the storage daemon* *#* *Director {* * Name = SERVER-mon* * Password = PASSWORD* * Monitor = yes* *}* * * *Device {* * Name = disco* * Media Type = File* * Archive Device = /mnt/Disco2/Backups/Bacula/Backups* * LabelMedia = yes; # lets Bacula label unlabeled media* * Random Access = Yes;* * AutomaticMount = yes; # when device opened, read it* * RemovableMedia = no;* * AlwaysOpen = yes;;* *}* * * * * *Autochanger {* * Name = MSL-2024* * Device = drive* *## Changer Command = /usr/local/sbin/mtx %c %o %S %a %d* * Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d* * Changer Device = /dev/sg4 ### /dev/changer - /dev/sg3* *}* * * *Device {* * Name = drive #* * Drive Index = 0* * Media Type = LTO2* * Archive Device = /dev/nst0 ### /dev/tape - /dev/st0* * Device Type = Tape* * AutomaticMount = yes; # when device opened, read it* * AlwaysOpen = yes;* * RemovableMedia = yes;* * RandomAccess = no;* * AutoChanger = yes* * Changer Device = /dev/sg4* * Offline On Unmount = no* * Hardware End of Medium = yes* * Fast Forward Space File = yes* * TWO EOF = yes* * * * #BSF at EOM = yes* * #Backward Space Record = no* * #Fast Forward Space File = no* * #TWO EOF = yes* *}* * * *Messages {* * Name = Standard* * director = SERVER-dir = all* *}* * * *o_0' * On Wed, Dec 28, 2011 at 4:24 PM, John Drescher dresche...@gmail.com wrote: On Wed, Dec 28, 2011 at 10:17 AM, ninyo ninyod...@gmail.com wrote: Gotcha *query Seleccionado automáticamente Catalogo: MyCatalog Usando Catalogo MyCatalog Consultas disponibles: 1: List up to 20 places where a File is saved regardless of the directory 2: List where the most recent copies of a file are saved 3: List last 20 Full Backups for a Client 4: List all backups for a Client after a specified time 5: List all backups for a Client 6: List Volume Attributes for a selected Volume 7: List Volumes used by selected JobId 8: List Volumes to Restore All Files 9: List Pool Attributes for a selected Pool 10: List total files/bytes by Job 11: List total files/bytes by Volume 12: List Files for a selected JobId 13: List Jobs stored on a selected MediaId 14: List Jobs stored for a given Volume name 15: List Volumes Bacula thinks are in changer 16: List Volumes likely to need replacement from age or errors 17: List Volumes Bacula thinks are eligible for the changer 18: List Volumes by Volume: 19: List Volumes by Jobs: 20: List Volumes for a jobname: Elija una consulta (1-20): 15 No hay resultados para listar. (NO RESULTS) * That is unusual. I do not have an explanation for that. Can you post your bacula-sd.conf Also, I have to go for now. I will try to help in 12 hours or so if I am not too tired. BTW, your english is much better than my spanish although I understood most of the spanish output.. John -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Can not update slots
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
Re: [Bacula-users] Can not update slots
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.comwrote: 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
Re: [Bacula-users] Can not update slots
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.comwrote: 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.comwrote: 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
[Bacula-users] multiple jobs simultaneous pools
HI im trying to configure multiple jobs for different pools on a two drives tape library. I can read on thishttp://old.nabble.com/Bacula-Maximum-Concurrent-Jobs-td30299016.html#a30299182 thread: *Also you have to understand that only 1 pool can be loaded at a time for a storage device so if you want multiple jobs to run to multiple pools concurrently you need multiple storage devices. * I have one storage device configured for my tape library on bacula-sd, but i have two drives on the library. I assume that this is possible. Am i wrong? It is possible to configure the drives separately in bacula-sd to have two storage devices and then i can run multiple jobs on multiple pools? Thx Rgds. o_0' -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] multiple jobs simultaneous pools
Maybe, but i dont know how can it help me, because i already have a tape autoloader. This is my config for storage: *bacula-sd.conf* *##* *Autochanger {* * Name = Autochanger* * Device = Drive-1* * Device = Drive-2* * Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d* * Changer Device = /dev/changer* *}* *Device {* * Name = Drive-1 #* * Drive Index = 0* * Media Type = LTO-3* * Archive Device = /dev/nst0* * AutomaticMount = yes; # when device opened, read it* * AlwaysOpen = yes;* * RemovableMedia = yes;* * RandomAccess = no;* * AutoChanger = yes* * Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'* * #If you have smartctl, enable this, it has more info than tapeinfo* * Alert Command = sh -c 'smartctl -H -l error %c'* * Maximum Concurrent Jobs = 1* *}* * * *Device {* * Name = Drive-2 #* * Drive Index = 1* * Media Type = LTO-3* * Archive Device = /dev/nst1* * AutomaticMount = yes; # when device opened, read it* * AlwaysOpen = yes;* * RemovableMedia = yes;* * RandomAccess = no;* * AutoChanger = yes* * # Enable the Alert command only if you have the mtx package loaded* * Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'* * #If you have smartctl, enable this, it has more info than tapeinfo* * Alert Command = sh -c 'smartctl -H -l error %c'* * Maximum Concurrent Jobs = 1* *}* *storage.conf* ### *Storage {* * Name = Cinta* * Address = * * SDPort = 9103* * Password = xxx* * Device = Autochanger* * Media Type = LTO-3* * Autochanger = yes* * Maximum Concurrent Jobs = 2* *}* o_0' 2011/7/18 J. Echter j.ech...@elektro-mayer-echter.de ** Am 18.07.2011 11:50, schrieb ninyo: HI im trying to configure multiple jobs for different pools on a two drives tape library. I can read on thishttp://old.nabble.com/Bacula-Maximum-Concurrent-Jobs-td30299016.html#a30299182 thread: *Also you have to understand that only 1 pool can be loaded at a time for a storage device so if you want multiple jobs to run to multiple pools concurrently you need multiple storage devices. * I have one storage device configured for my tape library on bacula-sd, but i have two drives on the library. I assume that this is possible. Am i wrong? It is possible to configure the drives separately in bacula-sd to have two storage devices and then i can run multiple jobs on multiple pools? Thx Rgds. o_0' -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy.http://p.sf.net/sfu/appsumosfdev2dev ___ Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users maybe vchanger is what your looking for. http://sourceforge.net/projects/vchanger/ -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] multiple jobs simultaneous pools
Hi John i think that all the *Maximum Concurrent Jobs *are defined correctly. * * *Bacula-dir.conf* *Director {# define myself* * Name = * * DIRport = 9101# where we listen for UA connections* * QueryFile = /etc/bacula/query.sql* * WorkingDirectory = /opt/bacula/bin/working* * PidDirectory = /opt/bacula/bin/working* * Maximum Concurrent Jobs = 2* * Password = xxx # Console password* * Messages = Daemon* * Maximum Concurrent Jobs = 3* *}* * * More info. If i have one running job, and i launch another job to different pool: * Error: block.c:577 Write error at 0:10 on device Drive-2 (/dev/nst1). ERR=Input/output error.* * Error: Error writing final EOF to tape. This Volume may not be readable.* *dev.c:1745 ioctl MTWEOF error on Drive-2 (/dev/nst1). ERR=Input/output error.* * End of medium on Volume LT0117L3 Bytes=645,120 Blocks=9 at * in other words, when run the second job, the first job volume shows this message and bacula mark the volume to full, try to mount another available volume, and when bacula try to write to the volume, the message appear again. In /var/log/messages i get this at same time: *mptbase: ioc1: LogInfo(0x11010202): F/W: bug! MID not found* *st1: Error 8 (sugg. bt 0x0, driver bt 0x0, host bt 0x8).* *st0: Error 8 (sugg. bt 0x0, driver bt 0x0, host bt 0x8).* *st0: Current: sense key: Unit Attention* *Add. Sense: Scsi bus reset occurred* *st1: Current: sense key: Unit Attention* *Add. Sense: Scsi bus reset occurred* o_0' On Mon, Jul 18, 2011 at 3:32 PM, John Drescher dresche...@gmail.com wrote: 2011/7/18 ninyo ninyod...@gmail.com: Maybe, but i dont know how can it help me, because i already have a tape autoloader. This is my config for storage: bacula-sd.conf ## Autochanger { Name = Autochanger Device = Drive-1 Device = Drive-2 Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d Changer Device = /dev/changer } Device { Name = Drive-1 # Drive Index = 0 Media Type = LTO-3 Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' #If you have smartctl, enable this, it has more info than tapeinfo Alert Command = sh -c 'smartctl -H -l error %c' Maximum Concurrent Jobs = 1 } Device { Name = Drive-2 # Drive Index = 1 Media Type = LTO-3 Archive Device = /dev/nst1 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' #If you have smartctl, enable this, it has more info than tapeinfo Alert Command = sh -c 'smartctl -H -l error %c' Maximum Concurrent Jobs = 1 } storage.conf ### Storage { Name = Cinta Address = SDPort = 9103 Password = xxx Device = Autochanger Media Type = LTO-3 Autochanger = yes Maximum Concurrent Jobs = 2 } You also need to set Maximum Concurrent Jobs in bacula-dir.conf. Again for the director, storage and client. John -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users