Hi, On Thu, 2007-01-25 at 13:39 -0500, Andrew Fabian wrote: > 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. Good to hear that you like things.
> > 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? That is correct. > 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. > Did I read it right. You say that it mounts the filesystem ok but that there is nothing in there? After the mount is /mnt/dvd an empty directory? > 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. > Well I've tested both DVD-R and DVD-RW. > I've also made sure that the system isn't auto-mounting the drive. > Good move. > I've confirmed that writing files to DVDs, manually, via growisofs, > works, and the files are readable later. > Did you try manually executing dvd-handler? It may be that there is a problem is that script. > 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? Sure take a look at http://bridge.oldelvet.org.uk/bacula/BaculaDVDSetup.html Before you go much further there are a couple of things that I can think of: 1 - try ejecting the DVD and reloading it. Linux has a "feature" that it doesn't rescan the block device after a write to the DVD. It may be that the mount cannot see the data that has been written. An eject forces things to get rescanned. 2 - One thing that is missing from your config is MaximumPartSize = 800M; that limits how big each entry (part) written to the DVD is. I don't remember what happens if it is missing but it may be that it will just fill as much as the DVD will take. Hence your first (and second) dvd volumes may have been written without the need to mount the drive to check space and hence bacula didn't notice a problem. Regards Richard > > 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 -- Richard Mortimer <[EMAIL PROTECTED]> ------------------------------------------------------------------------- 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