[DUVIDA] Comando LABEL

612 views
Skip to first unread message

Renato Santos

unread,
Jan 18, 2016, 3:28:56 PM1/18/16
to Bacula Backup-Pt-Br
Pessoal,

Estou com seguinte duvida adicionei 4 fitas a magazine, quando vou utilizar o comando label para adicionar ao bacula e apresento a seguinte mensagem.

*label volume=000009L5
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: File
     2: galileu-sd
Select Storage resource (1-2): 2
Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-6): 3

No slot defined in catalog (slot=0) for Volume "" on "DELL-LTO-5" (/dev/nst0).
Cartridge change or "update slots" may be required.
3920 Cannot label Volume because it is already labeled: "000002L5"
Label command failed for Volume 000009L5.
Do not forget to mount the drive!!!


Cheguei a utilizar o comando também label barcodes, onde foi apresentado minha fita antiga que se encontra na magazine e as fitas adicionadas.

*label barcodes
The defined Storage resources are:
     1: File
     2: galileu-sd
Select Storage resource (1-2): 2
Connecting to Storage daemon galileu-sd at
3306 Issuing autochanger "slots" command.
Device "DELL-LTO-5-Autochanger" has 8 slots.
Connecting to Storage daemon galileu-sd at
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==============
   1  000011L5
   2  000016L5
   3  000001L5
   4  000002L5

   7  CLNU00L1
   8  000009L5








Vinicius Alexandre Pereira de Souza

unread,
Jan 19, 2016, 7:45:04 AM1/19/16
to Bacula Backup-Pt-Br
Tente executar um "update slots" no bconsole e verifique se ele atualiza alguma informação sobre em qual slot qual fita está.

Essa fita que você está tentando fazer o label, é nova ou já havia tido um label criado pelo bacula?

Você formatou ela com o rewind e weof através do comando mt?

Renato Santos

unread,
Jan 19, 2016, 9:04:29 AM1/19/16
to Bacula Backup-Pt-Br
Bom Dia Vinicius,

Utilizei o comando label barcodes, e consegui adicionar 2 fitas agora ficou faltando mais 2 que também se encontra na magazine deram erro.

Label command failed for Volume 000011L5.
Sending label command for Volume "000016L5" Slot 2 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
block.c:1001 Read error on fd=5 at file:blk 0:0 on device "DELL-LTO-5" (/dev/nst0). ERR=Input/output error.
3000 OK label. VolBytes=64512 DVD=0 Volume="000016L5" Device="DELL-LTO-5" (/dev/nst0)

Catalog record for Volume "000016L5", Slot 2  successfully created.
Sending label command for Volume "000001L5" Slot 3 ...
3307 Issuing autochanger "unload slot 2, drive 0" command.
3304 Issuing autochanger "load slot 3, drive 0" command.
3305 Autochanger "load slot 3, drive 0", status is OK.
block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "774B". Buffer discarded.
3000 OK label. VolBytes=64512 DVD=0 Volume="000001L5" Device="DELL-LTO-5" (/dev/nst0)
Catalog record for Volume "000001L5", Slot 3  successfully created.
Media record for Slot 4 Volume "000002L5" already exists.
Sending label command for Volume "CLNU00L1" Slot 7 ...
3307 Issuing autochanger "unload slot 3, drive 0" command.
3304 Issuing autochanger "load slot 7, drive 0" command.
3305 Autochanger "load slot 7, drive 0", status is OK.
3910 Unable to open device ""DELL-LTO-5" (/dev/nst0)": ERR=dev.c:506 Unable to open device "DELL-LTO-5" (/dev/nst0): ERR=Input/output error

Renato Santos

unread,
Jan 21, 2016, 9:52:40 AM1/21/16
to Bacula Backup-Pt-Br
Alguém ???

Heitor Faria

unread,
Jan 21, 2016, 9:58:50 AM1/21/16
to bacula-ba...@googlegroups.com
Bom Dia Vinicius,

Utilizei o comando label barcodes, e consegui adicionar 2 fitas agora ficou faltando mais 2 que também se encontra na magazine deram erro.

