On Wednesday, September 29, 2010 01:35:19 pm Dustin J. Mitchell did opine:
> 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
Done, but make did not detect the changes in the disk.pm file, so I had to
do a make clean etc.
amcheck dead in water:
[ama...@coyote amanda-3.2.0alpha.svn.3460]$ amcheck Daily
Amanda Tape Server Host Check
-----------------------------
Holding disk /usr/dumps: 620929024 kB disk space available, using 620417024
kB
amcheck-device: syntax error at
/usr/lib/perl5/site_perl/5.10.1/Amanda/Changer/disk.pm line 473, near
"Amanda::Debug:"
syntax error at /usr/lib/perl5/site_perl/5.10.1/Amanda/Changer/disk.pm line
497, near ")
symlink"
BEGIN not safe after errors--compilation aborted at
/usr/lib/perl5/site_perl/5.10.1/Amanda/Changer/disk.pm line 508.
Compilation failed in require at (eval 14) line 1.
BEGIN failed--compilation aborted at (eval 14) line 1.
Server check took 0.240 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 2 hosts checked in 6.304 seconds. 0 problems found.
(brought to you by Amanda 3.2.0alpha.svn.3460)
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Just because everything is different doesn't mean anything has changed.
-- Irene Peter