Dustin,
I got the same error lastnight.
hertz /gauss/export/users-j lev 3 partial taper: Error writing block:
Mysterious short write on tape device: Tried 2097152, got 1052672
hertz /gauss/export/users-s lev 4 FLUSH while ejecting volume: Can't open
tape device /dev/rmt/0cbn: Device busy
To answer your question I only the " Can't open tape device" when I get "
Mysterious short write" but the reverse is not true and this is because I have
taperflush = 100 and there is not enough data for the second tape.
[56][amandaba...@hertz]:~/daily% mt -f /dev/rmt/0cbn config
"HP Ultrium 2", "HP Ultrium LTO 2", "CFGHPULTRIUMLTO2";
CFGHPULTRIUMLTO2 =
2,0x3B,0,0x18619,4,0x40,0x40,0x42,0x42,3,600,300,600,1200,600,600,18000;
Does anyone know what the max blocksize is for the above LTO2 unit?
>From my documentation the above says that the blocksize is variable. "=
>2,0x3b,0" where the last zero mean variable block size.
I do not see any parameter that says what the max size can be.
I had been using 2048KB, which I had defined in "tapetype", when I was running
Amanda 2.x and never got this error.
So since is thinks that I need to give it 1M I will give it 1M block size.
Q1> Is defining the block size in the "changer" section an ok place to add this
parameter as below?
Q2> Does anyone know what the max blocksize is for the above LTO2 unit?
tapedev "c4"
define changer "c4" {
tpchanger "chg-robot:/dev/changer/0"
changerfile "chg-zd-mtx-state"
property "tape-device" "0=tape:/dev/rmt/0cbn"
property "eject-before-unload" "true"
property "eject-delay" "5"
property "unload-delay" "5"
property "use-slots" "1-30"
property "load-poll" "0s poll 5s until 120s"
device-property "BLOCK_SIZE" "1024k"
}
Thanks for all your help.
Robert
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Dustin J. Mitchell
> Sent: Tuesday, October 05, 2010 2:50 PM
> To: McGraw, Robert P
> Cc: [email protected]
> Subject: Re:
>
>
> On Tue, Oct 5, 2010 at 1:33 PM, McGraw, Robert P <[email protected]>
> wrote:
> > hertz /gauss/export/users-s lev 0 partial taper: Error writing
> block: Mysterious short write on tape device: Tried 2097152, got
> 1052672
> >
> > as amanda hit the end of tape.
>
> .. and you're using a block size (2M) that's bigger than your tape
> drive can handle (1M).
>
> As for the device-busy error, do you get this error if you don't see
> the "Mysterious short write"?
>
> Dustin
>
> --
> Open Source Storage Engineer
> http://www.zmanda.com