> Hi!
> 
> I'm using bacula to backup on DVD. I was using bacula-1.37.40 on a
> gentoo x86 (wihtout any problem) system before and switched to an amd64
> arch. After my switch, i've decided to install the latest stable version
> of bacula (1.38.5). In the 2 scenarios, i'm using the patched version of
> dvd+rw-tools. During the switch, my volume was not full and
> bacula-1.38.5 on gentoo amd64 installation did complete the volume
> wihtout any problem. But after the volume was full, i've put another
> media just to find out that my new installation was not able to label
> media anymore.
> 
> First, a little question to see if i get it right:
> 
> - Does bacula use dvd-handler to label the DVD?
> 
> Cause if i'm right, i'm able to use it to put the label on the DVD;
> 
> /usr/local/bacula/etc/dvd-handler /dev/dvd write 1 NEO_7
> 
> is doing OK and i can mount the DVD after that.
> 
> I've also tried to use my bacula-1.37.40 x86 installation on my amd64
> machine but still no luck. I've also tried to install the latest CVS
> version (1.92) but was not able to compile bacula-sd (scan.c seems
> missing).
> 
> I've attached the debug information of bacula when i try to label a
> media.
> 
> Thanks a lot for your help!
> > saloon-dir: ua_label.c:652 label DVD-WRITER VolumeName=NEO_7 
> > PoolName=Default
> MediaType=DVD Slot=0 drive=-1
> saloon-sd: dircmd.c:194 <dird: label DVD-WRITER VolumeName=NEO_7 
> PoolName=Default
> MediaType=DVD Slot=0 drive=-1saloon-sd: dircmd.c:208 Do command: label
> saloon-sd: dircmd.c:513 Found device DVD-WRITER
> saloon-sd: dircmd.c:551 Found changer device DVD-WRITER
> saloon-sd: dircmd.c:395 Stole device "DVD-WRITER" (/dev/dvd) lock, writing 
> label.
> saloon-sd: dev.c:277 open dev: tape=0 dev_name="DVD-WRITER" (/dev/dvd) 
> vol=NEO_7
> mode=OPEN_READ_WRITE
> saloon-sd: dev.c:283 call open_dvd_device mode=OPEN_READ_WRITE
> saloon-sd: dev.c:470 Enter: open_dvd_dev: DVD dev= mode=OPEN_READ_WRITE
> saloon-sd: dev.c:487 open_dvd_device: num_parts=0, VolCatInfo.VolCatParts=0
> saloon-sd: dvd.c:78 Enter mount_dev
> saloon-sd: dvd.c:125 do_mount_dev: cmd=sudo /bin/mount -t iso9660 -o ro 
> /dev/dvd
> /mnt/dvd mounted=0
> saloon-sd: dvd.c:117 ======= DVD mount=0
> saloon-sd: dvd.c:152 Device "DVD-WRITER" (/dev/dvd) cannot be mounted. 
> ERR=mount:
> wrong fs type, bad option, bad superblock on /dev/dvd,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> 
> 
> saloon-sd: dvd.c:190 open_mounted_dev: ignoring . in /mnt/dvd
> saloon-sd: dvd.c:190 open_mounted_dev: ignoring .. in /mnt/dvd
> saloon-sd: dvd.c:182 open_mounted_dev: failed to find suitable file in dir
> /mnt/dvd (dev="DVD-WRITER" (/dev/dvd))
> saloon-sd: dvd.c:196 open_mounted_dev: got 0 files in the mount point (not
> counting ., .. and .keep)
> saloon-sd: dvd.c:206 ============ DVD mount=0
> saloon-sd: dvd.c:78 Enter mount_dev
> saloon-sd: dvd.c:125 do_mount_dev: cmd=sudo /bin/mount -t iso9660 -o ro 
> /dev/dvd
> /mnt/dvd mounted=0
> saloon-sd: dvd.c:117 ======= DVD mount=0
> saloon-sd: dvd.c:152 Device "DVD-WRITER" (/dev/dvd) cannot be mounted. 
> ERR=mount:
> wrong fs type, bad option, bad superblock on /dev/dvd,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> 
> 
> saloon-sd: dvd.c:190 open_mounted_dev: ignoring . in /mnt/dvd
> saloon-sd: dvd.c:190 open_mounted_dev: ignoring .. in /mnt/dvd
> saloon-sd: dvd.c:182 open_mounted_dev: failed to find suitable file in dir
> /mnt/dvd (dev="DVD-WRITER" (/dev/dvd))
> saloon-sd: dvd.c:196 open_mounted_dev: got 0 files in the mount point (not
> counting ., .. and .keep)
> saloon-sd: dvd.c:206 ============ DVD mount=0
> saloon-sd: dvd.c:248 update_free_space_dev: 
> cmd=/usr/local/bacula/etc/dvd-handler
> /dev/dvd free
> saloon-sd: dvd.c:257 Free space program run : 4689887232
> No Error reported.
> 
> saloon-sd: dvd.c:292 update_free_space_dev: free_space=4689887232 
> freespace_ok=1
> free_space_errno=0 have_media=1
> saloon-sd: dev.c:514 Could not mount device "DVD-WRITER" (/dev/dvd), this is 
> not a
> problem (num_parts == 0), and have media.
> saloon-sd: dev.c:533 open dev: DVD dev= mode=OPEN_READ_WRITE part=0 npart=0
> volcatnparts=0
> saloon-sd: dev.c:535 openmode=2 OPEN_READ_WRITE
> saloon-sd: dvd.c:69 Exit make_dvd_filename: arch=/home/bacula/work/NEO_7
> saloon-sd: dev.c:552 mode=OPEN_READ_WRITE open(/home/bacula/work/NEO_7, 0x42,
> 0640)
> saloon-sd: dev.c:576 after open fd=5
> saloon-sd: dvd.c:559 Enter lseek_dev fd=5 part=0 nparts=0
> saloon-sd: dvd.c:601 lseek_dev SEEK_CUR to 0
> saloon-sd: dvd.c:607 lseek_dev SEEK_CUR returns 0
> saloon-sd: label.c:71 Enter read_volume_label res=0 device="DVD-WRITER" 
> (/dev/dvd)
> vol=NEO_7 dev_Vol=*NULL*
> saloon-sd: dev.c:621 rewind res=0 fd=5 "DVD-WRITER" (/dev/dvd)
> saloon-sd: dvd.c:559 Enter lseek_dev fd=5 part=0 nparts=0
> saloon-sd: dvd.c:569 lseek_dev SEEK_SET to 0 (part_start=0)
> saloon-sd: label.c:138 Big if statement in read_volume_label
> saloon-sd: block.c:884 Full read() in read_block_from_device() len=64512
> saloon-sd: block.c:948 Read device got 0 bytes at 0:0
> saloon-sd: label.c:143 Requested Volume "NEO_7" on "DVD-WRITER" (/dev/dvd) is 
> not
> a Bacula labeled Volume, because: ERR=block.c:953 Read zero bytes at 0:0 on 
> device
> "DVD-WRITER" (/dev/dvd).
> saloon-sd: dev.c:621 rewind res=0 fd=5 "DVD-WRITER" (/dev/dvd)
> saloon-sd: dvd.c:559 Enter lseek_dev fd=5 part=0 nparts=0
> saloon-sd: dvd.c:569 lseek_dev SEEK_SET to 0 (part_start=0)
> saloon-sd: label.c:245 return 2
> saloon-sd: label.c:299 write_volume_label()
> saloon-sd: label.c:305 Label type=0
> saloon-sd: dev.c:621 rewind res=0 fd=5 "DVD-WRITER" (/dev/dvd)
> saloon-sd: dvd.c:559 Enter lseek_dev fd=5 part=0 nparts=0
> saloon-sd: dvd.c:569 lseek_dev SEEK_SET to 0 (part_start=0)
> saloon-sd: label.c:538 Start create_volume_label()
> 
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : NEO_7
> PrevVolName       :
> VolFile           : 0
> LabelType         : PRE_LABEL
> LabelSize         : 0
> PoolName          : Default
> MediaType         : DVD
> PoolType          : Backup
> HostName          : saloon
> Date label written: 10-Feb-2006 17:08
> saloon-sd: label.c:527 Created Vol label rec: FI=PRE_LABEL len=155
> saloon-sd: label.c:341 Wrote label of 155 bytes to "DVD-WRITER" (/dev/dvd)
> saloon-sd: label.c:344 Call write_block_to_dev()
> saloon-sd: block.c:430 binbuf=191 buf_len=64512
> saloon-sd: label.c:349  Wrote block to device
> saloon-sd: dev.c:1504 weof_dev
> 
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : NEO_7
> PrevVolName       :
> VolFile           : 0
> LabelType         : PRE_LABEL
> LabelSize         : 0
> PoolName          : Default
> MediaType         : DVD
> PoolType          : Backup
> HostName          : saloon
> Date label written: 10-Feb-2006 17:08
> saloon-sd: device.c:322 Force close_dev "DVD-WRITER" (/dev/dvd)
> saloon-sd: dev.c:1685 really close_dev "DVD-WRITER" (/dev/dvd)
> saloon-sd: dvd.c:93 Enter unmount_dev
> saloon-sd: dircmd.c:194 <dird: mount DVD-WRITER drive=-1saloon-sd: 
> dircmd.c:208 Do
> command: mount
> saloon-sd: dircmd.c:513 Found device DVD-WRITER
> saloon-sd: dircmd.c:551 Found changer device DVD-WRITER
> saloon-sd: dircmd.c:576 mount cmd blocked=0
> saloon-sd: dvd.c:78 Enter mount_dev
> saloon-sd: dvd.c:125 do_mount_dev: cmd=sudo /bin/mount -t iso9660 -o ro 
> /dev/dvd
> /mnt/dvd mounted=0
> saloon-sd: dvd.c:117 ======= DVD mount=0
> saloon-sd: dvd.c:152 Device "DVD-WRITER" (/dev/dvd) cannot be mounted. 
> ERR=mount:
> wrong fs type, bad option, bad superblock on /dev/dvd,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> 
> 
> saloon-sd: dvd.c:190 open_mounted_dev: ignoring . in /mnt/dvd
> saloon-sd: dvd.c:190 open_mounted_dev: ignoring .. in /mnt/dvd
> saloon-sd: dvd.c:182 open_mounted_dev: failed to find suitable file in dir
> /mnt/dvd (dev="DVD-WRITER" (/dev/dvd))
> saloon-sd: dvd.c:196 open_mounted_dev: got 0 files in the mount point (not
> counting ., .. and .keep)
> saloon-sd: dvd.c:206 ============ DVD mount=0
> saloon-sd: mem_pool.c:363 garbage collect memory pool
> saloon-dir: job.c:805 Start dird free_jcr
> saloon-dir: job.c:814 End dird free_jcr
> saloon-dir: mem_pool.c:363 garbage collect memory pool
> 

Please check the bacula list archives (user and devel) if you have not already. 
I
along with others have had these same problems and there are several threads 
about
this subject. 

John


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to