Amanda-Users

Re: Question about changing Tape Drive

2005-09-30 11:17:53
Subject: Re: Question about changing Tape Drive
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Fri, 30 Sep 2005 11:15:55 -0400
On Friday 30 September 2005 04:34, Paul Bijnens wrote:
>Montagni, Giovanni wrote:
>> I have changed our tape drive, because it started to fail to write on
>> tape. I have changed it with the same model.
>>
>> After sostitution, amanda cannot recognise the tape, every day it give
>> me error like "Not an amanda tape", and i have to amrmtape then
>> amlabel the tape again.
>>
>> Is it possible to solve this problem?
>
>First, can you read the tape with "dd"?
>Try to read the label:
>
>   dd if=/dev/st0 bs=32k count=1
>
>Is the label you see correct?
>
>A frequent problem is blocksize difference.
>
>I work in variable blocksize.
>On linux:
>  mt -t /dev/st0 defblksize 0 # add this in /etc/rc.*/* somewhere
>  mt -t /dev/st0 setblk 0 # or this just before handling tape

Bear in mind that many drives will reset this to their default when
the tape is changed, so it needs to be done after the tape is
inserted and the drive has recognized it.

>
>If your tapes were written with a fixed blocksize, you should
>use that value again (or relabel the tapes, and switch to variable
>blocksize).

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.35% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.