Amanda-Users

Re: amrecover: No index records for disk for specified date

2003-02-12 12:33:00
Subject: Re: amrecover: No index records for disk for specified date
From: Jon LaBadie <jon AT jgcomp DOT com>
To: Amanda Mailing List <amanda-users AT amanda DOT org>
Date: Wed, 12 Feb 2003 10:47:18 -0500
On Wed, Feb 12, 2003 at 02:10:52PM +0100, Toralf Lund wrote:
> >On Tue, Feb 11, 2003 at 05:31:04PM +0100, Toralf Lund wrote:
> >> I'm getting error message
> >>
> >>   No index records for disk for specified date
> >>
> >> when trying to recover a certain DLE using amrecover (version 2.4.3.)
> >The
> >> full output from the session + some of the debug messages are included
> >> below. The index looks good to me;
> [ ... ]
> 
> >An index file doesn't mean that the backup is still available.
> Really?
> 
> >What's the output of 'amadmin ks find mercedes-benz /usr/people/jfo'?
> Trying this helped me figure out what was wrong ;-) The command would list 
> the expected dates and tape names when executed as root, but as amanda, I 
> got "No dump to list", which made it quite obvious that the permissions of 
> some file required were wrong (I suspected that all along, but I wasn't 
> able to spot the exact problem earlier.) It then turned out that tapelist 
> was no longer readable by amanda, for some reason. After a simple chmod, I 
> was able to restore the backup correctly.
> 
> Question: Why didn't amrecover or the amindexd log tell me that the 
> tapelist was unreadable?
> 
If you ran amrecover as amanda-user, why didn't it tell you:

        $ amrecover
        amrecover: amrecover must be run by root

jon
> - Toralf
> 
>>> End of included message <<<

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)