Hello again!
Maybe I should add that the first part indeed gets written to the dvd.
So there IS something on the DVD, it's readable and look quite ok
(bacula header then tar-ish concatenation of files)
Thanks for any help!
Nils
Nils Blanck-Wehde schrieb:
> Hello list!
>
> I am running bacula 2.4.2 from fschwarz's EL5 rpms on CentOS 5.2
>
> I am having a hard time getting bacula to write backups to DVD. I have
> narrowed it down to the following:
> After burning a part to DVD, bacula mounts the volume to determine the
> used space and pass the result to growisofs.
> This mount fails and the used space is not determined correctly (I guess).
>
> My mount command (from storage definition) is:
> "/usr/bin/sudo /bin/mount -t iso9660 -o ro %a %m"
> I can mount and unmount the dvd-writer as user bacula with
> "/usr/bin/sudo /bin/mount -t iso9660 -o ro /dev/dvdwriter-hda
> /mnt/bacula-dvd" without any problems.
> The same error occurs when I do not use "/etc/init.d/bacula-dir start"
> to start the sd but instead run "/usr/sbin/bacula-sd -d 99" as root.
> I really can't see why bacula should NOT be able to mount the device. I
> cannot reproduce this error on a shell as user "bacula". Plus the exact
> same error happens when I run the sd as root. Maybe the output is
> misleading?
> I am quite stuck here. Any help would be greatly appreciated!
>
> Thanks in advance
>
> Nils
>
> My configuration (If any other info would help, please ask):
>
> This is my dvd-tools version:
> dvd+rw-tools-7.0-0.el5.3
> I read that dvd+rw tools have to have a bacula-patch incorporated. I
> don't know if my version does so and to be honest I don't know how to
> find out...
>
> I don't know if it matters but I am using "Platinum 16x DVD-R 4.7GB"
> media (I have tried DVD+R media as well, no luck).
>
> This is the storage definition:
> Device {
> Name = "DVDWriter"
> Media Type = DVD
> Device Type = DVD
> Archive Device = /dev/dvdwriter-hda
> LabelMedia = yes; # lets Bacula label unlabeled media
> Random Access = Yes;
> AutomaticMount = yes; # when device opened, read it
> RemovableMedia = yes;
> AlwaysOpen = no;
> MaximumPartSize = 50M; # decreased partsize to reproduce error
> more quickly (should be 800M)
> RequiresMount = yes;
> MountPoint = /mnt/bacula-dvd;
> MountCommand = "/usr/bin/sudo /bin/mount -t iso9660 -o ro %a %m"
> UnmountCommand = "/usr/bin/sudo /bin/umount %m"
> SpoolDirectory = /tmp/backup;
> WritePartCommand = "/usr/lib/bacula/dvd-handler %a write %e %v"
> FreeSpaceCommand = "/usr/lib/bacula/dvd-handler %a free"
> }
>
> This is the job's output:
> 24-Nov 22:40 company_bacula-dir JobId 18: Start Backup JobId 18,
> Job=nightly-self-backup.2008-11-24_22.40.03
> 24-Nov 22:40 company_bacula-dir JobId 18: There are no more Jobs
> associated with Volume "Vol0013". Marking it purged.
> 24-Nov 22:40 company_bacula-dir JobId 18: All records pruned from Volume
> "Vol0013"; marking it "Purged"
> 24-Nov 22:40 company_bacula-dir JobId 18: Recycled volume "Vol0013"
> 24-Nov 22:40 company_bacula-dir JobId 18: Using Device "DVDWriter"
> 24-Nov 22:40 company_bacula-sd JobId 18: Labeled new Volume "Vol0013" on
> device "DVDWriter" (/dev/dvdwriter-hda).
> 24-Nov 22:40 company_bacula-sd JobId 18: Wrote label to prelabeled
> Volume "Vol0013" on device "DVDWriter" (/dev/dvdwriter-hda)
> 24-Nov 22:40 company_bacula-dir JobId 18: Max Volume jobs exceeded.
> Marking Volume "Vol0013" as Used.
> 24-Nov 22:41 company_bacula-sd JobId 18: Part 1 (52384172 bytes) written
> to DVD.
> 24-Nov 22:41 company_bacula-sd JobId 18: Remaining free space
> 18,446,744,073,709,551,466 on "DVDWriter" (/dev/dvdwriter-hda)
> 24-Nov 22:41 company_bacula-sd JobId 18: Fatal error: block.c:856 Unable
> to open device next part "DVDWriter" (/dev/dvdwriter-hda): ERR=Could not
> mount DVD device "DVDWriter" (/dev/dvdwriter-hda).
>
> 24-Nov 22:41 company_bacula-sd JobId 18: Job write elapsed time =
> 00:01:09, Transfer rate = 758.7 K bytes/second
> 24-Nov 22:41 company_bacula-fd JobId 18: Fatal error: backup.c:892
> Network send error to SD. ERR=Die Verbindung wurde vom
> Kommunikationspartner zurückgesetzt
> 24-Nov 22:41 company_bacula-dir JobId 18: Error: Bacula
> company_bacula-dir 2.4.2 (26Jul08): 24-Nov-2008 22:41:30
> Build OS: i686-redhat-linux-gnu redhat
> JobId: 18
> Job: nightly-self-backup.2008-11-24_22.40.03
> Backup Level: Full
> Client: "company_bacula-fd" 2.4.2 (26Jul08)
> i686-redhat-linux-gnu,redhat,
> FileSet: "Bacula-Server System-Backup FileSet"
> 2008-11-15 15:56:40
> Pool: "Default-Harddisk" (From Job resource)
> Storage: "DVD" (From user selection)
> Scheduled time: 24-Nov-2008 22:40:02
> Start time: 24-Nov-2008 22:40:08
> End time: 24-Nov-2008 22:41:30
> Elapsed time: 1 min 22 secs
> Priority: 10
> FD Files Written: 234
> SD Files Written: 233
> FD Bytes Written: 52,859,729 (52.85 MB)
> SD Bytes Written: 52,356,805 (52.35 MB)
> Rate: 644.6 KB/s
> Software Compression: None
> VSS: no
> Storage Encryption: no
> Volume name(s):
> Volume Session Id: 1
> Volume Session Time: 1227562801
> Last Volume Bytes: 214 (214 B)
> Non-fatal FD errors: 0
> SD Errors: 0
> FD termination status: Error
> SD termination status: Error
> Termination: *** Backup Error ***
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|