Erro Bacula-FD ao fazer backup externo.

848 views
Skip to first unread message

Rogério Carvalho

unread,
May 26, 2014, 11:57:01 AM5/26/14
to bacula-ba...@googlegroups.com
Boa tarde pessoal.

Alguém já pegou erro parecido? Eu estou fazendo um backup de 46Gb de um servidor Windows 2008 para o Bacula que está na Nuvem. Porém ele não conclui, apresente o erro abaixo.
O link é de 100Mb dedicado. Alguém poderia me dar uma força?


JobId 232: Generate VSS snapshots. Driver="VSS Vista", Drive(s)="F"
server-fs-fd JobId 232: Error: /home/kern/bacula/k/bacula/src/lib/bsock.c:393 Write error sending 8284 bytes to Storage daemon:ip_do_servidor:9103: ERR=Input/output error
server-fs-fd JobId 232: Fatal error: /home/kern/bacula/k/bacula/src/filed/backup.c:1024 Network send error to SD. ERR=Input/output error
server-fs-fd JobId 232: Error: /home/kern/bacula/k/bacula/src/lib/bsock.c:339 Socket has errors=1 on call to Storage daemon:ip_do_servidor:9103
server-fs-fd JobId 232: VSS Writer (BackupComplete): "System Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "FRS Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "Shadow Copy Optimization Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "Registry Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "ASR Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "WMI Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "BITS Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "COM+ REGDB Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "Dhcp Jet Writer", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "NTDS", State: 0x1 (VSS_WS_STABLE)
server-fs-fd JobId 232: VSS Writer (BackupComplete): "NPS VSS Writer", State: 0x1 (VSS_WS_STABLE)
server-dir JobId 232: Error: Bacula server-dir 5.2.5 (26Jan12):
  Build OS:               x86_64-pc-linux-gnu ubuntu 12.04
  JobId:                  232
  Job:                    CPPRO_Full.2014-05-25_12.39.52_21
  Backup Level:           Full
  Client:                 "server-fs-fd" 5.0.3 (04Aug10) Linux,Cross-compile,Win32
  FileSet:                "CPPRO" 2014-05-25 14:02:02
  Pool:                   "CPPRO" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "CPPRO" (From Job resource)
  Scheduled time:         25-May-2014 12:39:52
  Start time:             25-May-2014 12:39:58
  End time:               26-May-2014 01:26:58
  Elapsed time:           12 hours 47 mins 
  Priority:               10
  FD Files Written:       5
  SD Files Written:       0
  FD Bytes Written:       5,379,855,220 (5.379 GB)
  SD Bytes Written:       0 (0 B)
  Rate:                   116.9 KB/s
  Software Compression:   78.9 %
  VSS:                    yes
  Encryption:             no
  Accurate:               no
  Volume name(s):         CPPRO
  Volume Session Id:      1
  Volume Session Time:    1401031403
  Last Volume Bytes:      14,613,386,542 (14.61 GB)
  Non-fatal FD errors:    2
  SD Errors:              0
  FD termination status:  Error
  SD termination status:  Error
  Termination:            *** Backup Error ***

Agradeço desde já.

Rogério.

Rafael Ferreira

unread,
Jun 5, 2014, 3:15:06 PM6/5/14
to bacula-ba...@googlegroups.com
Olá,

este backup já funcionou alguma vez?
Poderia postar seu bacula-dir e bacula-sd?

###################################
 Rafael Ferreira   -  Consultoria em TI     
 E-mail: rferreir...@gmail.com     
 Tel.: (21) 98893-7015                           
###################################
 Linux Professional Institute Certified    
 LPI ID - LPI000305098                         
###################################



--
Você recebeu essa mensagem porque está inscrito no grupo quot;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 http://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/5e63d193-3368-45ae-aaaf-9927f9af7516%40googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

Rogério Carvalho

unread,
Jun 6, 2014, 9:49:43 AM6/6/14
to bacula-ba...@googlegroups.com
Rafael.

