Dear Julian,

This is good, but we were both referring to in between jobs (after daemon has 
started). The original commands I gave:
mt -f /dev/nst0 setstoptions 0
grep st0 /var/log/messages

Will show you if these settings are being changed indvertedly by either (a) 
bacula or (b) the kernel driver prior
to the restore command (e.g. by the mount command which 'opens' the tape drive).

Best Regards,

Brett
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Cigar
Sent: 14 July 2006 15:38
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Last chance before I throw [EMAIL PROTECTED] 
tapedrivethrough the window ...

In fact I always do this _before_ launching the bacula storage daemon :
mt -f /dev/nst0 stoptions 7
mt -f /dev/nst0 setblk 0


Georger Araujo wrote:
> Judging from the "BB02" string, I suspect it to be a problem with the 
> block size. I've had such problems when I first deployed Bacula, so I 
> ALWAYS set the block size before I mount a tape, and also after I 
> eject it.
> Here's my set_blocksize.sh script:
>
> 8<--cut-here----------------
> #!/bin/sh
> # Set variable block mode (BlockSize = 0) # Fixed block (BlockSize <> 
> 0) is WRONG!
> # If in doubt, run tapeinfo -f /dev/sg0 - BlockSize should be 0 mt -f 
> /dev/nst0 defblksize 0 # Rewind the tape mt -f /dev/nst0 rewind
> ---------------cut-here-->8
>
> Here's my eject_tape.sh script:
>
> 8<--cut-here----------------
> #! /bin/sh
> cd /etc/bacula
> # Set variable block mode
> # If in doubt, run tapeinfo -f /dev/sg0 - should be 0 mt -f /dev/nst0 
> defblksize 0 # Rewind the tape mt -f /dev/nst0 rewind # Eject the tape 
> mt -f /dev/nst0 eject exit 0
> ---------------cut-here-->8
>
> While I'm at it, here's tape_properties.sh ...
>
> 8<--cut-here----------------
> #! /bin/sh
> tapeinfo -f /dev/sg0
> exit 0
> ---------------cut-here-->8
>
> ... and clear_label.sh:
>
> 8<--cut-here----------------
> #!/bin/sh
> # Manually relabel a tape.
> #
> # Run bconsole
> # unmount
> # delete media volume
>
> # Set variable block mode
> # If in doubt, run tapeinfo -f /dev/sg0 - should be 0 mt -f /dev/nst0 
> defblksize 0 # Rewind the tape mt -f /dev/nst0 rewind # Write physical 
> End Of File (EOF) to the tape mt -f /dev/nst0 weof
>
> # Run bconsole
> # label
> # mount
> ---------------cut-here-->8
>
> My Bacula server (director/client/storage): Dell 2800 running RHELAS 4 
> with an IBM LTO-2 tape drive.
> Regards,
>
> Georger
>
> --- [EMAIL PROTECTED] escreveu:
>
>   
>> Dear Julien,
>>
>> The only thing I can suggest now is that you review what happens to 
>> the tape options via:
>>
>> mt -f /dev/nst0 stoptions 0
>> grep st0 /var/log/messages
>>
>> Between backup and restore (i.e. before backup and before restore but 
>> after the mount command) in case they are being reset somehow (by the 
>> mount maybe?).
>>
>> The manual indicates that the error you are getting is possibly 
>> related to block positioning.  As you have indicated it might also be 
>> a kernel issue.
>>
>> Best Regards,
>>
>> Brett
>>     
>
>
>       
>
>
>
>       
>               
> _______________________________________________________
> VocĂȘ quer respostas para suas perguntas? Ou vocĂȘ sabe muito e quer 
> compartilhar seu conhecimento? Experimente o Yahoo! Respostas !
> http://br.answers.yahoo.com/
>
>
> ----------------------------------------------------------------------
> --- Using Tomcat but need to do more? Need to support web services, 
> security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216
> 42 _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to