Bacula deixa espaço na fita e marca ela como FULL!

360 views
Skip to first unread message

Diego Pontes

unread,
May 8, 2013, 2:57:36 PM5/8/13
to bacula-ba...@googlegroups.com
Montamos um Bacula recentemente e estamos tento problemas com as gravações das fitas, as fitas estão sendo colocadas como FULL sendo que ainda deveriam ter muito mais espaço.

Já testei com 16 fitas:
5 LTO-4
11 LTO-5 (Sendo que compramos 2 novas para testarmos se era algum problema da fita)

Mensagem de erro das fitas antigas no messages do bconsole:

05-May 01:03 srvlnx32-sd JobId 92: Error: block.c:577 Write error at 338:9959 on device "lto-drive" (/dev/st0). ERR=Input/output error.
05-May 01:03 srvlnx32-sd JobId 92: Error: Error writing final EOF to tape. This Volume may not be readable.
dev.c:1551 ioctl MTWEOF error on "lto-drive" (/dev/st0). ERR=Input/output error.

15-Abr 02:06 srvlnx32-sd JobId 20: Error: block.c:577 Write error at 470:1880 on device "lto-drive" (/dev/st0). ERR=Input/output error.
15-Abr 02:06 srvlnx32-sd JobId 20: Error: Error writing final EOF to tape. This Volume may not be readable.
dev.c:1551 ioctl MTWEOF error on "lto-drive" (/dev/st0). ERR=Input/output error.


Mensagem de erro das fitas antigas no syslog do ubuntu server:

Apr 15 02:06:29 srvlnx32 kernel: [207108.503401] st0: Add. Sense: Write error
Apr 15 02:06:29 srvlnx32 kernel: [207108.503399] Info fld=0x1
Apr 15 02:06:29 srvlnx32 kernel: [207108.503390] st0: Sense Key : Medium Error [current]
Apr 15 02:06:19 srvlnx32 kernel: [207098.212335] st0: Add. Sense: Write error
Apr 15 02:06:19 srvlnx32 kernel: [207098.212333] Info fld=0xfc00
Apr 15 02:06:19 srvlnx32 kernel: [207098.212324] st0: Sense Key : Medium Error [current]

Fitas antigas:
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       9 | LT0100L5   | Full      |       1 | 469,122,812,928 |      470 |    1,296,000 |       1 |    2 |         1 | FITA-LTO  | 2013-04-15 02:06:29 |
|      11 | LT0107L5   | Full      |       1 | 590,980,432,896 |      591 |    2,592,000 |       1 |    6 |         1 | FITA-LTO  | 2013-04-21 02:03:58 |
|      13 | LT0106L5   | Full      |       1 | 573,364,528,128 |      574 |    2,592,000 |       1 |    5 |         1 | FITA-LTO  | 2013-04-28 01:34:04 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+


Fita nova:
Pool: Mensal
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      25 | SEJ013L5   | Full      |       1 | 895,600,355,328 |      896 |   15,552,000 |       1 |   11 |         1 | FITA-LTO  | 2013-05-07 17:37:20 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+

Mensagem que aparece no bconsole da fita nova:

07-Mai 17:30 srvlnx32-dir JobId 105: Start Backup JobId 105, Job=srvlnx32-job.2013-05-07_17.30.00_03
07-Mai 17:37 srvlnx32-sd JobId 103: End of Volume "SEJ013L5" at 895:11259 on device "lto-drive" (/dev/st0). Write of 64512 bytes got -1.
07-Mai 17:37 srvlnx32-sd JobId 103: Re-read of last block succeeded.
07-Mai 17:37 srvlnx32-sd JobId 103: End of medium on Volume "SEJ013L5" Bytes=895,600,355,328 Blocks=13,882,693 at 07-Mai-2013 17:37.
07-Mai 17:37 srvlnx32-sd JobId 103: 3307 Issuing autochanger "unload slot 11, drive 0" command.

