Hello List!

I am running a freshly compiled and installed bacula 1.38.3 on
ubuntu-server 5.10. I use a DVD-RAM device and media which i created
with mkfs.ext3 /dev/hdd.

I get the following error after starting a job:
----------------------------
Please mount Volume "RT_Backup_volume0001" on Storage Device
"DVD-Storage" (/dev/hdd) for Job Client1.2006-01-05_23.54.00


Here is my device config definition:
---------------------------------------

Device {
  Name = DVD-Storage;
  Media Type = DVD;
  Archive Device = /dev/hdd;
  LabelMedia = yes;                   
  Random Access = Yes;
  AutomaticMount = yes;               
  RemovableMedia = yes;
  AlwaysOpen = no;
  Requires Mount = Yes;
  Mount Point = /media/cdrom0;
  Mount Command = "/bin/sh -c '/bin/mount -o rw %a %m 1>>/tmp/1
2>>/tmp/2'";
  Unmount Command = "/bin/sh -c '/bin/umount %m 1>>/tmp/1 2>>/tmp/2'";
  MaximumPartSize = 800M;
  SpoolDirectory = /tmp/backup;
  WritePartCommand = "/bin/sh -c '/sbin/dvd-handler %a write 1 %v
1_write>>/tmp/1 2>>/tmp/2_write'";
  FreeSpaceCommand = "/bin/sh -c '/sbin/dvd-handler %a free
1>>/tmp/1_free 2>>/tmp/2_free'";

#  WritePartCommand = "/bin/sh -c '/bin/echo %a write %e %v
1_write>>/tmp/1 2>>/tmp/2_write'"
#  FreeSpaceCommand = "/bin/sh -c '/bin/echo %a free 1>>/tmp/1_free
2>>/tmp/2_free'"
}


I have debugged it pretty well with echos and stuff, and i am pretty
sure the scripts get called fine.


Here is my debug output from my bacula-sd:
-------------------------------------------
rt-sd: askdir.c:242 >dird: CatReq Job=Client1.2006-01-05_23.54.00
FindMedia=1 pool_name=Default media_type=DVD
rt-sd: askdir.c:165 <dird 1000 OK VolName=RT_Backup_volume0001 VolJobs=0
VolFiles=0 VolBlocks=0 VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=0
MaxVolBytes=0 VolCapacityBytes=0 VolStatus=Append Slot=0 MaxVolJobs=0
MaxVolFiles=0 InChanger=0 VolReadTime=0 VolWriteTime=0 EndFile=0
EndBlock=0 VolParts=0 LabelType=0
rt-sd: dev.c:277 open dev: tape=0 dev_name="DVD-Storage" (/dev/hdd)
vol=RT_Backup_volume0001 mode=OPEN_READ_WRITE
rt-sd: dev.c:283 call open_dvd_device mode=OPEN_READ_WRITE
rt-sd: dev.c:470 Enter: open_dvd_dev: DVD dev= mode=OPEN_READ_WRITE
rt-sd: dev.c:487 open_dvd_device: num_parts=0, VolCatInfo.VolCatParts=0
rt-sd: dvd.c:78 Enter mount_dev
rt-sd: dvd.c:78 Enter mount_dev
rt-sd: dvd.c:248 update_free_space_dev: cmd=/bin/sh -c
'/sbin/dvd-handler /dev/hdd free 1>>/tmp/1_free 2>>/tmp/2_free'
rt-sd: dvd.c:257 Free space program run :
rt-sd: dvd.c:292 update_free_space_dev: free_space=0 freespace_ok=1
free_space_errno=0 have_media=1
rt-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found . (versus
RT_Backup_volume0001)
rt-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found .. (versus
RT_Backup_volume0001)
rt-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found lost+found
(versus RT_Backup_volume0001)
rt-sd: dvd.c:824 check_can_write_on_non_blank_dvd: got 3 files in the
mount point (matched=0)
rt-sd: dvd.c:93 Enter unmount_dev
rt-sd: askdir.c:242 >dird: CatReq Job=Client1.2006-01-05_23.54.00
FindMedia=1 pool_name=Default media_type=DVD
rt-sd: askdir.c:165 <dird 1000 OK VolName=RT_Backup_volume0001 VolJobs=0
VolFiles=0 VolBlocks=0 VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=0
MaxVolBytes=0 VolCapacityBytes=0 VolStatus=Append Slot=0 MaxVolJobs=0
MaxVolFiles=0 InChanger=0 VolReadTime=0 VolWriteTime=0 EndFile=0
EndBlock=0 VolParts=0 LabelType=0
rt-sd: dvd.c:93 Enter unmount_dev
rt-sd: wait.c:51 Enter blocked=BST_DOING_ACQUIRE



Is it possible that the dvd-handle script detects my "rewriteable" DVD
and tries to find a previous RT_Backup_volume0001 Volume? 

What else could i do to debug this?

Thanks, Mario



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to