Hi, I'm trying to setup a backup server and face the following problem. I already setup a Bacula system using a Exabyte VXA tape library. This system is using a Seagate LTO library and I get this error when using the tapes (only a small amount of data is written on the tape). The tapes are before with another system (a windows backup system) and I cleaned them all using the following script:
### begin cleanalltapes ### #!/usr/bin/bash ### Where are the binaries MTXCHANGER=/opt/csw/etc/bacula/mtx-changer MTX=/opt/csw/sbin/mtx MT=/usr/bin/mt CHANGER=/dev/scsi/changer/c3t5d0 DRIVE=/dev/rmt/0 SVCADM=/usr/sbin/svcadm SVCNAME=cswbacula TIME="time -p" ### The script echo "Disabling Bacula" $SVCADM disable $SVCNAME echo "Unloading current tape" $TIME $MTX -f $CHANGER unload for i in 1 2 3 4 5 6 7 8 do echo "Loading tape $i" $TIME $MTXCHANGER $CHANGER load $i $DRIVE 0 echo "Retension the tape" $TIME $MT -f $DRIVE retension echo "Writing 2 eof marks to remove the label" $TIME $MT -f $DRIVE weof 2 echo "Rewinding the tape" $TIME $MT -f $DRIVE rewind echo "Unloading tape $i" $TIME $MTXCHANGER $CHANGER unload $i $DRIVE 0 done echo "Enabling Bacula" $SVCADM enable $SVCNAME ### end cleanalltapes ### I replaced the first rewind with a retension command but that doesn't help. loading the tape takes about 56.16 seconds retension takes about 289.94 seconds writing 2 eof takes about 7.19 seconds rewinding takes about 0.02 seconds unloading the tape takes about 36.72 seconds I don't get any errors with this script. this is the error when running a backup: 12-Aug 16:37 popa-dir: No prior Full backup Job record found. 12-Aug 16:37 popa-dir: No prior or suitable Full backup found in catalog. Doing FULL backup. 12-Aug 16:37 popa-dir: Start Backup JobId 42, Job=YoungGuns_Linux. 2007-08-12_16.37.47 12-Aug 16:45 popa-sd: YoungGuns_Linux.2007-08-12_16.37.47 Error: block.c:569 Write error at 1:15157 on device "Certance LTO Drive" (/ dev/rmt/0cbn). ERR=I/O error. 12-Aug 16:45 popa-sd: YoungGuns_Linux.2007-08-12_16.37.47 Error: Error writing final EOF to tape. This Volume may not be readable. dev.c:1688 ioctl MTWEOF error on "Certance LTO Drive" (/dev/rmt/ 0cbn). ERR=I/O error. 12-Aug 16:45 popa-sd: End of medium on Volume "TAPE0017" Bytes=977,937,408 Blocks=15,158 at 12-Aug-2007 16:45. 12-Aug 16:46 popa-sd: 3307 Issuing autochanger "unload slot 1, drive 0" command. 12-Aug 16:47 popa-sd: 3304 Issuing autochanger "load slot 2, drive 0" command. 12-Aug 16:48 popa-sd: 3305 Autochanger "load slot 2, drive 0", status is OK. 12-Aug 16:48 popa-sd: 3301 Issuing autochanger "loaded? drive 0" command. 12-Aug 16:48 popa-sd: 3302 Autochanger "loaded? drive 0", result is Slot 2. 12-Aug 16:48 popa-sd: Labeled new Volume "TAPE0018" on device "Certance LTO Drive" (/dev/rmt/0cbn). 12-Aug 16:49 popa-sd: Wrote label to prelabeled Volume "TAPE0018" on device "Certance LTO Drive" (/dev/rmt/0cbn) 12-Aug 16:49 popa-sd: New volume "TAPE0018" mounted on device "Certance LTO Drive" (/dev/rmt/0cbn) at 12-Aug-2007 16:49. 12-Aug 17:06 popa-sd: YoungGuns_Linux.2007-08-12_16.37.47 Error: block.c:569 Write error at 0:9205 on device "Certance LTO Drive" (/ dev/rmt/0cbn). ERR=I/O error. 12-Aug 17:06 popa-sd: YoungGuns_Linux.2007-08-12_16.37.47 Error: Error writing final EOF to tape. This Volume may not be readable. dev.c:1688 ioctl MTWEOF error on "Certance LTO Drive" (/dev/rmt/ 0cbn). ERR=I/O error. 12-Aug 17:06 popa-sd: End of medium on Volume "TAPE0018" Bytes=593,832,960 Blocks=9,204 at 12-Aug-2007 17:06. 12-Aug 17:08 popa-sd: 3307 Issuing autochanger "unload slot 2, drive 0" command. 12-Aug 17:08 popa-sd: 3304 Issuing autochanger "load slot 3, drive 0" command. 12-Aug 17:09 popa-sd: 3305 Autochanger "load slot 3, drive 0", status is OK. 12-Aug 17:09 popa-sd: 3301 Issuing autochanger "loaded? drive 0" command. 12-Aug 17:09 popa-sd: 3302 Autochanger "loaded? drive 0", result is Slot 3. 12-Aug 17:10 popa-sd: Labeled new Volume "TAPE0019" on device "Certance LTO Drive" (/dev/rmt/0cbn). 12-Aug 17:10 popa-sd: Wrote label to prelabeled Volume "TAPE0019" on device "Certance LTO Drive" (/dev/rmt/0cbn) 12-Aug 17:10 popa-sd: New volume "TAPE0019" mounted on device "Certance LTO Drive" (/dev/rmt/0cbn) at 12-Aug-2007 17:10. 12-Aug 17:11 popa-sd: YoungGuns_Linux.2007-08-12_16.37.47 Error: block.c:569 Write error at 0:2760 on device "Certance LTO Drive" (/ dev/rmt/0cbn). ERR=I/O error. 12-Aug 17:11 popa-sd: YoungGuns_Linux.2007-08-12_16.37.47 Error: Error writing final EOF to tape. This Volume may not be readable. dev.c:1688 ioctl MTWEOF error on "Certance LTO Drive" (/dev/rmt/ 0cbn). ERR=I/O error. 12-Aug 17:11 popa-sd: End of medium on Volume "TAPE0019" Bytes=178,053,120 Blocks=2,759 at 12-Aug-2007 17:11. 12-Aug 17:11 popa-sd: 3307 Issuing autochanger "unload slot 3, drive 0" command. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users