Já retirei a fita da pool, zerei, rebombinei, dei um label novamente e sempre acontece o mesmo problema, teve casos que a fita lotava com 100Gb..
Já tentei alterar parametros e também não consegui resolver esse problema, caso alguém já tenha passado por isso e poder ajudar agradeço.

Se precisarem ver algum arquivo de configuração é só falar qual é que eu posto aqui, abraço...

pool.conf

# Definicao da Pool Diaria
Pool {
  Name = Diaria
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 15 days          #
#  Maximum Volume Bytes = 3096G           # Limit Volume size something reasonable
  Maximum Volumes = 15                 # Limit number of Volumes in Pool
  LabelFormat = "pool_diaria"
}

# Definicao da Pool Semanal
Pool {
  Name = Semanal
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 21 days          #
#  Maximum Volume Bytes = 3096G          # Limit Volume size something reasonable
  Maximum Volumes = 15                 # Limit number of Volumes in Pool
  LabelFormat = "pool_semanal"
}

# Definicao da Pool Mensal
Pool {
  Name = Mensal
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 180 days         #
#  Maximum Volume Bytes = 3096G          # Limit Volume size something reasonable
  Maximum Volumes = 15                 # Limit number of Volumes in Pool
  LabelFormat = "pool_mensal"
}

Rafael Ferreira

unread,
May 8, 2013, 3:52:36 PM5/8/13
to bacula-ba...@googlegroups.com
Olá Diego, poste seu bacula-sd.conf e bacula-dir.conf por favor.



--
Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar neste grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Visite este grupo em http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.
Para ver esta discussão na web, acesse https://groups.google.com/d/msg/bacula-backup-pt-br/-/YcN1vlrDHTkJ.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
 
 



--
*************************
* Rafael Ferreira      *
* Consultoria em TI  *
* Tel.: 8893-7015     *
*************************
* Linux Registered    *
* User: #479228       *
*************************
Antes de imprimir pense no seu compromisso com o meio ambiente!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PROTEJA-SE: Apague SEMPRE o nome de quem lhe enviou o e-mail antes de reenviar, e proteja também o nome de seus amigos como estou protegendo o seu. Ao enviar mensagens use SEMPRE o "Cco" ou "Bco" (cópia oculta). Evita-se spams, vírus, pop-ups...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ana Emília Machado de Arruda

unread,
May 8, 2013, 4:00:48 PM5/8/13
to bacula-ba...@googlegroups.com
Oi Diego,

Faz uns testes na sua unidade de fita para verificar se ela tá ok...
Vc pode rodar um "test" e um "fill". Lembra de colocar uma fita "zerada" ok?
Tá aparentando problema na unidade, porque em todas as fitas seria demais né?

[]s
Ana


2013/5/8 Diego Pontes <dieg...@gmail.com>

--

Diego Pontes

unread,
May 8, 2013, 4:04:27 PM5/8/13
to bacula-ba...@googlegroups.com
root@srvlnx32:/etc/bacula# cat bacula-sd.conf |grep -v ^#

Storage {                             # definition of myself
  Name = srvlnx32-sd
  SDPort = 9103                  # Director's port     
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Heartbeat Interval = 120
  Maximum Concurrent Jobs = 40
  SDAddress = 172.18.4.32
}

Director {
  Name = srvlnx32-dir
  Password = "0GYxM-NPGE-egIhljYh97maZ2KwPtJbxs"
}

Director {
  Name = srvlnx32-mon
  Password = "mTnULpNtm0eC3G_T-aj64haygXUW0bPOI"
  Monitor = yes
}

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /bkps/bacula-catalogo
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}


Autochanger {
  Name = robo-de-fita
  Device = lto-drive
  Changer Device = /dev/changer
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}

Device {
  Name = lto-drive
  Drive Index = 0
  AutoChanger = yes
  Media Type = FITA-LTO
  Archive Device = /dev/st0
  Changer Device = /dev/changer
  Maximum Changer Wait = 2d
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  LabelMedia = no;
  RandomAccess = no;
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}


Messages {
  Name = Standard
  director = srvlnx32-dir = all
}