Segue os arquivos de configuração.
Eu consigo fazer o backup com volumes em torno de 2Gb. Mas não consigo fazer quando o volume é de 130Gb.

bacula-dir.conf

Director {                            # define myself
  Name = luna1009-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 = 1
  Password = "vOchjaYxGgFnKdbE5me5a3Tp5vs763FyoIhXdqUF733A"         # Console password
  Messages = Daemon
#  DirAddress = 127.0.0.1
}

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


#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
#Job {
#  Name = "BackupClient1"
#  JobDefs = "DefaultJob"
#}

#Job {
#  Name = "BackupClient2"
#  Client = luna10092-fd
#  JobDefs = "DefaultJob"
#}

# Backup the catalog database (after the nightly save)
Job {
  Name = BackupCatalog
  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>
  Run Before Job = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Storage = File
  Pool = File
  Messages = Standard
  Type = Backup
  Client = luna1009-dir
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
#Job {
# Name = "RestoreFiles"
#  Type = Restore
#  Client=luna1009-fd                
#  FileSet="Full Set"                 
#  Storage = File                     
#  Pool = Default
#  Messages = Standard
#  Where = /nonexistant/path/to/file/archive/dir/bacula-restores
#}


# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
#   
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
#  Note: / backs up everything on the root partition.
#    if you have other partitions such as /usr or /home
#    you will probably want to add them too.
#
#  By default this is defined to point to the Bacula binary
#    directory to give a reasonable FileSet to backup to
#    disk storage during initial testing.
#
    File = /usr/sbin
  }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {
    File = /var/lib/bacula
    File = /nonexistant/path/to/file/archive/dir
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

#
# When to do the backups, full backup on first sunday of the month,
#  differential (i.e. incremental since full) every other sunday,
#  and incremental backups other days
Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bacula/bacula.sql"
  }
}

# Client (File Services) to backup
Client {
  Name = luna1009-dir
  Address = 192.168.0.1
  FDPort = 9102
  Catalog = MyCatalog
  Password = 7xo9vyQXdzbu3kfK8znMfZlcoVPwuy9NY
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}

#
# Second Client (File Services) to backup
#  You should change Name, Address, and Password before using
#
#Client {
#  Name = luna10092-fd               
#  Address = localhost2
#  FDPort = 9102
#  Catalog = MyCatalog
#  Password = "7xo9vyQXdzbu3kfK8znMfZlcoVPwuy9NY2"         # password for FileDaemon 2
#  File Retention = 30 days            # 30 days
#  Job Retention = 6 months            # six months
#  AutoPrune = yes                     # Prune expired Jobs/Files
#}


# Definition of file storage device
Storage {
  Name = File
# Do not use "localhost" here   
  Address = 192.168.0.1
  SDPort = 9103
  Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
  Device = FileStorage
  Media Type = File
  Maximum Concurrent Jobs = 15
}




# Generic catalog service
Catalog {
  Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport = 
  dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "senha"
}

# Reasonable message delivery -- send most everything to email address
#  and to the console
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
#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#
  append = "/var/lib/bacula/log" = all, !skipped
  catalog = all
}


#
# Message delivery for daemon messages (no job).
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
}

# Default pool definition
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
}

# File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  Maximum Volume Bytes = 50G          # Limit Volume size to something reasonable
  Maximum Volumes = 100               # Limit number of Volumes in Pool
}


