From owner-freebsd-questions@FreeBSD.ORG Wed Nov 3 14:58:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B91C316A4CE for ; Wed, 3 Nov 2004 14:58:52 +0000 (GMT) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85A8F43D54 for ; Wed, 3 Nov 2004 14:58:52 +0000 (GMT) (envelope-from bbobowski@cogeco.ca) Received: from [24.150.215.98] (d150-215-98.home.cgocable.net [24.150.215.98]) by fep1.cogeco.net (Postfix) with ESMTP id 8E95D812A; Wed, 3 Nov 2004 09:58:51 -0500 (EST) Message-ID: <4188F23A.5040206@cogeco.ca> Date: Wed, 03 Nov 2004 09:59:06 -0500 From: Brian Bobowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Thunderbird/0.7.1 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Alden References: <20041103145205.GA20496@math.ohio-state.edu> In-Reply-To: <20041103145205.GA20496@math.ohio-state.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: how do I get the status of a raid array? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 14:58:52 -0000 Dave Alden wrote: >Hi, > I'm new to FreeBSD (switching my primary NFS server over from RHEL) and >I'm trying to figure out how I can get the current status of my RAID setup. >I'm using an LSI MegaRAID 320-2x card and FreeBSD 5.3RC2 (don't worry, I'm >just testing for now, I'm going to wait until 5.3 is officially released >before I try to go live :-). What I need is to be able to write a script >that checks the status of the RAID array and notifies me if it becomes >degraded. I previously did it by using the /proc FS under linux to check >the current status of the RAID array. Help? > > Barring any more specific suggestions, FreeBSD has a procfs(5) and, for Linux compatibility, linprocfs(5). They both have kernel modules in /boot/kernel which could be set up to load in /dev/rc.conf(maybe compiled into kernel? I'm not knowledgeable about such things), and then you can create and mount /proc or /compat/linux/proc respectively, using the filesystem types of procfs or linprocfs, also respectively. That might help get you what you need. -BB