From owner-freebsd-scsi@FreeBSD.ORG Thu Nov 17 16:58:24 2011 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3917010657B9 for ; Thu, 17 Nov 2011 16:58:24 +0000 (UTC) (envelope-from dgilbert@interlog.com) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id EB6AF8FC19 for ; Thu, 17 Nov 2011 16:58:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 79EE02041B4; Thu, 17 Nov 2011 17:39:30 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60IW9gFzX5mm; Thu, 17 Nov 2011 17:39:29 +0100 (CET) Received: from [192.168.48.66] (ip-17.55.99.216.dsl-cust.ca.inter.net [216.99.55.17]) by smtp.infotech.no (Postfix) with ESMTPA id E8C44204118; Thu, 17 Nov 2011 17:39:28 +0100 (CET) Message-ID: <4EC538BF.8060804@interlog.com> Date: Thu, 17 Nov 2011 11:39:27 -0500 From: Douglas Gilbert User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <86d3cqpxh0.fsf@ds4.des.no> In-Reply-To: <86d3cqpxh0.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: scsi@freebsd.org Subject: Re: smartd blows away mfi config X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dgilbert@interlog.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 16:58:24 -0000 On 11-11-17 10:42 AM, Dag-Erling Smørgrav wrote: > I have a Dell PowerEdge 1950 II with a PERC/5i controller and two SATA > disks. I had no trouble at all setting up logical volumes with mfiutil > and installing FreeBSD 8.2, but when smartd starts (with smartd.conf > consisting only of "DEVICESCAN") it seems to blow away the config so the > virtual disks disappear from underneath the running system and I have to > powercycle the machine. When the machine reboots, the controller does > not find any logical disks. The configuration utility finds a "foreign > configuration" which I can import, and there doesn't seem to be any data > missing. > > This does not seem to happen if I specify the passX devices explicitly > in smartd.conf - only if I use DEVICESCAN. This indicates that the > problem arises when smartd scans the SES device (i.e. the backplane). Not sure how SES devices appear as device nodes (i.e. /dev entries) in FreeBSD. If they can be mistaken for disks then smartd has a problem which I will look into. Doug Gilbert > The problem is that the unit numbers can vary over time, e.g. if I add > an optical drive or boot the system with a USB mass storage device > attached, so listing them explicitly is not a good long-term solution. > > Any suggestions? The ideal solution would be a patch for either the > kernel or smartd to prevent it from blowing away the mfi config, but > short of that, is there a way to have smartd ignore the backplane when > scanning for supported devices? A drivedb entry, perhaps? As a last > resort, I guess I could regnerate smartd.conf at boot time by parsing > dmesg and / or the cam device list. > > Note that I am running 8.2-RELEASE and the version of smartmontools that > ships with it, or rather, what pkg_add -r gives me (which I guess is the > same thing). > > DES