Amanda-Users

Re: Please help: amrecover says file is there, amidxtaped says its not!

2004-10-29 14:04:40
Subject: Re: Please help: amrecover says file is there, amidxtaped says its not!
From: "David Trusty" <dwtrusty AT hotmail DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 29 Oct 2004 12:54:45 -0500
Eric,

You're right.  Here is the output of amrestore:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# amrestore /dev/nst0 bogus
amrestore:   0: skipping start of tape: date 20041012 label DailySet3-012
amrestore:   1: skipping ribo._home_jlaidlaw.20041012.1
amrestore:   2: skipping ribo._home_fondon.20041012.1
amrestore:   3: skipping ribo._home_monica.20041012.1
amrestore:   4: skipping ribo._home_jlewis.20041012.1
amrestore:   5: skipping genetics._mnt_sglab_monica_MISC.20041012.1
amrestore:   6: skipping genetics._mnt_sglab_root.20041012.1
amrestore:   7: skipping genetics._mnt_sglab_monica_DATADIR__7.20041012.1
amrestore:   8: skipping genetics._mnt_sglab_nagendra.20041012.1
amrestore:   9: skipping genetics._mnt_sglab_monica.20041012.2
amrestore:  10: skipping genetics._mnt_sglab_yunlian.20041012.1
amrestore:  11: skipping genetics._mnt_sglab_jhicks.20041012.1
amrestore:  12: skipping genetics._mnt_sglab_jlaws1.20041012.1
amrestore:  13: skipping genetics._home_pga_scripts.20041012.1
amrestore:  14: skipping genomics._etc_amanda_Daily.20041012.1
amrestore:  15: skipping genetics._mnt_sglab_sossowski.20041012.1
amrestore:  16: skipping genetics._mnt_sglab_karwai.20041012.1
amrestore:  17: skipping genetics._home_pga_bin.20041012.1
amrestore:  18: skipping genetics._mnt_xfs_mirror_Admin.20041012.1
amrestore:  19: skipping genetics._mnt_sglab_wren.20041012.1
amrestore:  20: skipping genetics._mnt_sglab_lflood.20041012.1
amrestore:  21: skipping ribo._home_www.20041012.1
amrestore:  22: skipping genetics._mnt_sglab_etblast.20041012.1
amrestore:  23: skipping genetics._mnt_sglab_monica_DATADIR__3.20041012.1
amrestore:  24: skipping genetics._mnt_sglab_pchakr.20041012.1
amrestore:  25: skipping genetics._mnt_sglab_burkart.20041012.1
amrestore:  26: skipping localhost._mnt_lethargy.20041012.1
amrestore:  27: skipping localhost._mnt_progress.20041012.1
amrestore:  28: skipping genomics._data_sossowski.20041012.2
amrestore:  29: skipping invention._var_www_html.20041012.2
amrestore:  30: skipping genetics._mnt_sglab_balog.20041012.2
amrestore:  31: skipping innovation._home_sites.20041012.1
amrestore:  32: skipping genetics._mnt_sglab_monica_DATADIR__6.20041012.1
amrestore:  33: skipping genetics._mnt_sglab_monica_DATADIR__5.20041012.1
amrestore:  34: skipping genetics._mnt_sglab_monica_DATADIR__1.20041012.1
amrestore:  35: skipping genetics._mnt_sglab_jlewis.20041012.1
amrestore:  36: reached end of information
[root@genomics recover]#
[root@genomics recover]#
[root@genomics recover]# amrestore /dev/nst0 bogus
amrestore: WARNING: not at start of tape, file numbers will be offset
amrestore:   0: skipping genetics._home_root.20041012.1
amrestore:   1: skipping genetics._home_jyoti.20041012.1
amrestore:   2: skipping explore._usr_local_GeNet_data.20041012.1
amrestore:   3: skipping genetics._mnt_sglab_ryan.20041012.2
amrestore:   4: skipping genetics._home_httpd.20041012.1
amrestore:   5: skipping genetics._mnt_sglab_scrozier.20041012.2
amrestore:   6: skipping genetics._mnt_sglab_jlaidlaw.20041012.1
amrestore:   7: skipping genetics._mnt_sglab_fondon.20041012.3
amrestore:   8: skipping spore._home_sites.20041012.1
amrestore:   9: skipping discovery._home_.sites.20041012.1
amrestore:  10: skipping invention._var_www_cgi-bin.20041012.0
amrestore:  11: skipping genetics._mnt_sglab_monica_DATADIR__4.20041012.0
amrestore:  12: skipping genetics._mnt_sglab_monica_DATADIR__2.20041012.0
amrestore:  13: skipping genetics._mnt_sglab_dtrusty.20041012.0
amrestore:  14: skipping storm._home_scrozier.20041012.0
amrestore:  15: reached end of tape: date 20041012
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks!!

David


From: Eric Siegerman <erics AT telepres DOT com>
To: amanda-users AT amanda DOT org
Subject: Re: Please help: amrecover says file is there, amidxtaped says its not!
Date: Fri, 29 Oct 2004 00:46:53 -0400

On Thu, Oct 28, 2004 at 10:43:38PM -0500, David Trusty wrote:
> For some reason, there are two sets of files written to the
> same tape, for the same date.  These files are separated
> with (I believe) with some sort of eof marker.

Or, by something else that amrestore *mistakes* for such a
marker.  I haven't looked at the code, but a zero-length file
could possibly have that effect, and your tape does seem to
contain one of those in just the right place :-)

> 3. Do another "amrestore".  This restore can get the 51 disks
> which are in the "retry" dump.

Are you sure the second set contains all 51 DLEs?  It would make
more sense if it contained only the 15 DLEs that weren't in the
first set.  That would be consistent with the log file you
posted, and also with how I'd expect Amanda to work -- if a DLE
failed, Amanda might retry that DLE, but not all the ones it had
already successfully taped!

The output from the *successful* amrestore would settle the
question.  If you don't still have it, you can get the same
output a lot more quickly by running:
    amrestore [opts] /dev/whatever bogus
where "bogus" is a a host-name that does NOT appear on the tape.
That will search for the backups of host "bogus", fail to find
them of course, but print a list of the tape's contents as a side
effect.  Of course you'll have to run that amrestore command
twice, just like the real one...

(Come to think of it, I think there are only 50 DLEs in total on
the tape, since one DLE failed in the estimate phase, and so was
never dumped, let alone taped:
FAIL planner localhost /mnt/morpheus-home/root 20041012 0 [disk /mnt/morpheus-home/root, all estimate failed]
)

> I think I have found a bug in amanda.  I hope someone can
> look into this problem further.  Is there any other way than
> this mailing list to report a bug?

Could well be.  amanda-hackers AT amanda DOT org is a good place.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        erics AT telepres DOT com
|  |  /
The animal that coils in a circle is the serpent; that's why so
many cults and myths of the serpent exist, because it's hard to
represent the return of the sun by the coiling of a hippopotamus.
        - Umberto Eco, "Foucault's Pendulum"

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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