On 13-aug-2007, at 15:42, John Drescher wrote:

> On 8/13/07, Martijn de Munnik <[EMAIL PROTECTED]> wrote:
>> 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.
>>
> I am very confused at what exactly you are trying to do. I know for a
> fact that you do not have to rewind  LTO media because this media has
> one spool on the drive and a second on the tape so for the drive to
> physically unload the tape the drive performs a rewind.
Oke so rewinding doesn't make any sense...
>
>> 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.
> <snip>
>
> Have you tested the backup by restoring the data somewhere else or run
> a Verify job with job level set at VolumeToCatalog? These errors may
> not actually be errors.
>
> For me just as labeling a brand new tape always produces a read error
> as os gives an error when you try to read past the end of the written
> media and since the tape is blank you can not read anything.
No I did not test to restore the backup but what is happing is that  
when I fill the tape library with new tapes (Bacula is labeling them)  
Bacula starts on the first tape with the backup but soon it needs the  
second tape and so on. The total size of the job is only about 60GB  
but al 8 tapes are needed and the job still is not completed. As you  
can see only about 1GB is written to the tape.
>
> John
>
> John
>
> !DSPAM:46c05fe1195552021624212!
>


-------------------------------------------------------------------------
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

Reply via email to