>I am trying to see why my cron job "amdump Daily" is sometimes failing
>with the message:
>
>       "amdump: amdump or amflush is already running, or you must run
>       amcleanup"

Is there any chance the run from the night before hasn't finished?

Was the machine possibly rebooted while the previous run was still
going and amcleanup was not run during the boot sequence?

What version of Amanda are you using?  Amcleanup had some problems at
one point.

>Well, $errfile corresponds to "/var/amanda/DailySet1/amdump" and
>$logdir/log corresponds to "/var/amanda/DailySet1/log".  Neither one of
>these files exist, so why is amdump balking at this point?

One or the other obviously existed at the time amdump ran or the test
would not have triggered.

If the above ideas don't help, you could add a couple of lines to the
script right before it exits:

  ls -l $errfile $logdir/log 1>&2
  ps -fu AMANDA 1>&2

This will tell you while file exists and when it was last modified.
Make sure the arguments to ps are right for your OS, but the idea is to
display any processes still running for the Amanda user (change AMANDA
to match your config).

>--jason

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to