What's the environment that you are running in from the command line?  (You can
find this out by typing 'env' at the command line -- this will print out a long
list of the variables in the environment)

Ricky

> -----Original Message-----
> From: Renzetti Robert A [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday 26 June 2002 10:38 PM
> To: Frank Smith; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Amanda crontab error
> 
> 
> Sorry, the exact error is:
> 
> "Amanda Tape Server Host Check
> -----------------------------
> /dump: 5549882 KB disk space available, that's plenty.
> ERROR: /dev/rmt/0hn: no tape online.
>        (expecting tape geo_vol54 or a new tape)
> NOTE: skipping tape-writeable test.
> Server check took 0.069 seconds.
> 
> Amanda Backup Client Hosts Check
> --------------------------------
> Client check: 5 hosts checked in 0.200 seconds, 0 problems found.
> 
> (brought to you by Amanda 2.3.0.4)"
> 
> I know the ver of amanda is old, but it was the version that 
> had been working 
> for years on this system and the only reason that it isnt 
> working now is 
> because the previous admin quit, "suspended" amanda, and 
> didnt bother to tell 
> me what to do. Also, I am not in anyway an advanced Unix 
> user; rather, i am a 
> novice. We havent hired a new admin yet.
> 
> Frank Smith <[EMAIL PROTECTED]> said:
> 
> > What is the exact error you get from cron?  Generally problems
> > from cron are related to it using /bin/sh for a shell instead
> > of whatever you might be (ksh, bash, csh, etc.) and that it
> > is only using the default system path (which is bare bones by
> > default).  There's also the outside chance that the Amanda user's
> > home directory is automounted and isn't accessible at the time
> > cron needs it.
> >    I don't think any of those things would result in a tape error,
> > though, so maybe the exact error might give us a hint as to where
> > to look next.
> > 
> > Frank
> > 
> > --On Wednesday, June 26, 2002 16:47:01 -0500 Robert Renzetti 
> <[EMAIL PROTECTED]> wrote:
> > 
> > > System = SunOS 5.6
> > >
> > > Problem = When Amanda's crontab runs, amcheck cannot find the
> > > tape, but when amcheck is run manually from the command line, it
> > > finds the tape fine.
> > >
> > > Crontab =
> > > 0  16  * * 1-5    /opt/bin/amcheck -m geo
> > > 45 0   * * 2-6    /opt/bin/amdump geo;mt -f /dev/rmt/0 off
> > >
> > > The crontab was created with amanda user logged in, in amanda's
> > > home dir as "amanda_crontab". Then as amanda user I ran
> > > "crontab amanda_crontab" and then to make sure the changes took
> > > effect, "crontab -l". The crontab file is in place.
> > >
> > > But when cron runs the file, "/opt/bin amcheck -m geo" 
> errors out by
> > > not finding the tape. However, if I enter the same command (as
> > > amanda user) at the command line, it works fine, finds 
> the tape and
> > > OKs the job.
> > >
> > > Help?
> > >
> > > Robert Renzetti
> > > Computer Systems Manager
> > > Geology & Geophysics
> > > Texas A&M University
> > > (979) 845-1366
> > 
> > 
> > 
> > --
> > Frank Smith                                                
> [EMAIL PROTECTED]
> > Systems Administrator                                     
> Voice: 512-374-
> 4673
> > Hoover's Online                                             
> Fax: 512-374-
> 4501
> > 
> 
> 
> 
> -- 
> 
> 
> 

Reply via email to