Hello,

On 3/27/2006 7:28 PM, Josh Endries wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I still can't figure this out. I can't believe it's such a HUGE PITA
getting disk-based backup and restore to work with Bacula. It should be
easy. WTF. I'm so freaking frustrated right now. Dammit.

Josh Endries wrote:

Hello,

I'm having trouble restoring from a File device. The backup says it runs
OK, and a verify job says the backup is OK, but the restore job gives me
this:

Important question: What sort of verify? I guess you do a catlog-to-disk one...

Error: block.c:305 Volume data error at 0:2405980938!
Block checksum mismatch in block=14107 len=64512: calc=9e6da70b blk=208478d0

Same numbers every time. Does this mean it can't find the file(s), or
the data is corrupt? I couldn't find any help from Google, IRC or the
archives...

Sounds like corrupt data to me, especially if it can be reproduced.

What sort of disks do yo use, or rather, what does the system log, smartmontools, and the manufacturer diagnostics software say about the disk state?

This is on a FreeBSD machine, Bacula 1.38.5. There's nothing
else on the box and no other jobs, so it's not under any load. I've
tried all three steps (backup, verify, restore) many times with
identical results...so I think there must be something I'm missing in
the device section or some other config option, but I haven't been able
to find it.

I've not seen a checksum error for a very long time now, and in all cases I did see them they were due to dying hardware (tapes and tape drives, in my case). Corrupt data from a hard disk is a good reason to exchange the disk.

You might try bextract, perhaps even a version where you remove the checksum comparison, to restore the file you need.

Arno



bacula-sd.conf:
director {
 Name = "backup-dir"
 Password = ""
}
storage {
 Name = "backup.domain.com"
 WorkingDirectory = "/var/db/bacula"
 Pid Directory = "/var/run"
 Maximum Concurrent Jobs = 5
}
Device {
 Name = "hard disk"
 Media Type = File
 Archive Device = /home/bacula/backups
 Random Access = Yes
 AutomaticMount = yes
 RemovableMedia = no
 LabelMedia = yes
 AlwaysOpen = no
 SpoolDirectory = /home/bacula/spool
}
messages {
       name = standard
       director = backup.domain.com = all
}



bacula-dir.conf:
Director {
       Name = "backup-dir"
       QueryFile = "/usr/local/share/bacula/query.sql"
       WorkingDirectory = "/var/db/bacula"
       PidDirectory = "/var/run"
       Maximum Concurrent Jobs = 5
       Password = ""
       Messages = Standard
}
JobDefs {
       Name = "Daily Backup"
       Type = Backup
       Priority = 1
       Messages = Standard
       Schedule = "Daily Backup"
       Storage = "backup.domain.com hard disk"
       Pool = Daily
       Full Backup Pool = Monthly
       Level = Differential
       Maximum Concurrent Jobs = 5
       Spool Data = yes
}
JobDefs {
  Name = "Daily Verify"
  Type = Verify
  Priority = 2
  Messages = Standard
  Schedule = "Daily Backup"
  Storage = "backup.domain.com hard disk"
  Pool = Daily
  Full Backup Pool = Monthly
  Level = DiskToCatalog
  Maximum Concurrent Jobs = 10
  Spool Data = yes
}
Schedule {
       Name = "Daily Backup"
       Run = daily at 1:00
}
Storage {
       Name = "backup.domain.com hard disk"
       MediaType = File
       Device = "hard disk"
       Address = backup.domain.com
       Password = ""
}
Catalog {
 Name = MyCatalog
 dbname = bacula; user = bacula; password = ""
}
Messages {
       Name = Standard
       console = all, !skipped, !saved
       syslog = all, !skipped, !saved
}
Pool {
 Name = Daily
 Pool Type = Backup
 Recycle = yes
 Volume Retention = 1 month
 Recycle Oldest Volume = yes
}
Pool {
  Name = Monthly
  Pool Type = Backup
  Recycle = yes
  Volume Retention = 1 year
  Recycle Oldest Volume = yes
}
Client {
       Name = "client.domain.com"
       Address = x.x.x.x
       Catalog = MyCatalog
       Password = ""
}
FileSet {
       Name = "client.domain.com"
       Include {
               Options { Signature = SHA1; Compression = GZIP6; Verify
= ipnugs1; }
               File = d:/data
       }
}
Job {
       Client = "client.domain.com"
       Name = "client.domain.com Daily Backup"
       WriteBootstrap = "/var/db/bacula/client.domain.com_Daily_Backup.bsr"
       JobDefs = "Daily Backup"
       FileSet = "client.domain.com"
}
Job {
       Client = "client.domain.com"
       Name = "client.domain.com Daily Verify"
       JobDefs = "Daily Verify"
       FileSet = "client.domain.com"
       Verify Job = "client.domain.com Daily Backup"
}
Job {
       Client = "client.domain.com"
       Name = "client.domain.com Daily Backup Restore"
       Bootstrap = "/var/db/bacula/client.domain.com_Daily_Backup.bsr"
       Type = Restore
       Level = Full
       FileSet = "client.domain.com"
       Priority = 1
       Messages = Standard
       Storage = "backup.domain.com hard disk"
       Pool = Daily
       Full Backup Pool = Monthly
}

Thanks,
Josh


- -------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEKCDQV/+PyAj2L+IRAr1fAJwKQj9vAhw5g4hv/wTsIESqBFhQDQCeJFmS
8cdl3wm5jGVS8ENAzXG0gSY=
=DIWD
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to