On Wed, Sep 29, 2010 at 11:33 AM, Gene Heskett <[email protected]> wrote:
> Note the --with-config=Daily \, but the subdir when running am* Daily is
> /amandatapes/Dailys, note the plural. Is this line even required?
No, --with-config is largely ignored, and the name of the vtape
directory need not match the name of the configuration.
> The test amanda.conf is the Daily/amanda.conf copied to the $configdir/test
> tree, with all instances of 'Daily' or in the case of vtape paths, Dailys,
> edited to be 'test' in those strings. And the test checks are running the
> code built by the above gh.cf file. Could this missmatch be a problem with
> the new code?
It's certainly possible that there's a bug here - I'm just baffled as
to what's going on.
> Now, I do see one item that will need moved to the
> /usr/local/var/amanda/configname directory, amandates exists as
> /usr/local/var/amanda/amandates & that will not do for a test run of
> 'test'.
>
> Humm, that location is in the Makefiles as a default. So is it definable in
> the /configdir/amanda,conf? The man pages for amanda.conf don't mention it.
>
> If this move of amandates can be done by moving it to
> /usr/local/var/amanda/configname/amandates, I believe this is the last
> connection that exists between the "Daily" and "test" configs.
>
> Please add that ability to parse /configname/amanda.conf for the location of
> the amandates file.
The location for 'amandates' can only be set at configure time.
However, amandates is rarely, if ever, used, so I don't think that the
overlap is a problem.
Can you add some debug prints to Amanda/Changer/disk.pm?
494 # TODO: locking
Amanda::Debug::debug("set_current: symlinking $curlink to slot$slot")
495 symlink("slot$slot", $curlink);
and
471 if (-l $curlink) {
472 my $target = readlink($curlink);
Amanda::Debug:debug("get_current: $curlink = $target");
473 if ($target =~ "^slot([0-9]+)/?") {
and see what appears in the amcheck-device debug log?
Dustin
--
Open Source Storage Engineer
http://www.zmanda.com