Falha na execução do backup do Windows Server

187 views
Skip to first unread message

Carolina Livotto

unread,
Apr 29, 2013, 9:56:11 AM4/29/13
to bacula-ba...@googlegroups.com

Bom dia,

 

Estou com o seguinte problema. Um job de backup que é executado em um servidor com o Windows Server dá o seguinte erro de vez em quando. Segue os logs:

 

26-Abr 21:08 svdom-fd JobId 1858: Error: /home/kern/bacula/k/bacula/src/lib/bsock.c:389 Write error sending -1 bytes to Storage daemon:10.0.0.6:9103: ERR=Input/output error

26-Abr 21:08 svdom-fd JobId 1858: Fatal error: /home/kern/bacula/k/bacula/src/filed/backup.c:1240 Network send error to SD. ERR=Input/output error

26-Abr 21:06 bacula-sd JobId 1858: Fatal error: append.c:245 Network error reading from FD. ERR=Conexão fechada pela outra ponta

 

Não sei o que pode estar acontecendo pois algumas vezes funciona corretamente.

Bacula 5.2.2

Windows Server 2003 x64 R2

Windows Server client 5.2.10

 

Alguém poderia me ajudar? Muito obrigada.

Luiz Gonzaga Sousa Neto

unread,
Apr 29, 2013, 10:38:02 AM4/29/13
to bacula-ba...@googlegroups.com
posta seus daemons , fica mais fácil te ajudar dando uma olhada neles.

Norberto Aquino

unread,
Apr 29, 2013, 11:04:38 AM4/29/13
to bacula-ba...@googlegroups.com

Normalmente este erro eh de fita/disco com problema.

--
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/-/J9w_uGz2PtoJ.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
 
 

Carolina Livotto

unread,
Apr 29, 2013, 1:23:49 PM4/29/13
to bacula-ba...@googlegroups.com
Boa tarde Srs.

Daemons: Bacula-dir:

# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 5.2.2 (26 November 2011) -- debian 6.0.3
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#

Director {                            # define myself
  Name = bacula-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/var/bacula/working"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 4
  Password = "JRW1XrQ1XMxkqWzfsYN5++yFHcWax/yrExmp2pL6+nfb"         # Console password
  Messages = Daemon
}

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


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

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

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
#  Max Start Delay = 5h
#  Max Wait Time = 2h
#  Max Run Time = 5h
  # This creates an ASCII copy of the catalog
  # Arguments to make_catalog_backup.pl are:
  #  make_catalog_backup.pl <catalog-name>
  RunBeforeJob = "/etc/bacula/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/bacula/working/%n.bsr"
  Priority = 10                   # run after main backup
}

#
# 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=bacula-fd
  FileSet="Full Set"
  Storage = File
  Pool = Default
  Messages = Standard
  Where = /tmp/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 = /sbin
  }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {
    File = /var/bacula/working
    File = /tmp
    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/bacula/working/bacula.sql"
  }
}

# Client (File Services) to backup
Client {
  Name = bacula-fd
  Address = bacula
  FDPort = 9102
  Catalog = MyCatalog
  Password = "RkqrRxyR8PT3PVF6wCzCF0TMRCbShEbwcc3M3DApNOyJ"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

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

##############   Storages    ######################
# Definition of file storage device
Storage {
  Name = File
# Do not use "localhost" here
  Address = 10.0.0.6                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
  Device = FileStorage
  Media Type = File
}


Storage {
  Name = local500
# Do not use "localhost" here
  Address = 10.0.0.6              # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
  Device = local500
  Media Type = File
}


Storage {
  Name = usb1t1
# Do not use "localhost" here
  Address = 10.0.0.6              # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
  Device = usb1t1
  Media Type = File
}


Storage {
  Name = local200
# Do not use "localhost" here
  Address = 10.0.0.6              # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
  Device = local200
  Media Type = File
}


Storage {
  Name = externo
# Do not use "localhost" here
  Address = 10.0.0.6              # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
  Device = externo
  Media Type = File
}
Storage {
        Name = NH
        Address = 10.1.1.1
        SDPort = 9103
        Password = "JRW1XrQ1XMxkqWzfsYN5++yFHcWax/yrExmp2pL6+nfb"
        Device = FileNH
        Media Type = File
}


# Definition of DDS tape storage device
#Storage {
#  Name = DDS-4
#  Do not use "localhost" here
#  Address = bacula                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"          # password for Storage daemon
#  Device = DDS-4                      # must be same as Device in Storage daemon
#  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
#  Autochanger = yes                   # enable for autochanger device
#}

# Definition of 8mm tape storage device
#Storage {
#  Name = "8mmDrive"
#  Do not use "localhost" here
#  Address = bacula                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
#  Device = "Exabyte 8mm"
#  MediaType = "8mm"
#}

# Definition of DVD storage device
#Storage {
#  Name = "DVD"
#  Do not use "localhost" here
#  Address = bacula                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "ntLwAQbatlUv3kxax+hBcq3HrBWiAKkCdrHbq1+j8jqJ"
#  Device = "DVD Writer"
#  MediaType = "DVD"
#}


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

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
#  What this does is, it sets the email address that emails would display
#  in the FROM field, which is by default the same email as they're being
#  sent to.  However, if you send email to more than one address, then
#  you'll have to set the FROM address manually, to a single address.
#  for example, a 'no-r...@mydomain.com', is better since that tends to
#  tell (most) people that its coming from an automated source.

#
 mailcommand = "/sbin/bsmtp -h 10.0.0.253 -f \"\(Bacula\) \<bac...@domain.com.br\>\" -s \"Bacula Domain: %t %e of %n %l\" %r"
  operatorcommand = "/sbin/bsmtp -h 10.0.0.253 -f \"\(Bacula\) \<bac...@Domain.com.br\>\" -s \"Bacula Domain: Intervention needed for %j\" %r"
  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/bacula/working/log" = all, !skipped
  catalog = all
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped
  console = all, !skipped, !saved
  append = "/var/bacula/working/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 = bacula-mon
  Password = "ls8YUgG6GOMuMu4cNqHcDob8hFguktQj6YKKDU30pP63"
  CommandACL = status, .status
}
###  clientes   ####
@/etc/bacula/clientes/svdown
@/etc/bacula/clientes/observi
@/etc/bacula/clientes/zimbra
@/etc/bacula/clientes/strattegia
@/etc/bacula/clientes/sistemas

