Amanda-Users

Re: Index files not being created

2005-09-16 03:52:34
Subject: Re: Index files not being created
From: "Cameron Beattie" <kjcsb AT orcon.net DOT nz>
To: <amanda-users AT amanda DOT org>
Date: Fri, 16 Sep 2005 19:39:18 +1200
I believe this problem is resolved thanks to some help from the list. See my inline comments for the resolution.

----- Original Message -----
On Tue, Sep 13, 2005 at 05:40:50PM +1200, Cameron Beattie wrote:
I have checked the logfiles and they seem fine:
START driver date 20050913
DISK planner hostname /
START planner date 20050913
WARNING planner tapecycle (3) <= runspercycle (10)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

May not have anything to do with your index problem,
but you will take care of this, right?  Otherwise
you will be overwriting your only level 0 before
making another one (using the same tape 3 1/3 times
in one dumpcycle is not a good thing.

Come to think of it, are you set up to do
"full backups only".  In that case, might the level 0
have been overwritten and thus the index removed.
Doesn't look like it from what you show below, but ...

Thanks for the advice. I have changed to configuration now as follows:
dumpcycle 0
runspercyle 1
tapecyle 6

The warning is no longer present in the log and the index seems to be created:
ls -laF /var/lib/amanda/normal/index/hostname/_etc
drwxr-sr-x  4 amanda disk 4096 Sep 16 17:29 ./
drwxr-xr-x  4 amanda disk 4096 Sep 13 16:47 ../
-rw-------  1 amanda disk 7595 Sep 16 17:29 20050916_0.gz

gunzip -d 20050916_0.gz
vi 20050916_0
This shows all files and directories listed as expected

However amrecover reports
cd /etc
amrecover -C normal
"No index records for disk for specified date"


Only other permissions thing I'd check is the several
directories in the path to the indexdir.  Amanda might
need at least x, possibly rx on each component of the
full path.


I have the following setup:

/etc/normal/amanda.conf (some entries excluded)
dumpuser "amanda"
infofile "/var/lib/amanda/normal/curinfo" # database filename
logdir   "/var/lib/amanda/normal"  # log directory
indexdir "/var/lib/amanda/normal/index" # index directory
tapelist "/var/lib/amanda/normal/tapelist"
define dumptype global {
   comment "Global definitions"
}
define dumptype root-tar {
   global
   program "GNUTAR"
   comment "root partitions dumped with tar"
   compress none
   index yes
   priority low
}

/etc/normal/disklist.conf


Is disklist.conf the normal name for disklist on your system/version?

Sorry my mistake. Correct file is /etc/amanda/normal/disklist

hostname / {
  root-tar
  include "./etc"
}

I had changed /etc/amanda/normal/disklist to:
hostname /etc root-tar

When I changed it back to:
hostname / {
  root-tar
  include "./etc"
}

I could successfully use amrecover. I don't understand why but it works now.

In summary:
- if no index files are being created at all, check dumpcycle, runspercyle and tapecyle in amanda.conf. - if the index files are being created but amrecover can't see then, check your disklist

Hope that helps someone.

Cameron

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