Re: amdump to many taper retries
2003-06-26 06:05:25
On Thursday 26 June 2003 05:13, Susanne und Stefan Noll wrote:
>Alexander JOLK wrote:
>>>NOTES:
>>>taper: tape met053 kb 17996640 fm 21 writing file: No space left
>>> on device taper: retrying
>>> localhost:/home/samba/projekte/Laufende.0 on new tape: [writing
>>> file: No space left on device]
>>>taper: tape met055 kb 17488544 fm 1 writing file: Input/output
>>> error taper: retrying localhost:/home/samba/projekte/Laufende.0
>>> on new tape: [writing file: Input/output error]
>>>taper: tape met054 kb 0 fm 0 [OK]
>>
>>You seem to be running out of space on a 20GB tape after 18GB have
>> been written. That sounds a little bit like you are using
>> hardware compression (that actually expands your pre-compressed
>> data when writing to tape). This issue has been discussed several
>> times already on the list.
>>
>>Apart from that, the second error message reads `Input/output
>> error' rather than `No space left', so it might be you ran into a
>> bad tape.
>>
>>Alex
>
>Thanks for your tipps.
>I disabled the hardware compression with:
>mt -f /dev/nst0 compression off
This may be insufficient to make it stay off. It will reset to the
dipswitch set default when the next tape is inserted. So first,
find the dip switch that sets that up and turn it off.
I've found here, on DDS tapes, that a tape once written to with
compression turned on, really wants to be compressed forever and its
rather convoluted to get it turned back off because this is actually
recorded on the tape in a header that apparently only the drive knows
about. Some drives will still report that its on, but only for the
label block even after having been thru this 'fixcomp' script:
---------------
#!/bin/sh
if [ `whoami` != 'root' ]; then
echo
echo "!!!!!!!!!!!!!!!!! Warning !!!!!!!!!!!!!!!!!!"
echo "fixcomp needs to be run by the user root,"
echo "else the perms on some commands will be denied."
echo
exit 1
fi
# I have a seperate from amanda stuff dir where I play with things
# like this.
cd /amanda
# blatently stolen from the bash manual
NUMBERS="0 1 2 3"
for number in $NUMBERS
do
echo "amtape DailySet1 slot "$number
su amanda -c 'amtape DailySet1 slot '$number
# set variable block size
mt -f /dev/nst0 setblk 0
mt -f /dev/nst0 rewind
# ask for a read thats going to be bigger than the label block
# a normal label file is 32k.
dd if=/dev/st0 of=./scratch bs=64K count=1
ls -l ./scratch # show how big if you care
mt -f /dev/nst0 compression off
mt -f /dev/nst0 defcompression -1
# re-write the label blocks with orig info
dd if=./scratch of=/dev/nst0 bs=32K conv=sync
mt -f /dev/nst0 tell # show how many blocks it was
# This _might_ get rid of compressed headers
echo "forcing buffer flush with an 4+ meg write to tape # "$number
# it doesn't always work!
dd if=/dev/zero bs=32K count=130 of=/dev/st0
echo "Now reading the label"
dd if=/dev/st0 bs=32K
mt -f /dev/st0 status
done
exit 0
-------------------
adjust NUMBERS for however many tapes fits in your magazine if you
have a changer. Mine holds 4 tapes and I run this everytime I change
the tapes in the magazine. Or remove the loop completely if doing it
one tape at a time.
--
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz 512M
99.26% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
|
|
|