Job:
### hd Local ###
Job {
  Name = "svdom_diario"
  Type = Backup
  Client = svdom-fd
  FileSet = "svdown"
  Level = Incremental
  Schedule = "windows"
  Storage = local500
  Messages = Standard
  Pool = windows
  Write Bootstrap = "/var/bacula/working/%c.bsr"
  Max Start Delay = 10h
  Max Wait Time = 10h
#  Max Run Time = 5h
#  Volume Use Duration = 10h
}

FileSet {
  Name = "svdown"
#  Enable VSS = No
   Include {
#    Options {
#      signature = MD5
#      compression=GZIP3
#        BaseJob = pmugcs5
#        accurate = mcs5
#        verify = pin5
#    }
         File = "C:/Documents and Settings"
         File = "F:/"
#        File = "D:/Departamentos"
#        File = "D:/Fornecedores"
#        File = "D:/Pessoal"
#        File = "D:/Portal_NFe"
#        File = "D:/Publico"
#        File = "D:/Sistemas/FullSoft"
#        File = "D:/Sistemas/softbyte/backup/bacula"
#        File = "D:/Sistemas/softbyte/bin"
#        File = "D:/Sistemas/softbyte/HTMLDemo"
#        File = "D:/Sistemas/softbyte/PDA"
#        File = "D:/Sistemas/softbyte/Report Manager"
#        File = "D:/Sistemas/softbyte/VBDemo"
#        File = "D:/Softbyte"
#        File = "D:/Virtual Machines/Oracle"
#        File = "D:/Virtual Machines/Estrategia"
}
        Exclude{
        }
}

Norberto, tenho outros 4 jobs rodando corretamente neste bacula. Isso parece algum problema específico neste servidor.

Carol

Em segunda-feira, 29 de abril de 2013 12h04min38s UTC-3, Norberto Aquino escreveu:

Normalmente este erro eh de fita/disco com problema.

Em 29/04/2013 11:38, "Luiz Gonzaga Sousa Neto" <luize...@gmail.com> escreveu:
posta seus daemons , fica mais fácil te ajudar dando uma olhada neles.

Em segunda-feira, 29 de abril de 2013 10h56min11s UTC-3, Carolina Livotto escreveu:

Bom dia,

 

Estou com o seguinte problema. Um job de backup que é executado em um servidor com o Windows Server dá o seguinte erro de vez em quando. Segue os logs:

 

26-Abr 21:08 svdom-fd JobId 1858: Error: /home/kern/bacula/k/bacula/src/lib/bsock.c:389 Write error sending -1 bytes to Storage daemon:10.0.0.6:9103: ERR=Input/output error

26-Abr 21:08 svdom-fd JobId 1858: Fatal error: /home/kern/bacula/k/bacula/src/filed/backup.c:1240 Network send error to SD. ERR=Input/output error

26-Abr 21:06 bacula-sd JobId 1858: Fatal error: append.c:245 Network error reading from FD. ERR=Conexão fechada pela outra ponta

 

Não sei o que pode estar acontecendo pois algumas vezes funciona corretamente.

Bacula 5.2.2

Windows Server 2003 x64 R2

Windows Server client 5.2.10

 

Alguém poderia me ajudar? Muito obrigada.

--
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-pt-br+unsub...@googlegroups.com.

Rafael Ferreira

unread,
Apr 29, 2013, 1:59:30 PM4/29/13
to bacula-ba...@googlegroups.com
Olá Carol,

confirma pra mim que o servidor windows é o svdown?

Pelo seu conf, você tem 6 storages. Mas como seus clientes e  jobs são declarados em outro arquivo (@/etc/bacula/clientes/svdown), não pude avaliar qual servidor usa que storage.

Verifique se o storage que recebe backups do servidor windows também recebe backups de outro servidor.

A julgar pelo erro "Network send error to SD. ERR=Input/output error", concordo com o Norberto de que seja um problema de disco/fita.


2013/4/29 Carolina Livotto <carolina...@gmail.com>
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.
 
 



--
*************************
* 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...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Carolina Livotto

unread,
Apr 30, 2013, 1:24:45 PM4/30/13
to bacula-ba...@googlegroups.com
O servidor windows é o svdown.
Temos outros servidores utilizando esse HD para backup também mas não ocorre erros desse tipo em nenhum momento. Bem pelo contrário esses servidores vem gravando seus jobs corretamente há bastante tempo.
Hoje funcionou corretamente o backup deste windows server. Gravou 316 GB corretamente.

Obrigada pela ajuda.

Em segunda-feira, 29 de abril de 2013 10h56min11s UTC-3, Carolina Livotto escreveu:
Reply all
Reply to author
Forward
0 new messages