Amanda-Users

changer problems when running from cron

2003-02-07 06:03:40
Subject: changer problems when running from cron
From: Michael Bretterklieber <mbretter AT jawa DOT at>
To: amanda-users AT amanda DOT org
Date: Fri, 07 Feb 2003 11:31:51 +0100
Hi,

we have problems with amanda when running from cron, amanda always means that the right tape is not or no tape is inserted but it is.

I tried to track down the problem and I can reproduce this problem with amcheck, when running amcheck from cron:

amcheck-server: could not get changer info: wait for "/usr/local/libexec/chg-manual" failed: No child processes
Amanda Tape Server Host Check
-----------------------------

(brought to you by Amanda 2.4.3)

It seems that the chg-manual script ends to quick, when adding a "sleep 1" into the info() function of the chg-manual script then the error above doesen't occur but this error occurs.

Amanda Tape Server Host Check
-----------------------------
amcheck-server: fatal slot <error>: wait for "/usr/local/libexec/chg-manual" failed: No child processes
ERROR: label gamed02003 or new tape not found in rack
       (expecting tape gamed02003 or a new tape)
NOTE: skipping tape-writable test
Server check took 2.659 seconds

(brought to you by Amanda 2.4.3)

Doing the same sleep in loadslot() has no effect.

NOTE: everything works OK when invoking from the shell.

We are running Caldera Openlinux, Kernel 2.4.13, with amanda 2.4.3.

It is a real problem for us, because we must invoke amflush every day by hand.

bye,
--
------------------------------- ----------------------------------
Michael Bretterklieber          - Michael.Bretterklieber AT jawa DOT at 
JAWA Management Software GmbH   - http://www.jawa.at
Liebenauer Hauptstr. 200        -------------- privat ------------
A-8041 GRAZ                     GSM: ++43-(0)676-84 03 15 712
Tel: ++43-(0)316-403274-12      E-mail: michael AT bretterklieber DOT com
Fax: ++43-(0)316-403274-10      http://www.bretterklieber.com
------------------------------- ----------------------------------
"...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972


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