Label command failed for Volume 000011L5.
Sending label command for Volume "000016L5" Slot 2 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
block.c:1001 Read error on fd=5 at file:blk 0:0 on device "DELL-LTO-5" (/dev/nst0). ERR=Input/output error.
3000 OK label. VolBytes=64512 DVD=0 Volume="000016L5" Device="DELL-LTO-5" (/dev/nst0)
Este alerta pode ser considerado "falso". É apenas dizendo que a fita era virgem mas observe que o volume foi criado com sucesso.

Catalog record for Volume "000016L5", Slot 2  successfully created.
Sending label command for Volume "000001L5" Slot 3 ...
3307 Issuing autochanger "unload slot 2, drive 0" command.
3304 Issuing autochanger "load slot 3, drive 0" command.
3305 Autochanger "load slot 3, drive 0", status is OK.
block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "774B". Buffer discarded.
3000 OK label. VolBytes=64512 DVD=0 Volume="000001L5" Device="DELL-LTO-5" (/dev/nst0)
Catalog record for Volume "000001L5", Slot 3  successfully created.
Media record for Slot 4 Volume "000002L5" already exists.
Sending label command for Volume "CLNU00L1" Slot 7 ...
3307 Issuing autochanger "unload slot 3, drive 0" command.
3304 Issuing autochanger "load slot 7, drive 0" command.
3305 Autochanger "load slot 7, drive 0", status is OK.
3910 Unable to open device ""DELL-LTO-5" (/dev/nst0)": ERR=dev.c:506 Unable to open device "DELL-LTO-5" (/dev/nst0): ERR=Input/output error
O mais provável é que haja algum erro na configuração de seu robô de fitas no bacula-sd.conf ou na amarração com o Bacula Dir (bacula-dir.conf).

Atenciosamente,
--
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: http://www.bacula.com.br/agenda/
Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/
Ou assista minhas vídeo aulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/
Site: www.bacula.com.br | Facebook: heitor.faria
========================================================================

Renato Santos

unread,
Jan 21, 2016, 11:08:20 AM1/21/16
to Bacula Backup-Pt-Br
Heitor,

Cheguei a verificar mais ele não criou, tentei utilizar o comando label e update slots mais foi retornado a msg abaixo :

*label

The defined Storage resources are:
     1: File
     2: galileu-sd
Select Storage resource (1-2): 2
Enter new Volume name: 000011L5

Defined Pools:
     1: Default
     2: File
     3: Scratch
     4: vr_pool
     5: vr_asterisk_gravacoes
     6: vr_callflex_gravacoes
Select the Pool (1-6): 1
Connecting to Storage daemon galileu-sd at 10.10.4.51:9103 ...
Sending label command for Volume "000011L5" Slot 0 ...

No slot defined in catalog (slot=0) for Volume "" on "DELL-LTO-5" (/dev/nst0).
Cartridge change or "update slots" may be required.
3910 Unable to open device ""DELL-LTO-5" (/dev/nst0)": ERR=dev.c:506 Unable to open device "DELL-LTO-5" (/dev/nst0): ERR=Input/output error

Label command failed for Volume 000011L5.
Do not forget to mount the drive!!!



Heitor Faria

unread,
Jan 21, 2016, 3:54:22 PM1/21/16
to bacula-ba...@googlegroups.com
Heitor,

Cheguei a verificar mais ele não criou, tentei utilizar o comando label e update slots mais foi retornado a msg abaixo :
Renato: você tinha colocado dois erros em negrito. Um era apenas pelo motivo da fita estar em branco. O erro abaixo poderia ser um problema na fita, mas acho mais provável que seja nas suas configurações que seria interssante postar.
--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.
Para ver essa discussão na Web, acesse https://groups.google.com/d/msgid/bacula-backup-pt-br/72799d54-747d-4649-9503-be5dacfd4e5f%40googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

Renato Santos

unread,
Jan 22, 2016, 5:44:47 AM1/22/16
to Bacula Backup-Pt-Br
Olá Heitor,

quais configurações você deseja que eu poste ? dir,sd,fd ?
Heitor,
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages