Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
RE: [SLE] Adaptec RAID
  • From: "Anders Norrbring" <lists@xxxxxxxxxxxx>
  • Date: Fri, 4 Mar 2005 20:35:31 +0100
  • Message-id: <20050304193531.6A7F81AA5@xxxxxxxxxxxxxxxxxxx>

Beautiful!
Thank you so much...

Anders.

> -----Original Message-----
> From: Louis Richards [mailto:louis@xxxxxxxxxxxxxxxxxx]
> Sent: Friday, March 04, 2005 8:32 PM
> To: suse-linux-e@xxxxxxxx
> Subject: Re: [SLE] Adaptec RAID
>
> On Fri, 2005-03-04 at 03:58, Anders Norrbring wrote:
> > I have an Adaptec 2100S RAID controller coming to me, when I surfed the
> > Adaptec site, I couldn't find the Storaga Manager utilities for SuSE
> Linux
> > at all, and the driver for SuSE up to v7.0...
> >
> > Anyone with ideas on how to run this controller with SuSE 9.2?
> >
> >
>
> I have a 2120S and SuSE 9.2 would not install, hanging at the loading
> aacraid driver. I flashed the cards firmware to the latest version and
> the install worked.
>
> The Storage Manager software that came with the card would not detect
> the card when installed and run. I uninstalled it and installed Adaptec
> Storage Manager-Browser Edition v 1.23 for Linux from the Serial ATA
> RAID 2810SA Downloads page.I then installed the command line utilities
> that came with my card.
>
> The following cron script checks the drives and emails errors to me.
> NOTE: some lines have wrapped and would need to be edited.
>
> #!/bin/bash
> #
> # raid.cron.script
> #
> #
> # Shell script for checking for raid problems
> # by Kent Ziebell 10-April-2001
> #
> # Modified by Louis Richards 1-March-2005
> #
> # Example cron entry:
> #
> # check the raid out hourly
> #
> #00 * * * * /usr/local/src/raid/raid.cron.script > /dev/null 2>&1
> #
> #
> #
> # ======> Preliminary setup work starts here
> # Before placing this script into cron, be sure to "seed" the check so
> that
> # you have a permanent copy of what your raid config should look like
> if
> # all is well. Do that by issuing the following:
> #
> # cd /usr/local/src/raid (or where ever you want this stuff to live)
> #
> # now run the following command
> #
> # /usr/sbin/aaccli open aac0 : container list : disk list : task list >
> /usr/local/src/raid/raid.production.config
> #
> # End of preliminary setup.
> #
> #
> # Who's watching - whom to send the notification
> #
> # =====> Change the following line to whom should be notified
> #
> mailwatch=lrichards@xxxxxxxxxxxx
> #
> host=`hostname`
> #
> #
> # CHECK 1
> #
> #
> cd /usr/local/src/raid
> rm raid.current.config
> /usr/sbin/aaccli open aac0 : container list : disk list : task list >
> /usr/local/src/raid/raid.current.config
> curdiff=`/usr/bin/diff raid.current.config raid.production.config`
> #
> raiderr=`/bin/cat raid.current.config`
> #
> if [ "$curdiff" != "" ] ; then
> # notify mailwatch team - raid 5 may be broken
> /usr/sbin/sendmail -f devnull@$host -t << RedCatSun
> To: $mailwatch
> From: root@$host
> Subject: Raid 5 may be broken on $host
> Errors-To: devnull
> Raid 5 may be broken on $host.
>
> ====> A diff between production and current is:
>
> $curdiff
>
> ====> The current container list and disk list is:
>
> $raiderr
>
> RedCatSun
> fi
>
> #
> #
> # CHECK 2
> #
> #
> # The next check is just looking for AAC: messages in /var/log/messages
> #
> # Raid error messages look something like the following:
> #
> # AAC:ID(0:02:0); Selection Timeout [command:0x28]
> # AAC:Drive 0:2:0 returning error
> # AAC:ID(0:02:0) - drive failure (retries exhausted)
> # AAC:RAID5 Container 0 Drive 0:2:0 Failure
> # AAC:ID(0:02:0) [DC_Ioctl] DiskSpinControl: Drive spindown failure
> # AAC:RAID5 Failover Container 0 No Failover Assigned
> # AAC:Drive 0:2:0 offline on container 0:
> # AAC:RAID5 Failover Container 0 No Failover Assigned
>
>
> AACerr=`/bin/egrep "(AAC|aacraid):" /var/log/messages`
>
> if [ "$AACerr" != "" ] ; then
> # notify mailwatch team - raid 5 may be broken
> /usr/sbin/sendmail -f devnull@$host -t << RedDogSun
> To: $mailwatch
> From: root@$host
> Subject: Raid 5 may be broken on $host
> Errors-To: devnull
> Raid 5 may be broken on $host.
>
> ====> A grep for ACC: in /var/log/messages:
>
> $AACerr
>
>
> RedDogSun
> fi
>
> exit 0
>
>
> HTH,
> Louis
>
>
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>



< Previous Next >
References