rwk AT americom DOT com wrote:
I am trying to run amanda 2.4.2 on Linux RH8.0 using an Onstream ADR50
drive.
I am having problems and I have tracked it down to a variable block
size issue. for example, if I do the following:
mt -f /dev/nst0 setblk 0
dd if=/etc/termcap of=/dev/nst0 bs=32k
22+1 records in
22+1 records out
dd: closing output file `/dev/nst1': Input/output error
It fails to write the last block (which is a short block). Then I run:
dd if=/dev/nst0 of=/tmp/test bs=32k
dd: reading `/dev/nst1': Input/output error
22+0 records in
22+0 records out
and /tmp/test is missing the last part of /etc/termcap.
Has anyone else had this problem and does anyone know how to solve it.
If the blocksize is indeed the problem, then you have the solution
already!
Set the blocksize to variable BEFORE you write to the tape!
E.g. set something to the machine bootsequence to execute
"mt ... defblksize 0" and/or make a little "runamdump" command
that issues a "mt ... setblk 0; amdump yourconfig"... etc.
Needless to say it causes amanda to fail.
When it tries to read the tapelabel? Maybe you have to relabel
your tapes with the variable blocksize set first.
--
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 *
***********************************************************************
|