On Fri, May 26, 2006 at 12:02:10PM +0200, Kern Sibbald wrote:
> I've created a patch, which is attached to this email, which does
> *essentially* the same thing as the patch that was previously proposed,
> except that it does a bit more of the necessary bookkeeping.  I have not
> tested the patch, but would appreciate it if someone would apply it
> (without the previous patch) and tell me if it works. 

I have just tested the patch and the effect is the same as when no patch
is used at all:

09-Jun 17:28 nic-sd: Nic_system.2006-06-09_17.26.13 Error: block.c:538 Write 
error at 0:0 on device "DVD-Writer" (/dev/dvdrw). ERR=Bad file descriptor.
09-Jun 17:28 nic-sd: Marking Volume "Backup-2006-06-03_24" in Error in Catalog.
09-Jun 17:28 nic-sd: Nic_system.2006-06-09_17.26.13 Error: label.c:438 Unable 
to write device "DVD-Writer" (/dev/dvdrw): ERR=dvd.c:375 Error while writing 
current part to the DVD: Running growisofs -use-the-force-luke=notray -quiet 
-use-the-force-luke=4gms -A 'Bacula Data' -input-charset=default -iso-level 3 
-pad -p 'dvd-handler / growisofs' -sysid 'BACULADATA' -R -M /dev/dvdrw 
/var/spool/bacula/Backup-2006-06-03_24
Executing 'mkisofs -quiet -A Bacula Data -input-charset=default -iso-level 3 
-pad -p dvd-handler / growisofs -sysid BACULADATA -R -C 435328,476800 -M 
/dev/fd/3 /var/spool/bacula/Backup-2006-06-03_24 | builtin_dd of=/dev/dvdrw 
obs=32k seek=29800'
umount: /media/dvd: device is busy
umount: /media/dvd: device is busy
:-( /dev/dvdrw: unable to proceed with recording: unable to unmount

Error while writing part file:  growisofs -use-the-force-luke=notray -quiet 
-use-the-force-luke=4gms -A 'Bacula Data' -input-charset=default -iso-level 3 
-pad -p 'dvd-handler / growisofs' -sysid 'BACULADATA' -R -M /dev/dvdrw 
/var/spool/bacula/Backup-2006-06-03_24 exited with status 144, signal/status 
36864 || errno = 144 (Device or resource busy)

09-Jun 17:28 nic-sd: Marking Volume "Backup-2006-06-03_24" in Error in Catalog.

> If it does bypass
> the error conditions you saw without the previous patch, it stands a
> better chance of maintaining the catalog in a correct state.

A'propos maitaining catalog in a correct state:

WARNING for users of my patch: 

I have tried Kern's patch now, because it seems I have had encountered
effects of catalog broken by my patch -- when trying to restore a file
from my DVD backup I got only "Restore OK -- warning file count
mismatch" and no files were restored. :-( I managed to restore the file
manually (using VIM on the volume files), as other bacula tools
(supposed to help people when things go wrong) failed immediately on the
DVD device. Like this:

$ bls -V Backup-2006-06-03_24 DVD-Writer
bls: butil.c:269 Using device: "DVD-Writer" for reading.
09-Jun 17:49 bls: Fatal Error at dev.c:507 because:
The media in the device "DVD-Writer" (/dev/dvdrw) is not empty, please blank it 
before writing anything to it.
09-Jun 17:49 bls: bls Warning: acquire.c:104 Read open device "DVD-Writer" 
(/dev/dvdrw) Volume "Backup-2006-06-03_24" failed (EIO): ERR=The media in the 
device "DVD-Writer" (/dev/dvdrw) is not empty, please blank it before writing 
anything to it.

$ bscan -V Backup-2006-06-03_24 DVD-Writer
bscan: butil.c:269 Using device: "DVD-Writer" for reading.
09-Jun 17:49 bscan: Fatal Error at dev.c:507 because:
The media in the device "DVD-Writer" (/dev/dvdrw) is not empty, please blank it 
before writing anything to it.
09-Jun 17:49 bscan: bscan Warning: acquire.c:104 Read open device "DVD-Writer" 
(/dev/dvdrw) Volume "Backup-2006-06-03_24" failed (EIO): ERR=The media in the 
device "DVD-Writer" (/dev/dvdrw) is not empty, please blank it before writing 
anything to it.

All these tools, although supposed to read a volume from the media
require me to provide them with _empty_ DVD. This is stupid.


Does Bacula really support DVD media? 
Bacula is a great tool, but with DVDs it is a failure after failure... :-(


Greets,
        Jacek


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to