Sorry to keep coming to this list with problems.  The good news is that 
I'm installing Bacula at a few different locations as quickly as I can 
get it running, and using the newest features in Bacula.  And everyone 
likes it.

So today's problem is handling DVD backups.  I've got a backup system 
which runs three jobs every night, sending the backup data to a 
harddrive pool.  I'm trying to make it so that Bacula (v2.0.1) migrates 
old jobs to a DVD pool once the harddrives start filling up.  I *think* 
that the migration job is working perfectly, and that it's not part of 
the problem.  What is going wrong is two things (I think):

1) Say we're migrating two jobs, with sized of 6 gigs and 1 gig, to 
DVDs.  Bacula labels dvd-0001, writes the entire disk, the asks for 
dvd-0002.  I insert a new blank disk, run the mount command, and then it 
writes the rest of the 6 gig job to dvd-0002.  That Migrate job finishes 
successfully.  Since the DVD isn't full, it's status is left as 
'append'.  Bacula now starts migrating the 1 gig job to DVD.  At this 
point, it prompts me, "Please mount Volume "dvd-0002" on Storage Device 
"DVDWriter".  The disk is in there, but I try running unmount and mount 
again.  It prompts me for dvd-0002 over and over again now, and is stuck.

2) I'm under the impression that DVDs are read (for restoring data) by a 
normal filesystem mount?  If so, this isn't working on my system, 
because when I mount (mount -t iso9660 -o ro /dev/scd0 /mnt/dvd), it 
mounts an empty, 350k filesystem.  dvd+rw-mediainfo confirms that the 
entire disk has in fact been written to.

I started working with DVD-R disks, and then switched to DVD+RW, since 
that's what the manual says is most tested.  I got the same results with 
both though.

I've also made sure that the system isn't auto-mounting the drive.

I've confirmed that writing files to DVDs, manually, via growisofs, 
works, and the files are readable later.

Can anyone with a working DVD setup point out what I'm doing wrong?  Or 
just post your config files so I can replicate them and see if it works 
or me?

Thanks again,

Andrew Fabian

----

from bacula-sd.conf:

Device {
  Name = DVDWriter
  Media Type = DVD
  Device Type = DVD
  Archive Device = /dev/scd0
  LabelMedia = yes;
  Random Access = yes;
  AutomaticMount = yes;
  RemovableMedia = yes;
  AlwaysOpen = no;
  RequiresMount = yes;
  MountPoint = /mnt/dvd;
  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
  UnmountCommand = "/bin/umount %m";
  SpoolDirectory = /bkup1/bacula/spool
  WritePartCommand = "/bkup1/bacula/bin/dvd-handler %a write %e %v"
  FreeSpaceCommand = "/bkup1/bacula/bin/dvd-handler %a free"
}

----

from bacula-dir.conf:

Job {
  Name = "MigrateToDVD"
  Type = Migrate
  Level = Full
  JobDefs = "DefaultJob"
  Pool = Default
  Selection Type = PoolOccupancy
}

Storage {
  Name = File
  # Do not use "localhost" here
  Address = 1.2.3.4                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "xxxxx"
  Device = FileStorage
  Media Type = File
}

Storage {
  Name = DVD
  Address = 1.2.3.4
  SDPort = 9103
  Password = "xxxxx"
  Device = DVDWriter
  Media Type = DVD
}

Pool {
  Name = Default
  Pool Type = Backup
  Recycle = no
  AutoPrune = no
  Volume Retention = 36500 days
  LabelFormat = "hd-"
  Maximum Volume Jobs = 1         
  Next Pool = DVD
  Storage = File
  Migration High Bytes = 22000000000
  Migration Low Bytes =  18000000000
}

Pool {
  Name = DVD
  Pool Type = Backup
  Recycle = no
  AutoPrune = no
  Volume Retention = 36500 days
  LabelFormat = "dvd-"
  Storage = DVD
}


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to