root@srvlnx32:/etc/bacula# cat bacula-dir.conf |grep -v ^#

@/etc/bacula/config/pools.conf
@/etc/bacula/config/schedules.conf
@/etc/bacula/config/jobdefs.conf
@/etc/bacula/config/jobs.conf
@/etc/bacula/config/filesets.conf


Director {                            # define myself
  Name = srvlnx32-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 10
  Password = "vOchjaYxGgFnKdbE5me5a3Tp5vs763FyoIhXdqUF733A"         # Console password
  Messages = Daemon
  Heartbeat Interval = 120
  DirAddress = 127.0.0.1
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = srvlnx32-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = Fita
  Messages = Standard
  Pool = Diaria
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


Job {
  Name = "BackupClient1"
  JobDefs = "DefaultJob"
}


Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  # Arguments to make_catalog_backup.pl are:
  #  make_catalog_backup.pl <catalog-name>
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Priority = 99                  # run after main backup
}

Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=srvlnx32-fd                
  FileSet="Full Set"                 
  Storage = Fita                     
  Pool = Default
  Messages = Standard
  Where = /nonexistant/path/to/file/archive/dir/bacula-restores
}


FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
    File = /usr/sbin
  }

  Exclude {
    File = /var/lib/bacula
    File = /nonexistant/path/to/file/archive/dir
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bacula/bacula.sql"
  }
}