# Scratch pool definition
Pool {
  Name = Scratch
  Pool Type = Backup
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = luna1009-mon
  Password = "aqKBI41wjnd_vKavCX0uF_kLBdUmMBXhH"
  CommandACL = status, .status
}
FileSet {
  Name = Arquivos
  Include {
    File = "E:/Dados/Acordos/Consolidação PAGAMENTOS FEITO.xlsx"
    Options {
  Compression = GZIP6
    }
  }
}
Client {
  Name = hparada-fs-fd
  Password = C+aqur0zgQPxpLrXULXbtOp/Gopp8l7UMgJhqXUS8/jx
  Heartbeat Interval = 30
  Address = 192.168.0.2
  FDPort = 9102
  Catalog = MyCatalog
  File Retention = 30 days
  Job Retention = 6 months
}
Pool {
  Name = Arquivos
  Pool Type = Backup
  Volume Retention = 365 days
  Recycle = yes
  AutoPrune = yes
}
Storage {
  Name = Arquivos
  Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
  Address = 192.168.0.1
  SDPort = 9103
  Device = FileStorage
  Media Type = File
  Maximum Concurrent Jobs = 15
}
Job {
  Name = RestoreFiles
  Type = Restore
  Client = luna1009-dir
  FileSet = "Full Set"
  Storage = File
  Pool = Default
  Messages = Standard
}
Storage {
  Name = CPPRO
  Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
  Address = 192.168.0.1
  SDPort = 9103
  Device = CPPRO
  Media Type = File
  Maximum Concurrent Jobs = 20
}
FileSet {
  Name = CPPRO
  Enable VSS = yes
  Include {
    File = F:/Bkp/CPPRO/Backup
    Options {
      signature = MD5
    }
  }
}
Pool {
  Name = CPPRO
  Pool Type = Backup
  Volume Retention = 365 days
  Recycle = yes
  AutoPrune = yes
  Maximum Volume Jobs = 15
}
Job {
  Name = CPPRO_Full
  Type = Backup
  Level = Full
  Client = hparada-fs-fd
  FileSet = CPPRO
  Schedule = CPPRO_Full
  Storage = CPPRO
  Pool = CPPRO
  Messages = Standard
  Enabled = No
}
Storage {
  Name = CRMPHI
  Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
  Address = 192.168.0.1
  SDPort = 9103
  Device = CRMPHI
  Media Type = File
  Maximum Concurrent Jobs = 20
}
Pool {
  Name = CRMPHI
  Pool Type = Backup
  Volume Retention = 365 days
  Recycle = yes
  AutoPrune = yes
  Maximum Volume Jobs = 20
}
FileSet {
  Name = CRMPHI
  Include {
    File = F:/Bkp/NWCRM/
    Options {
  Compression = GZIP6
    }
  }
}
Job {
  Name = CRMPHI_Full
  Type = Backup
  Level = Full
  Client = hparada-fs-fd
  FileSet = CRMPHI
  Schedule = CRMPHI_Full
  Storage = CRMPHI
  Pool = CRMPHI
  Messages = Standard
  Enabled = No
}
Schedule {
  Name = CRMPHI_Full
  Run = Level=Full Pool=CRMPHI sun at 00:00
}
Schedule {
  Name = CRMPHI_Incremental
  Run = Level=Incremental Pool=CRMPHI mon-sat at 00:00
}
Schedule {
  Name = CPPRO_Full
  Run = Level=Full Pool=CPPRO sun at 00:00
}
Schedule {
  Name = CPPRO_Incremental
  Run = Level=Incremental Pool=CPPRO mon-sat at 00:00
}
Job {
  Name = CRMPHI_Incremental
  Type = Backup
  Level = Incremental
  Client = hparada-fs-fd
  FileSet = CRMPHI
  Schedule = CRMPHI_Incremental
  Storage = CRMPHI
  Pool = CRMPHI
  Messages = Standard
  Enabled = No
}
Job {
  Name = CPPRO_Incremental
  Type = Backup
  Level = Incremental
  Client = hparada-fs-fd
  FileSet = CPPRO
  Schedule = CPPRO_Incremental
  Storage = CPPRO
  Pool = CPPRO
  Messages = Standard
  Enabled = No
}
FileSet {
  Name = CPPRO_GED
  Include {
    File = "F:/Bkp/CPPRO/GED Server Files"
    Options {
      signature = MD5
  OneFS = no
    }
  }
}
Pool {
  Name = CPPROGED
  Pool Type = Backup
  Maximum Volume Jobs = 10
  Volume Retention = 365 days
  Recycle = yes
  AutoPrune = yes
}
Storage {
  Name = CPPROGED
  Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
  Address = 192.168.0.1
  SDPort = 9103
  Device = CPPROGED
  Media Type = File
  Maximum Concurrent Jobs = 15
}
Job {
  Name = CPPROGED_Full
  Type = Backup
  Level = Full
  Client = hparada-fs-fd
  FileSet = CPPRO_GED
  Schedule = CPPROGED_Full
  Storage = CPPROGED
  Pool = CPPROGED
  Messages = Standard
}
Schedule {
  Name = CPPROGED_Full
  Run = Level=Full Pool=CPPROGED sun at 00:00
}


