From owner-freebsd-questions@FreeBSD.ORG Sun Jun 19 11:28:17 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9DFFE16A41C for ; Sun, 19 Jun 2005 11:28:17 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out6.blueyonder.co.uk (smtp-out6.blueyonder.co.uk [195.188.213.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CAE343D48 for ; Sun, 19 Jun 2005 11:28:16 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out6.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sun, 19 Jun 2005 12:28:56 +0100 Message-ID: <42B556CE.6020103@dial.pipex.com> Date: Sun, 19 Jun 2005 12:28:14 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: "P.U.Kruppa" References: <20050619074720.V11229@www.pukruppa.net> In-Reply-To: <20050619074720.V11229@www.pukruppa.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jun 2005 11:28:56.0381 (UTC) FILETIME=[14596ED0:01C574C2] Cc: freebsd-questions@freebsd.org Subject: Re: Yet another RAID Question (YARQ) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jun 2005 11:28:17 -0000 P.U.Kruppa wrote: > our school has just received a new HP ProLiant and I set up FreeBSD > 5.4 -RELEASE with a RAID 1 system on it (using ciss driver). > Is there any software tool which can show me the state of the two SCSI > discs (if one is failing or if they are mirrored sorrectly) or is it > sufficient to watch the little LEDs on the box? That's a good question, and I only have a partial answer for you. You can look at sysutils/smartmontools port which will show you the SMART status for the disks that it can see. If you can see both disks (which I *think* would have devices like /dev/sd0, /dev/sd1) then you ought to know if the disks are failing. SCSI disks, from my limited experience, don't show as much info as ATA disks, but so far both Quantum and Fujitsu do seem to have supported SMART at a basic level. You should be able to tell what FreeBSD can see in the way of disks by examining /var/run/dmesg.boot. A word of caution, though. A Linux system (which I help administer) had two SCSI disks mounted as RAID-1 through some kind of Adaptec controller. Recently the machine crashed and it transpires that one of the disks hadn't been written to since 2002! I am told that the bootup screen showed the RAID-1 as working, and Linux could *only* see one virtual disk -- the supposed RAID mirror. So, I think your question is a very good one! We had (apparently) no way of knowing what was going on. The machine crashed with no messages whatsoever, after losing all access to its disks, and there was no indication that RAID-1 was not functioning. I *think* that the RAID controller should spot when a disk is failing and notify you (through its driver) through console messages and /var/log/messages. I too would love an answer to this question for any decent SCSI controller under FreeBSD (e.g. Dell PowerEdge 2850 with PERC 4e/Di RAID controller). Can you, in general, see through the RAID controller to monitor individual disks? --Alex