Client {
  Name = srvlnx32-fd
  Address = localhost
  FDPort = 9102
  Catalog = MyCatalog
  Password = "-2fVIC5jU94GHbOTbe7B8akAuLqtF_8Ev"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = srxlnx24-fd
  Address = 172.18.4.24
  FDPort = 9102
  Catalog = MyCatalog
  Password = "FlAw06XgcjU5LDEFaKE7KsTqcrPVlaJg5AemWPrLWpuQ"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Storage {
  Name = File
  Address = 172.18.4.32                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "0GYxM-NPGE-egIhljYh97maZ2KwPtJbxs"
  Device = FileStorage
  Media Type = File
}

Storage {
  Name = Fita
  Address = 172.18.4.32                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "0GYxM-NPGE-egIhljYh97maZ2KwPtJbxs"
  Device = robo-de-fita
  Media Type = FITA-LTO
  Autochanger = yes
  Maximum Concurrent Jobs = 40
}

Catalog {
  Name = MyCatalog
  dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "SENHA"
}

Messages {
  Name = Standard

  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = root@localhost = all, !skipped           
  operator = root@localhost = mount
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
  catalog = all, !skipped, !saved
}


Messages {
  Name = Daemon
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped           
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}


Console {
  Name = srvlnx32-mon
  Password = "gPCsz4o6WCbYqUXVSTITSnjKcOP0FItq5"
  CommandACL = status, .status

Diego Pontes

unread,
May 17, 2013, 4:44:28 PM5/17/13
to bacula-ba...@googlegroups.com
Depois de uma atualização do firmware da storage e do drive do robô, o problema não voltou a acontecer, as fitas estão sendo gravadas por completo sem aparecer nenhum erro, muito obrigado Ana, você ajudou muito.

att,
Diego Pontes.




Em quarta-feira, 8 de maio de 2013 15h57min36s UTC-3, Diego Pontes escreveu:

Ana Emília

unread,
May 20, 2013, 1:31:24 PM5/20/13
to bacula-ba...@googlegroups.com
Blz Diego!

Alisson Silva

unread,
Oct 5, 2013, 8:41:38 AM10/5/13
to bacula-ba...@googlegroups.com
Diego, suas fitas estão ultrapassando os 800GB?


--
Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar neste grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Visite este grupo em http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.

Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
 
 



--
Alisson Silva
alis...@gmail.com

-------------------------------------
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Diego Pontes

unread,
Oct 5, 2013, 8:45:29 AM10/5/13
to bacula-ba...@googlegroups.com

Não chegava nem a passar de 600gb, mas já foi resolvido, depois de uma atualização na tape e no drive da minha IBM. Não era problema no Bacula.

Att,
Diego Pontes.
LPIC 2 | MCTS | ISO 27002 | N.CLA | N.DCTS | CSSA | BRMACP | ITIL v3.
br.linkedin.com/in/dipontes/
via Galaxy S IV.

--
Você recebeu esta mensagem porque está inscrito em um tópico do grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar a inscrição neste tópico, acesse https://groups.google.com/d/topic/bacula-backup-pt-br/6xqcvdqO05k/unsubscribe.
Para cancelar a inscrição neste grupo e todos os seus tópicos, envie um e-mail para bacula-backup-p...@googlegroups.com.

Para postar neste grupo, envie um e-mail para bacula-ba...@googlegroups.com.

Alisson Silva

unread,
Oct 5, 2013, 9:54:09 AM10/5/13
to bacula-ba...@googlegroups.com
Fizemos o mesmo com nossos drives, a princípio é uma TL2000 da Dell. Atualizamos para o firmware mais recente, porém o volume que mais preencheu chegou até 624GB. Os nossos filesets de teste são arquivos de volumes do bacula que já foram compactados antes. Também disseram que 800GB é somente o valor esperado pelo fabricante. Já viram algo parecido?



Para obter mais opções, acesse https://groups.google.com/groups/opt_out.

Ana Emília

unread,
Oct 5, 2013, 10:22:36 AM10/5/13
to bacula-ba...@googlegroups.com
Oi Alisson,

Você usa fitas lto-3? Se sim, é normal o que está ocorrendo. A capacidade compressed de 800 gb é apenas uma estimativa do fabricante e difícil alcançar, principalmente se você joga pra fita arquivos que já possuem compressão (.gz, .zip, .odt, etc.). Se você usa fitas lto-4, você pode estar com problemas na fita ou até no drive, se isso ocorre com muitas fitas.

[]s
Ana

Alisson Silva

unread,
Oct 5, 2013, 11:30:57 PM10/5/13
to bacula-ba...@googlegroups.com

Ana, utilizamos LTO—4.
:(

Nosso equip eh um Dell tl2000 com drives LTO—5 via fibre channel.
Deixei rodando nesse fim de semana um job com fileset de arquivos diversos, textos, imagens, etc, onde a compressão deverá ser executada somente via hardware, assim espero. Antes usava para testes uma "cópia" dos volumes em disco do bacula como set. Acho que errei aqui!
Quando voltar ao trabalho na segunda, postarei o resultado.

[]'s

Jefferson Parreira dos Santos

unread,
Oct 7, 2013, 8:03:37 AM10/7/13
to bacula-ba...@googlegroups.com
Deixa só eu te fazer uma pergunta: A sua conexão do FC é direta ao servidor ou via algum switch?

Grato,
Jefferson Parreira dos Santos


Alisson Silva

unread,
Oct 7, 2013, 9:31:28 AM10/7/13
to bacula-ba...@googlegroups.com

Jefferson,

E feita via switch, um Cisco MDS 9000. Também acessamos um storage pela mesma hba.

[]'s

Alisson Silva

unread,
Nov 12, 2013, 12:00:56 PM11/12/13
to bacula-ba...@googlegroups.com
Ana/Jefferson

Aparentemente estávamos com problemas relacionados à switch. O drive1 (sem problemas) estava com as configurações de negociação em "auto", enquanto o drive2 (com problemas) estava setado manualmente em 4GB/s. Apesar do nosso switch negociar até 4GB/s, após alterar o drive2 para "auto" o problema foi aparentemente solucionado. Tivemos melhoras tanto na capacidade quanto na velocidade de gravação das fitas. As LTO-4 ficaram entre 1.96 e 2.16 TB.

Ana Emília M. Arruda

unread,
Nov 12, 2013, 12:15:54 PM11/12/13
to bacula-ba...@googlegroups.com
Obrigada pelo retorno Alisson!

[]s
Ana


2013/11/12 Alisson Silva <alis...@gmail.com>
Reply all
Reply to author
Forward
0 new messages