From owner-freebsd-fs@freebsd.org Tue Sep 22 23:26:29 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 A2EA0A07ED0 for ; Tue, 22 Sep 2015 23:26:29 +0000 (UTC) (envelope-from tjg@ucsc.edu) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (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 3F4331A52 for ; Tue, 22 Sep 2015 23:26:29 +0000 (UTC) (envelope-from tjg@ucsc.edu) Received: by wicgb1 with SMTP id gb1so181968733wic.1 for ; Tue, 22 Sep 2015 16:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:date:message-id:subject:from:to:content-type; bh=h67CcowrLuqBohZscumxtKt2JbkGr+0AeD/UD8ZGXok=; b=CjObWXzwqOrGZ2wYvTCHAhxYFo1ryCVkgZfjtdBoJGSt0VV50f812x2pl1ZV4RtMH6 76D3VseO7OjeH+IV7MyCkIQUPfwvIaCaPwI8BvGQQOe6FAKsJ8QAWYXUG9WP5WOJ1ed6 CnPMSAz9MFvap7mPruTTb7+26j82l1qWrVBPg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=h67CcowrLuqBohZscumxtKt2JbkGr+0AeD/UD8ZGXok=; b=L38TDhih0u95jUhcEJvAB9SxsTDkeiw6kw+cwtrYIkyoVwWtMXNj+rETExlNgf9cLz 0caE4cG1UNOgod1+xegYv6uhtbkOKDQSCVQIMeS/0hEfBu0YFaAFEcTqT73Mo3NKpB0O aGlg4lfVAK5t9+KdgMsWxwis4pnzYeaCVv41276ZUAdQgdf6mQHCoOfY9EVK40jQxuIe LqQXAtfYCOuEyn9lgWH/vSds+HTPXVEFwd/pQan/ksZmolL+RlU4T92pr01zootjT/2m TYoIAPu1mQVXNCJzazhXg/4o9A1yuZxDR+drMwcuQHCiqZz12BLHpWDFAe+mu4udP8At ON6A== X-Gm-Message-State: ALoCoQkuxc31TVlAbLBvL5MMbRC1VUlTqxkz4g5zn2niQxc7UeHq31gzJVW7itLhnvIFOr6RPIfe MIME-Version: 1.0 X-Received: by 10.180.8.132 with SMTP id r4mr347833wia.70.1442964387556; Tue, 22 Sep 2015 16:26:27 -0700 (PDT) Received: by 10.194.92.209 with HTTP; Tue, 22 Sep 2015 16:26:27 -0700 (PDT) Date: Tue, 22 Sep 2015 16:26:27 -0700 Message-ID: Subject: Switching from MFI to MRSAS From: Tim Gustafson To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Tue, 22 Sep 2015 23:26:29 -0000 As I mentioned in my previous post last week, I have a new Dell R630 server that uses a Perc controller, and I have installed 4 SSD drives and configured the PERC controller in pass-through mode. However, the PERC controller and its drives are being handled by the "mfi" driver, which apparently does not support TRIM. I have been reading up on all this, and I see that there is also an "mrsas" driver that (according to the documentation) appears to be compatible with my PERC controller, which is identified as follows: 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? :) -- Tim Gustafson tjg@ucsc.edu 831-459-5354 Baskin Engineering, Room 313A