<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Henrik Stoerner wrote:
<blockquote cite="mid20060605055542.GA15717@hswn.dk" type="cite">
  <pre wrap="">On Mon, Jun 05, 2006 at 11:01:49AM +1000, ZanDAhaR wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">This raid monitor script is the only one I managed to get working on one 
of the boxes here so I'd prefer to stick with it. As far as I know the 
script should be fine although the line where it execs bbedf.sh 
obviously wont work so I'm assuming this is why the hobbitlaunch.cfg 
sets the ENVFILE ?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Correct. You could delete the BB setup lines if you like, but since they 
are inside an 'if test "$BB..." = ""' section, it doesn't matter.

I'm actually using this script on the Hobbit demo site :-) The only
things I've changed are really bugs in the script:

  </pre>
  <blockquote type="cite">
    <pre wrap="">#
TEST="raid"
RAID_DEVICES=`df -k | grep ^/dev/md | wc -l`
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Didn't work for me. I've changed that one to
  RAID_DEVICES=`grep "^md[0-9]*.*:" /proc/mdstat|wc -l`

  </pre>
  <blockquote type="cite">
    <pre wrap="">i=0
while [ "$i" -le "$RAID_DEVICES" ]
do
    </pre>
  </blockquote>
  <pre wrap=""><!---->
This shows up three times in the script. It runs through
the loop one time too many, so I changed those three
occurrences to use "-lt" instead of "-le":

  i=0
  while [ "$i" -lt "$RAID_DEVICES" ]
  do


Regards,
Henrik


To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>

  </pre>
</blockquote>
Ok well ill be buggered if I know whats going on, I tried those changes
and I got a wc: broken pipe. So I put back the original file and it
actually works now which is completely wacked.<br>
<br>
I'll have more of a play now that its actually working :)<br>
<br>
Cheers Henrik<br>
<br>
Allan<br>
</body>
</html>