Hi,

On 6/16/2007 6:23 PM, [EMAIL PROTECTED] wrote:
> Hello List,
> 
> once again, the DVD Media issue :)
> This time i will try to get it right, explain it well and define my 
> requirements.
> 
> My original goal was to write to DVD-R or DVD-RW.
> Since bacula does not:
> a) carry on the backup even if the DVD-Media is full
> b) catch up on the Volumes which need top be written to DVD

Both these issues would be bugs, IMO. In fact I am sure both does work 
in some installations.

Have you tried debugging this using debug output of the SD at a 
reasonably high level?

> --> i decided to give DVD-RAM a try.
> We already have a DVD-RAM Handler script here which does tackle the 
> Problem b).
> You need to pass the Files as arguments to the script.
> 
> My Problem now:
> -------------------
> I) If i use FileStorage, the %v Variable will only print the LAST Volume
> II) If i use the DVD Storage (which has the %v variable as i want it to 
> be), then bacula looks for the last written Volume, so that i can append 
> to it.
> 
> It looks like there is no proper solution to I) (well, Kern could 
> implement it :P )
> I think the DVD Storage (II) is the way to go. I just need to trick 
> bacula, so that it runs my dvd-ram-handler script with the volumes as 
> arguments.

The DVD handler script writes its data in "slices" to the so-calles part 
files. That's wjat the SD expects, and thats what the %v variable is for 
- it hlds the name of the current part file.

If you use a DVD handler script that conforms to Baculas implementation, 
that would not be a problem, I suppose.

Otherwise, if you want to write the files in a job-related script, you 
might have to follow my suggestion to use the job id and fnd the related 
volume files yourself.

> 
> Right now i am stuck with this:
> ----------------------------------
> No prior or suitable Full backup found in catalog. Doing FULL backup.
> Pool Default created in database.
> ...
> Created new Volume "Volume0001" in catalog.
> Please mount Volume "Volume0001" on Storage Device "DVD Writer" 
> (/dev/hda) for Job Client1.2007-06-16_18.20.36
> 
> Why does it ask for Volume0001? Because it want to append to it?

Right. The SD can only commence when it has a usable volume, and that 
volume has been automatically created the instance before. Now you only 
have to supply the physical disk that will hold the volume.

> 
> Here is my SD config:
> ---------------------------
> Device {
>   Name = "DVD Writer"
>   Media Type = DVD
>   Archive Device = /dev/hda
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
>   Random Access = Yes;
>   AutomaticMount = yes;               # when device opened, read it
>   RemovableMedia = yes;
>   AlwaysOpen = no;
>   MaximumPartSize = 20M;
>   RequiresMount = yes;
>   MountPoint = /mnt/cdrom;
>   MountCommand = "/bin/umount %a ; /bin/mount %a %m";
>   UnmountCommand = "/bin/umount %m";
>   SpoolDirectory = /tmp/backup;
>   WritePartCommand = "/usr/bin/rsync -avz %v %m"  --> this will be 
> replaced it the proof of concept works.
>   FreeSpaceCommand = "/bin/umount %a ; /bin/mount %a %m && /bin/df | 
> grep %a | awk '{print $4}' && /bin/umount %a"
> }

As you use a non-standard way of handling the volumes and device, you'll 
probably have to debug this yourself...

You might have better results in the end if you asked for support 
getting the standard setup to work for you.

Arno

> My Pool:
> -----------
> # Default pool definition
> Pool {
>   Name = Default
>   Pool Type = Backup
>   Recycle = no                       # Bacula can automatically recycle 
> Volumes
>   AutoPrune = no                     # Prune expired volumes
>   Volume Retention = 365 days         # one year
>   LabelFormat = "Volume"
>   UseVolumeOnce = yes
> }
> 
> 
> Cheers,  Mario
> 
> -------------------------------------------------------------------------
> 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

-- 
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

Reply via email to