bacula-sd.conf

#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04
#
# You may need to change the name of your tape drive
#   on the "Archive Device" directive in the Device
#   resource.  If you change the Name and/or the
#   "Media Type" in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage {                             # definition of myself
  Name = luna1009-sd
  SDport = 9103
  WorkingDirectory = /var/lib/bacula
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  Heartbeat Interval = 120
#  SDAddress = 127.0.0.1
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = luna1009-dir
  Password = "C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = luna1009-mon
  Password = "eTXCUrkrLSU5eKfx_Dawqd5pIqNBeChdx"
  Monitor = yes
}

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType.
#

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /mnt/backup
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}

#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = luna1009-dir = all
}
Device {
  Name = CPPRO
  Archive Device = /mnt/backup/CPPRO
  Media Type = File
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}
Device {
  Name = CRMPHI
  Archive Device = /mnt/backup/CRMPHI
  Media Type = File
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}
Device {
  Name = CPPROGED
  Archive Device = /mnt/backup/CPPROGED
  Media Type = File
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}

Obrigado pela ajuda.

Rogério

Rafael Ferreira

unread,
Jun 6, 2014, 3:59:53 PM6/6/14
to bacula-ba...@googlegroups.com
Rapaz,

não identifiquei nada muito anormal, mas tenho algumas sugestões que podem ajudar.

1 - A versão do seu bacula-dir (5.2.5) e o bacula-fd (5.0.3) são bem diferentes. Aconselho atualizar seu cliente, se possível até o dir também. A versão atual pra linux é 5.2.13 e para windows 5.2.10. Outra coisa interessante a se verificar é se o seu sistema operacional é 32 bits ou 64 bits.

2 - Vi que você configurou o Heartbeat interval no seu SD. Porém no seu bacula-dir, falta inserir ele em "Director { "
e se possível também no arquivo bacula-fd do cliente. Recomendo que use o Heartbeat com valor 60.


Acredito que isso possa estar influenciando na falha do backup.

Abraço,

###################################
 Rafael Ferreira   -  Consultoria em TI     
 E-mail: rferreir...@gmail.com     
 Tel.: (21) 98893-7015                           
###################################
 Linux Professional Institute Certified    
 LPI ID - LPI000305098                         
###################################



--
Você recebeu essa mensagem porque está inscrito no grupo quot;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 http://groups.google.com/group/bacula-backup-pt-br.

Rogério Carvalho

unread,
Jun 6, 2014, 8:27:32 PM6/6/14
to bacula-ba...@googlegroups.com
Então Rafael.

O client Windows é 32bits. Eu até estava com uma versão client do bacula mais recente no servidor, porém o backup não ia de jeito nenhum. Nem mesmo o backup de 1Gb. Depois que eu coloquei a versão 5.0.3, o backup de 1Gb foi feito, o que enrosca mesmo é esse de maior volume de 130Gb.
Eu vou fazer uns testes com o Heartbeat, caso ainda não dê certo, eu vou procurar fazer a atualização da versão do bacula. Os resultados eu posto aqui depois.
Valew pela ajuda!

Abraços.

Rogério Carvalho

Carlos Gazel

unread,
Mar 30, 2021, 5:01:20 AM3/30/21
to Bacula Backup-Pt-Br
Alguma resposta pra esse erro. Eu tambem tenho em um client com uma volumetria maior !
Reply all
Reply to author
Forward
0 new messages