From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 23:54:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6186D1065674 for ; Wed, 11 Jun 2008 23:54:12 +0000 (UTC) (envelope-from pcloches@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by mx1.freebsd.org (Postfix) with ESMTP id 0A6328FC19 for ; Wed, 11 Jun 2008 23:54:11 +0000 (UTC) (envelope-from pcloches@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so4036726rvf.43 for ; Wed, 11 Jun 2008 16:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Y+n4AIS34QOaqz5Fyj/a75I7DWf84dZqvRMyHt6d5io=; b=rghP/pldIYchk30aJ3//WD0i1blp18Aq4irREPMw8tGaQgsW2UShJZKCGE+MkNMZGR mSJF1BO3InKE8rsUNr6xV7ALrBybjIuS4ayQWlRUqj2MZONRqHFvPgf3oQAXYUsO+SI9 LNRt7EsMf3MXaFmQzCSxvVNObBUmhOn0smgB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=l7tVhzZL72UrR9jV47hySVhvAua8UmlgWh++v2SHdCwUh6X9tIvCk5VTozQEgnZliP ZVRb8tWv5xII57hIS74Dhv4SYOQGTOBeJrlGZ8iBlvLaQX22SZLuvaeLrNvnalRh36cc D/Qvvqcoa5HtSMamH0QpRHpjIikuYb4BeJVKo= Received: by 10.114.12.10 with SMTP id 10mr667278wal.190.1213228451192; Wed, 11 Jun 2008 16:54:11 -0700 (PDT) Received: by 10.114.194.8 with HTTP; Wed, 11 Jun 2008 16:54:06 -0700 (PDT) Message-ID: <34394a3a0806111654y20f56a18s18927bda716e3b6a@mail.gmail.com> Date: Wed, 11 Jun 2008 16:54:06 -0700 From: "Patrick C" To: "kalin m" In-Reply-To: <48504BCD.9000106@el.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4844293F.7020507@el.net> <484438B1.5020202@unsane.co.uk> <484441D8.8050207@el.net> <48445F45.70604@unsane.co.uk> <48448134.9080808@el.net> <20080609085828.GA27082@dt1.in-muc.ciao.com> <48504BCD.9000106@el.net> Cc: freebsd-questions@freebsd.org Subject: Re: mfi freebsd7 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: Wed, 11 Jun 2008 23:54:12 -0000 Great info, Kalin. I have several boxes with LSI controllers, the PERC 5i works wonderfully with FreeBSD (though the Dell 6850 sucks), and I have a couple boxes with Supermicro boards with built-in LSI MegaRaid, however it's done in software. This means that the mfi controller works fine as individual disks, but will not support any RAID levels in FreeBSD. You're probably almost as well off using gmirror anyway. I've started using 3ware cards again after a bit of a hiatus and they work great, and the FreeBSD support is good. My next experiment is going to be some HighPoint cards. I'm not sure at this point I wold trust them with my important data, but what's cool is they are very inexpensive cards, show up in computer stores like Fry's, and seem to have pretty decent FreeBSD support for their size. I'm going to try an 8-port in my desktop (I use it for some pretty serious MySQL work at times) soon... IMHO if the cards are decent it'd be nice to reward them for their efforts by putting some money their way. -Patrick 2008/6/11 kalin m : > > in case somebody gets stuck as i was - here are detailed instruction and the > CORRECT ORDER in which the needed kernel modules HAVE to be loaded in order > for the megacli to work properly... > > big thanks to Christoph Schug.... > > > > Christoph Schug wrote: >> >> On Mon, Jun 02, 2008, kalin m wrote: >> >> >>> >>> thanks Vince... i didnt wanted to install the linux base because a lot >>> of kids will be running some 'cool' boards or blogs that probably have cool >>> linux holes too. but just for the hell of it and for he purpose to get to >>> the controller i did. it took a while to find the Linux_MegaCli_1.01.09.zip. >>> it's not on the freebsd site and not on the LSI site (anymore) either.. >>> anyway after a lot of rpm downloads and patching and variable changing and >>> fs mountings i get this: >>> >>> # /usr/local/sbin/megacli -adpCount >>> ERROR:Could not detect controller. >>> >>> Controller Count: 0. >>> >> >> From my experience there are some pitfalls when using the >> sysutils/linux-megacli port. First of all you need the mfi_linux.ko >> kernel module loaded. Moreover, this module has to be loaded _before_ >> the Linux ABI stuff (linux.ko, linprocfs.ko, linsysfs.ko). So starting >> with a pretty sane list of loaded kernel modules ... >> >> | # kldstat | Id Refs Address Size Name >> | 1 3 0xffffffff80100000 6eeea8 kernel >> | 2 1 0xffffffff807ef000 14d0 accf_http.ko >> | 3 1 0xffffffffb449f000 1fce nullfs.ko >> | # kldload mfi_linux.ko >> | # kldload linprocfs.ko linsysfs.ko >> | # kldstat | Id Refs Address Size Name >> | 1 15 0xffffffff80100000 6eeea8 kernel >> | 2 1 0xffffffff807ef000 14d0 accf_http.ko >> | 3 1 0xffffffffb449f000 1fce nullfs.ko >> | 7 1 0xffffffffb44a1000 3af mfi_linux.ko >> | 8 3 0xffffffffb44a2000 18a6a linux.ko >> | 9 1 0xffffffffb44bb000 350c linprocfs.ko >> | 10 1 0xffffffffb469a000 9d3 linsysfs.ko >> | # mount -t linprocfs linproc /compat/linux/proc >> | # mount -t linsysfs linsys /compat/linux/sys >> | # cat /compat/linux/sys/class/scsi_host/host*/proc_name >> | megaraid_sas >> | megaraid_sas >> >> In case you haven't loaded mfi_linux.ko before the other Linux ABI >> stuff, you will see '(null)' entries here instead of 'megaraid_sas'. >> Furthermore, the compat.linux.osrelease sysctl should be set to 2.6.12. >> >> | # sysctl -w compat.linux.osrelease=2.6.12 >> | compat.linux.osrelease: 2.4.2 -> 2.6.12 >> >> If everything is fine, you should be able to query your RAID controller: >> >> | # megacli -LDInfo -LALL -aALL | grep ^State: >> | State: Optimal >> | State: Optimal >> >> This has been tested on a Dell PowerEdge 2970 with both an PERC5/i and >> PERC5/e controller running FreeBSD 7.0/amd64. >> >> | # pciconf -lv | grep ^mfi >> | mfi0@pci0:8:14:0: class=0x010400 card=0x1f031028 chip=0x00151028 >> rev=0x00 hdr=0x00 >> | mfi1@pci0:15:14:0: class=0x010400 card=0x1f011028 chip=0x00151028 >> rev=0x00 hdr=0x00 >> >> -cs >> >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >