Hello, On 5/18/2007 5:23 PM, Lucio Crusca wrote: > Hello *, > > I've a problem with my 1st bacula installation (quite normal I suppose). I'm > running bacula 2.0.3 on Debian Etch/i386. It has to backup a single folder on > DVD, classic full/monthly, diff/weekly, incr/daily schema. > > When I enter bacula-console I try a test backup with the "run" command. > bacula-sd closes the DVD tray but never starts writing.
It's a while ago that I played with DVD writing, but perhaps some helpful hints: > If I ask "status 2" I get (among other things): > > Device status: > Device "DVD-Writer" (/dev/hdb) is not open. > Device is being initialized. > > for a few seconds, and then: > > Running Jobs: > Writing: Incremental Backup job Client1 JobId=13 Volume="Backup-0003" > pool="Default" device=""DVD-Writer" (/dev/hdb)" > spooling=0 despooling=0 despool_wait=0 > Files=0 Bytes=0 Bytes/sec=0 > FDReadSeqNo=6 in_msg=6 out_msg=4 fd=6 > > [...] > > Device status: > Device "DVD-Writer" (/dev/hdb) is not open. > Device is BLOCKED waiting for media. Are there any messages regarding this job? > But I've put in bacula-sd.conf : > > Device { > Name = "DVD-Writer" > Media Type = DVD > Archive Device = /dev/hdb > LabelMedia = yes; # lets Bacula label unlabeled media > Random Access = Yes; > AutomaticMount = yes; # when device opened, read it > RemovableMedia = yes; > AlwaysOpen = no; > MaximumPartSize = 800M; > RequiresMount = yes; > MountPoint = /media/cdrom0; > # MountCommand = "/bin/mount -t iso9660 -o ro %a %m"; > MountCommand = "/bin/mount %a"; > UnmountCommand = "/bin/umount %m"; > SpoolDirectory = /tmp/backup; > WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v" > FreeSpaceCommand = "/etc/bacula/dvd-handler %a free" > } > > so the SD should label the media on my behalf, right? It should work if you've enabled it in the DIR too. Then, you probably need a patched version of the dvd+rw-tools. Finally, try running the commands from your configuration from the shell, as the user the SD runs as. Make sure your mount an unmount commands work (they most likely do). Try the free space command: '/etc/bacula/dvd-handler /dev/hdb free ; echo $?' It should return a reasonable number of free space on the disk and an error code of zero. If it doesn't, verify the disk is empty and your dvd+rw-mediainfo (IIRC) works correctly. Then, he the write command to write a reasonably sized file to an empty disk. Note that from my experience the file must not be too small - some 100 MB might be the reasonable minimum. Finally, if these all work correctly, enable debug output in the SD and see if there are any DVD related messages that indicate problems. Arno -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users