Amanda-Users

Re: Problem with amflush

2004-02-04 09:18:00
Subject: Re: Problem with amflush
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Wed, 4 Feb 2004 09:16:03 -0500
On Wednesday 04 February 2004 07:20, Rohit wrote:
>> Have you tried to test your tapes and tape-device by just manually
>> tarring stuff onto tapes?
>
>Will this work without overwriting tape label?
>
>$tar -cvf /dev/nst0 ~/home/user/testdirectory/*
>
>Thanks!
>Rohit
Start with a "dd if=/dev/nst0 off=scratch bs=32768 count=1"
then do the "tar -cvf /dev/nst0" etc.
Then to check the recovery, rewind the tape, then do
"dd if=/dev/nst0 bs=32768 count=1" which will read the label out to 
the screen so you can see its still there, then do the tar test 
recovery from there without rewinding the tape.

Thats one way.

One could also use the kept scratch file by using /dev/st0 which will 
rewind the tape, then do the tar -cvf stuffs, check the tar test 
recovery, and when done, rewind and do a "dd if=scratch of=/dev/st0" 
which will restore the tapes label.

The difference is that in the second instance, the label will be 
over-written so you must restore it, the first instance will not so 
it shouldn't need restoration on the tape.

-- 
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.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.

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