Hi Paul,
Thanks for the suggestion. I changed the block size to zero, as
per below output. Prior to this, it would appear that it was set
to 512 bytes (not sure where you got 9 from ?).
=================================
[root@phantom root]# /bin/mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=64, partition=0.
Tape block size 512 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN
[root@phantom root]# /bin/mt -f /dev/nst0 setblk 0
[root@phantom root]# /bin/mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=64, partition=0.
Tape block size 0 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN
[root@phantom root]#
=================================
I then tried labelling the tape with no joy as below. I erased
the tape and tried labelling again with the same response. What
seems strange, is that when I to label the first time it says
"are you sure /dev/nst0 is non-rewinding". I then run the exact
same command again and it works.
Is there any other way to erase a tape, apart from using
"/bin/mt erase" ?
=================================
bash-2.05a$ /usr/sbin/amlabel daily daily01fri
rewinding, reading labelamlabel: strange amanda header: "AMANDA:
T"
, not an amanda tape
rewinding, writing label daily01fri, checking labelamlabel:
strange amanda header: "AMANDA: T"
amlabel: no label found, are you sure /dev/nst0 is
non-rewinding?
bash-2.05a$ /usr/sbin/amlabel daily daily01fri
rewinding, reading label daily01fri
rewinding, writing label daily01fri, checking label, done.
bash-2.05a$
=================================
amcheck still reports the same:
=================================
bash-2.05a$ /usr/sbin/amcheck daily
Amanda Tape Server Host Check
-----------------------------
Holding disk /tmp: 394696 KB disk space available, that's plenty
amcheck-server: strange amanda header: "AMANDA: T"
ERROR: /dev/nst0: not an amanda tape
(expecting tape daily01tue or a new tape)
=================================
I seem to be losing ground. What does anyone think about getting
the tape drive serviced/replaced (ie. what are the possibilities
of it being a hardware problem and nothing to do with Amanda ?)
regards,
Tony.
--- Paul Bijnens <paul.bijnens AT xplanation DOT com> wrote: > Tony
wrote:
>
>
> > amcheck-server: strange amanda header: "AMANDA: T"
> > ERROR: /dev/nst0: not an amanda tape
> > (expecting tape daily01tue or a new tape)
> >
>
> This seems to me like a blocksize problem. (Not 100% sure,
> because your blocksize seems to be 9 bytes!?!??, very
> uncommon.)
>
> As long as the read blocksize, the write blocksize and the
> tape blocksize is the same, you won't notice any problem.
> You can configure a tape driver with fixed blocksizes on tape;
> but when doing this, the behavior of different OS'es when
> reading
> or writing such tapes is quiet different (and still not clear
> to me!).
>
> When reading a tape, it usually works if your read blocksize
> is
> at least as big as the tape blocksize. When writing a tape,
> different OS'es do different things: split the buffer over
> different
> blocks, or even simply trowing away the excess bytes!
> What happens with the padded bytes in the last block is even
> more
> unclear.
>
> To avoid all the confusion, I usually use variable blocksize
> on tape
> (indicated by a zero), and let amanda use it's default
> blocksize
> of 32Kbytes on such tapes.
>
> What is the current blocksize of your tape? Try:
> mt -f /dev/st0 status
>
> And set it to variable blocksize with:
> mt -f /dev/st0 blocksize 0
>
> For Linux, you should configure the blocksize (and
> compression) defaults
> for your tapedrives in the file /etc/stinit.def.
> Finding a decent explanation of the contents of that file is
> still
> on my todo list. Google around for "stinit.def amanda" and it
> will
> show up some interesting pages.
>
> --
> Paul Bijnens, Xplanation Tel +32
> 16 397.511
> Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32
> 16 397.512
> http://www.xplanation.com/ email:
> Paul.Bijnens AT xplanation DOT com
>
***********************************************************************
> * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z,
> ^Q, F6, *
> * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye,
> /bye, *
> * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort,
> hangup, *
> * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$,
> shutdown, *
> * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A,
> ... *
> * ... "Are you sure?" ... YES ... Phew ... I'm out
> *
>
***********************************************************************
>
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
|