On Wednesday 13 July 2005 05:33 pm, Mario Ohnewald wrote: > Hello Mike, > > On Wed, 2005-07-13 at 13:24 -0500, Mike Reinehr wrote: > > Mario, > > > > On Wednesday 13 July 2005 12:39 pm, Mario Ohnewald wrote: > > > On Wed, 2005-07-13 at 16:12 +0200, Frederic PIERROT wrote: > > > > Hi, > > > > > > > > At 16:06 13/07/2005, you wrote: > > > > >i am trying to test my backup volume like the tutorial recommends: > > > > > > > > > >btape -c /etc/bacula/bacula-sd.conf /dev/hdc > > > > >Tape block granularity is 1024 bytes. > > > > >btape: butil.c:258 Using device: "/dev/hdc" for writing. > > > > >13-Jul 15:49 btape: Fatal Error at btape.c:330 because: > > > > >dev open failed: Could not open file device "DVD-WRITER" (/dev/hdc). > > > > > No Volume name given. > > > > > > *label > > > Automatically selected Storage: File > > > Enter new Volume name: Test02 > > > Automatically selected Pool: Default > > > Connecting to Storage daemon File at SpiekLap:9103 ... > > > Sending label command for Volume "Test02" Slot 0 ... > > > 3910 Unable to open device "DVD" (/dev/sr0): ERR=dvd.c:363 > > > Label command failed for Volume Test02. > > > Do not forget to mount the drive!!! > > > > > > *run > > > A job name must be specified. > > > The defined Job resources are: > > > 1: Laptop > > > 2: BackupCatalog > > > 3: RestoreFiles > > > Select Job resource (1-3): 1 > > > Run Backup job > > > JobName: Laptop > > > FileSet: Full Set > > > Level: Incremental > > > Client: SpiekLap-fd > > > Storage: File > > > Pool: Default > > > When: 2005-07-13 19:33:25 > > > Priority: 10 > > > OK to run? (yes/mod/no): mod > > > Parameters to modify: > > > 1: Level > > > 2: Storage > > > 3: Job > > > 4: FileSet > > > 5: Client > > > 6: When > > > 7: Priority > > > 8: Pool > > > Select parameter to modify (1-8): 2 > > > Automatically selected Storage: File > > > Run Backup job > > > JobName: Laptop > > > FileSet: Full Set > > > Level: Incremental > > > Client: SpiekLap-fd > > > Storage: File > > > Pool: Default > > > When: 2005-07-13 19:33:25 > > > Priority: 10 > > > OK to run? (yes/mod/no): > > > > > > > > > ------------- > > > Does it automatically use Storage=File because i dont have a working > > > DVD Storage device? > > > > > > eject /dev/sr0 works, and i can write to the dvd with k3b. > > > > > > > >Here my config: > > > > > > > > > >grep -v "^#" bacula-sd.conf > > > > > > > > > >Storage { # definition of myself > > > > > Name = SpiekLap-sd > > > > > SDPort = 9103 # Director's port > > > > > WorkingDirectory = "/var/bacula/working" > > > > > Pid Directory = "/var/run" > > > > > Maximum Concurrent Jobs = 20 > > > > >} > > > > > > > > > >Director { > > > > > Name = SpiekLap-dir > > > > > Password = "yQ7e7PKrz+/HFtH2VWx7yl4PNUWi77RiA5LnhVI4SXtw" > > > > >} > > > > > > > > > >Director { > > > > > Name = SpiekLap-mon > > > > > Password = "Owt19GfAFw+vYqfGI8gAmWCBa7ELqmqd+m0y8KG4JKZ+" > > > > > Monitor = yes > > > > >} > > > > > > > > > > > > > > >Device { > > > > > Name = "DVD-WRITER" > > > > > Media Type = DVD > > > > > Archive Device = /dev/hdc > > > > > LabelMedia = no; # i have already tried YES here, > > > > > too Random Access = Yes; > > > > > AutomaticMount = yes; # when device opened, read it > > > > > RemovableMedia = yes; > > > > > AlwaysOpen = no; > > > > > MaximumPartSize = 800M; > > > > > RequiresMount = yes; > > > > > MountPoint = /cdrom; > > > > > MountCommand = "/bin/mount -t iso9660 -o ro %a %m"; > > > > > UnmountCommand = "/bin/umount %m"; > > > > > SpoolDirectory = /tmp/backup; > > > > > WritePartCommand = "/etc/bacula/dvd-writepart %n %a %v" > > > > > FreeSpaceCommand = "/etc/bacula/dvd-freespace %a %n" > > > > >} > > > > I'm just guessing here, but your mount command indicates type iso9660. > > Does your DVD already have an iso9660 file system written to it? > > No, its a blank DVD RW+ > > > If not, this > > might be the source of your problem. > > So should i remove the MountPoint and MountCommand options? > > I was already in the example config, so i just thought its correct. > > > Thanks, Mario
Mario, Well, yes & no. Basically, the o/s will not be able to mount your dvd at all, until there is a working file system written on the DVD. Last week I would have said that I don't think that just creating an iso9660 file system will solve your problem as it would be a read-only file system, however, there was a thread earlier this week that seemed to indicate that it was possible to write an iso9660 file system "on the fly" with growisofs. I didn't read it in detail so I can't say for certain. Search the archives for a message with the title "DVD Backup Script (Was Re: [Bacula-users] DVD+/-RW as media without bimgmanager?)" from Misty Stanely-Jones. In it she provides a script which writes a backup to a DVD. Alternatively, you could use DVD-RAM. All recent kernels support this type of drive. You treat it just like a hard drive, which is to say, you use mkfs to create the file system of your choice (ext2, ext3, etc.). Then mount and write it. I've even played around with using squashfs to create & write a compressed file system, with mixed results. Cheers! cmr -- Debian 'Sarge': Registered Linux User #241964 ---- "More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC -------- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users