Amanda-Users

Re: R: Question about changing Tape Drive

2005-09-30 11:58:01
Subject: Re: R: Question about changing Tape Drive
From: Alexander Jolk <alexj AT buf DOT com>
To: "Montagni, Giovanni" <gmontagni AT manord DOT com>
Date: Fri, 30 Sep 2005 17:55:34 +0200
Montagni, Giovanni wrote:
define tapetype olddrive {
    comment "just produced by tapetype prog (hardware compression on)"
    length 1604 mbytes
    filemark 0 kbytes
    speed 393 kps
}

define tapetype newdrive {
    comment "just produced by tapetype prog (hardware compression off)"
    length 1949 mbytes
    filemark 267 kbytes
    speed 166 kps
}
As you can see, the drive is similar, but not identical. So the question is: if 
i set blocksize (blocksize = filemark?) to 0, i am able to read the tape? or i 
have lost my backups?

blocksize has nothing to do with filemark. And for reading the tape, the tapetype definition isn't actually needed; you must be able to read data from the tape `by hand' using Paul's suggestions. If that doesn't work, you won't be able to get your data.

So please try reading the label:
mt -f /dev/nst0 rewind
dd if=/dev/nst0 bs=32k count=1

(assuming your tape lives at /dev/nst0 which I don't remember)
If that doesn't give you the correct tape label in a human readable format, something's afoul. Have a look into the system log for possible causes; try playing around with different blocksizes as well.

You need to debug this first before going back to amanda's config.

Alex


--
Alexander Jolk  * BUF Compagnie * alexj AT buf DOT com
Tel +33-1 42 68 18 28  *  Fax +33-1 42 68 18 29

<Prev in Thread] Current Thread [Next in Thread>