From: <bac...@li...> - 2008-11-29 02:28:54
|
A NOTE has been added to this issue. ====================================================================== http://bugs.bacula.org/view.php?id=1184 ====================================================================== Reported By: jarif Assigned To: ====================================================================== Project: bacula Issue ID: 1184 Category: Storage Daemon Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 11-10-2008 19:26 UTC Last Modified: 11-29-2008 02:28 UTC ====================================================================== Summary: Backup to DVD updates catalog only for the last "part" Description: When a backup results more than one part written to DVD, the database catalog gets updated only for the last part's numbers. The VolBytes will be the bytes of the last part only, and VolFiles will be 0 (if the job was the first job for the volume). Job ends without error, but next job will fail because catalog does not match the data in volume. ====================================================================== ---------------------------------------------------------------------- jarif - 11-10-08 19:39 ---------------------------------------------------------------------- The jobs in my example are not actually real, the "next job" was actually run before the first job, so the volume number is 002 and not 003. That is because I had already seen what will happen if I start a new job for 003. I did two jobs on volume 002 and the second failed, and the report contains messages from that job. I never did a second job for 003 after the first failed. The result is still the same. ---------------------------------------------------------------------- jarif - 11-12-08 16:43 ---------------------------------------------------------------------- A debug trace from storage daemon available: http://www.localnet.fi/jarif/bacula/bacula-sd.trace.zip ---------------------------------------------------------------------- jarif - 11-19-08 18:33 ---------------------------------------------------------------------- Device { Name = "DVD_RW" # Media Type = "DVD+RW" Device Type = DVD Archive Device = /dev/hdc Requires Mount = Yes; Automatic Mount = Yes; # when device opened, read it # Offline On Unmount = Yes; Mount Point = /mnt/dvd Mount Command = "/bin/mount -t iso9660 -o ro %a %m" # mount as Read Only to save DVD+RW from counting as written. Bacula still writes fine. # Unmount Command = "/bin/umount %m" Unmount Command = "/bin/umount /mnt/dvd" Write Part Command = "/etc/bacula/scripts/dvd-handler %a write %e %v" Free Space Command = "/etc/bacula/scripts/dvd-handler %a free" AlwaysOpen = no; MaximumPartSize = 800M; Removable Media = yes; Random Access = yes; Spool directory = /usr/local/srv/backup ; Maximum Spool Size = 20GB Maximum Job Spool Size = 10GB } ---------------------------------------------------------------------- jarif - 11-29-08 02:28 ---------------------------------------------------------------------- Yahoo! Google! I downgraded to 2.2.8 for the dir/stored server, and I made it! Backup successful! I don't remember when was it, but the stored code was rewritten. Seems that broke the DVD code. I have not restored yet, but at least each DVD part updates the database, and everyting seems to work fine in backup. Issue History Date Modified Username Field Change ====================================================================== 11-10-08 19:26 jarif New Issue 11-10-08 19:39 jarif Note Added: 0003739 11-12-08 16:43 jarif Note Added: 0003744 11-19-08 09:47 jarif Issue Monitored: jarif 11-19-08 18:33 jarif Note Added: 0003766 11-29-08 02:28 jarif Note Added: 0003801 ====================================================================== |