From owner-freebsd-fs@freebsd.org Mon Sep 28 14:00:21 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0590CA0B9AA for ; Mon, 28 Sep 2015 14:00:21 +0000 (UTC) (envelope-from laza.ita@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 909961E18 for ; Mon, 28 Sep 2015 14:00:20 +0000 (UTC) (envelope-from laza.ita@gmail.com) Received: by wicgb1 with SMTP id gb1so105502897wic.1 for ; Mon, 28 Sep 2015 07:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=sMlSb61fcPqyIhAvsCOF93bRlmDoexd2XOhMg8rrhQo=; b=BUFRQ14eYrA7j+jyN3fExJ3zYBaXM4cNph0nMW2k4/2y2BQZkbMbwLJqConkpIF2+t CL6fJNCNqVisyg7f7GFUa+/c2RDtd8M+mAX1M1iecFlRzos3TGab1yxSJ8XHV8aHlNnT 7QPyV4/VLd6Lzr3m2NTLov0urGzWb2TbkGjWOnf9jewAQT2zSJQUawB/l218JTfaQ28M opyhYjiljqJMD73MPfmiQQPr+8/gZTvHGY4+Xkf0HEJdtzUQPv822xewNGZ81COvxJfG GbQweTPRiQyctTp5GTrB073Yam3dw6GSm2OUaQ9MtziVXYL75rV8+1JnrijTvn2mDzD+ bM/g== X-Received: by 10.194.7.106 with SMTP id i10mr22190856wja.86.1443448818987; Mon, 28 Sep 2015 07:00:18 -0700 (PDT) Received: from tmt-laza.tomatowin.local (fast100.tomato.it. [81.208.47.59]) by smtp.googlemail.com with ESMTPSA id gc8sm18500754wib.2.2015.09.28.07.00.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 07:00:18 -0700 (PDT) Message-ID: <560947F1.2040607@gmail.com> Date: Mon, 28 Sep 2015 16:00:17 +0200 From: "Marco.re" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Tim Gustafson , freebsd-fs@freebsd.org Subject: Re: Switching from MFI to MRSAS References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2015 14:00:21 -0000 On 09/23/2015 01:26, Tim Gustafson wrote: > mfi0: port 0x2000-0x20ff mem > 0x92000000-0x9200ffff,0x91f00000-0x91ffffff irq 26 at device 0.0 on > pci2 > mfi0: Using MSI > mfi0: Megaraid SAS driver Ver 4.23 > mfi0: FW MaxCmds = 240, limiting to 128 > mfi0: MaxCmd = 240, Drv MaxCmd = 128, MaxSgl = 70, state = 0xb73c00f0 > > I see that there's a tunable for /boot/device.hints that I can set to > prefer mrsas over mfi: > > hw.mfi.mrsas_enable="1" > > and then add this to /boot/loader.conf: > > mrsas_load="yes" > > So, my question is: if I add those options and then reboot, will my > drives magically re-appear as /dev/da* devices? Will the data on them > still be accessible as-is, or would I need to re-install the OS to get > this to go? Would switching to this other driver enable the TRIM > command, as the devices will now be /dev/da* rather than > /dev/mfisyspd*? Or am I just being naive here? :) I'm not sure, I've installed one Dell R730 with a new controller H730/P, I'm not sure if the mfi driver was seeing the raid, I don't remember :-( if you have this controller # pciconf -lv mrsas0@pci0:2:0:0: class=0x010400 card=0x1f491028 chip=0x005d1000 rev=0x02 hdr=0x00 vendor = 'LSI Logic / Symbios Logic' device = 'MegaRAID SAS-3 3108 [Invader]' class = mass storage subclass = RAID it works with the mrsas driver. # cat /boot/loader.conf hw.mfi.mrsas_enable=1 mrsas_load="yes" # dmesg | grep -i mrsas module_register: module pci/mrsas already exists! Module pci/mrsas failed to register: 17 LSI MegaRAID SAS FreeBSD mrsas driver version: 06.704.01.01-fbsd mrsas0: port 0x2000-0x20ff mem 0x92000000-0x9200ffff,0x91f00000-0x91ffffff irq 26 at device 0.0 on pci2 mrsas0: FW supports: UnevenSpanSupport=1 mrsas0: Internal command timed out after 180 seconds. da0 at mrsas0 bus 0 scbus0 target 0 lun 0 Cioa Marco