Amanda-Users

RE: "Rewind" a disk backup "tape"

2004-05-26 14:57:21
Subject: RE: "Rewind" a disk backup "tape"
From: "Byarlay, Wayne A." <wab AT purdue DOT edu>
To: "Paul Bijnens" <paul.bijnens AT xplanation DOT com>
Date: Wed, 26 May 2004 13:53:44 -0500
heh, I found a file called "info", which said:
position 30

I changed it to say "position 1" and it worked! Hopefully this wouldn't
mess it all up... 

-----Original Message-----
From: Paul Bijnens [mailto:paul.bijnens AT xplanation DOT com] 
Sent: Wednesday, May 26, 2004 1:24 PM
To: Byarlay, Wayne A.
Cc: amanda-users AT amanda DOT org
Subject: Re: "Rewind" a disk backup "tape"

Byarlay, Wayne A. wrote:
> 
> I'm using AMANDA 2.4.3, and backing up to disk by faking a chg-multi 
> device. Everything's set up, it's backing up correctly, but I am now 
> trying to restore. I tried to restore a filesystem using amrestore 
> that does not exist... and now, whenever I try to do one that DOES 
> exist, Amanda tells me:
> 
> amrestore: WARNING: not at start of tape, file numbers will be offset
> amrestore:   0: reached end of information
> 
> Yikes! How do I "Rewind" this disk directory that AMANDA thinks is a 
> non-rewinding tape device?

Try:

   ammt -f file:/the/path/to/fake/tape rewind

You can also add these two directives to amanda.conf:

amrecover_do_fsf yes    # this implies a rewind
amrecover_check_label yes

(I'm not sure if this command already existed in 2.4.3; there was at
least a little bug that implied that you need both, or it wouldn't
work.)

-- 
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************




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