Cron Job failure with aaccli

From: Bart Silverstrim (bsilver_at_chrononomicon.com)
Date: 02/29/04

  • Next message: cc_at_dd.org: "Juli"
    To: freebsd-isp@freebsd.org
    Date: Sun, 29 Feb 2004 16:34:59 -0500
    
    

    Hello,

    I have a Dell 6250 with the perc3/di RAID controller in it and a fresh
    install of FreeBSD 4.9-release. I used the aaccli utility from the
    ports collection and a script I found when googling around for a cron
    script that worked with the sell utility.

    I modified the script so it would open the correct device and point to
    the right applications (the script was for a Linux installation with
    Sendmail; I am running FreeBSD with Postfix). You have to run a series
    of commands to create a "seed" file with the default, working RAID
    output from aaccli. This worked fine. I created a backup of it,
    altered a line in it to make a subsequent test look like something was
    wrong with the RAID system.

    I run the script itself from the shell, it emailed me an alert.
    I run the cron script from sh (because the redirect of output is in sh,
    not tcsh), it runs fine and emails an alert.
    Cron runs the script, aaccli hangs as if the input is getting munged?
    the script hangs in the process list and I have to kill aaccli for the
    script and aaccli to disappear from the process listing.

    I've checked by putting in a cron entry that just echos the shell in
    use to a file from cron and it is running with sh. If I run the cron
    script or the actual script from sh (as root I just run "/bin/sh" and
    run it from that prompt) they both run fine. So why is aaccli hanging
    when cron tries to run it?

    The link to the script I've adapted is
    http://public.www.planetmirror.com/pub/domsch/aacraid/
    aacraid_monitoring_script.txt

    Anyone out there know what is causing it to hang??

    -Bart Silverstrim

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: cc_at_dd.org: "Juli"

    Relevant Pages

    • Re: using Linux aaccli in a cron job
      ... >> run the aaccli program successfully in a terminal window and use it ... >> to check status of the RAID controller. ... >> cron job (same script as I run in a terminal) I get no output. ...
      (freebsd-questions)
    • SUMMARY: cron entry: nth day of every month?
      ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
      (Tru64-UNIX-Managers)
    • 220.backup-bsdlabels (WAS: Re: periodic(8) / daily bsdlabel / fdisk / softraid*)
      ... Here's a basic script to accomplish this. ... geom/gmirror/vinum configurations. ... Maybe someone more intimate with these 3 RAID APIs on FBSD can offer some ...
      (freebsd-questions)
    • Re: Cron Jobs
      ... > having a cron will mean yo server is forced by the script ... > best than allowing mail dequeing by connection. ... > host server so I can get emails for my domain example.com. ...
      (RedHat)
    • Re: Problems with periodic scripts in jails [Cron <operator@sosai> /usr/libexec/save-entropy]
      ... >> If a cron job (eg, a shell script) doesn't perform whatever locking it ... it's not difficult to imagine cron kicking off the script ... > That's a good suggestion. ...
      (freebsd-current)