From owner-freebsd-hardware@FreeBSD.ORG Sat Aug 1 14:44:06 2009 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CF7A10656D3 for ; Sat, 1 Aug 2009 14:44:06 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from mail-yw0-f190.google.com (mail-yw0-f190.google.com [209.85.211.190]) by mx1.freebsd.org (Postfix) with ESMTP id E680D8FC12 for ; Sat, 1 Aug 2009 14:44:05 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by ywh28 with SMTP id 28so3151868ywh.27 for ; Sat, 01 Aug 2009 07:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=RA3hwlZu4B+0VyMSMsn7uGDfB384zKb+XHiyqBkvr7o=; b=ilyOExE/EmKyLx/vScPCy1TVgunB38TP6gxsMx4HnTvaaOm/6DPqKUGqOFyXvHUwqX Cj0ZfBSQPVmtKSdlPwMPTR0A562OnJbnXCNGra9Xn8qgy7IqWNYqyHU3r9VFZUQl7/Vd b/wi2GR3V26JPbuAYAI9pnA4dgW7Tt/XtvoKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=YOrFVkSG+b/5ZFGi+lX0AjFuV3MJRS30V5rAHJvKaXpyN11c29fdUKG3srfji1JszP Zj8wuCgraLBMVnVnM26gnZa9ExkunoMBvRH6m2PTbFHdJMlKDTcjALfP1qwxP24BgL/q hJuQrRBtVETbLPwNWkpBhhFA+eJvz4C2yKcCs= MIME-Version: 1.0 Received: by 10.100.58.1 with SMTP id g1mr4988793ana.150.1249137845132; Sat, 01 Aug 2009 07:44:05 -0700 (PDT) In-Reply-To: <0C4ED569-22EF-4640-8C90-1011FDF45AC1@anduin.net> References: <26ddd1750907181747g4608b4aai7ef145197bfc580d@mail.gmail.com> <0C4ED569-22EF-4640-8C90-1011FDF45AC1@anduin.net> From: Maxim Khitrov Date: Sat, 1 Aug 2009 10:43:45 -0400 Message-ID: <26ddd1750908010743j44e2882amf3a4e6bbc36fd2e@mail.gmail.com> To: =?UTF-8?Q?Eirik_=C3=98verby?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hardware@freebsd.org Subject: Re: Driver for 3ware 9690SA, FreeBSD 8 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Aug 2009 14:44:07 -0000 2009/8/1 Eirik =C3=98verby : > On 19. juli 2009, at 02.47, Maxim Khitrov wrote: > >> Hello all, >> >> This is the first time I'm setting up hardware raid under FreeBSD. The >> card is 3ware 9690SA (twa driver) and I'm running FreeBSD 8.0-BETA2. >> >> I'm a bit confused about the driver situation. The twa driver that >> comes with FreeBSD is at version 3.70.05.001 (listed during boot). I >> cannot find this version anywhere on the 3ware site. There is, >> however, a reference to 3.70.05.003 [1], which is from 9.5.1 code set >> for FreeBSD 7.x. Is there some disconnect between what 3ware releases >> for FreeBSD and what actually makes it into the source tree? If so, is >> it a better idea to use the driver that comes with FreeBSD 8 or >> download the latest source from 3ware and compile that myself (note >> that FreeBSD 8.x is not listed anywhere, so my guess is to use the 7.x >> version)? >> >> The reason I ask is because I'd like to update the firmware on the >> controller, but I have no idea what is the latest version that the >> current driver supports. For that matter, I don't know if the firmware >> that came with the card is supported, though it appears to be working >> for now. Basically, I'm just looking for advice on how to deal with >> drivers that are primarily maintained outside of the FreeBSD source >> tree. >> >> If anyone else is using the same controller, I'd also appreciate any >> advice on setting up the CLI (my guess is that I should use the >> sysutils/tw_cli port) and e-mail notifications for things like the >> loss of a drive. >> >> - Max >> > > Hi, > > we use these in all our (I/O-sensitive) servers, and they perform very we= ll. > We've upgraded the firmware of all of them to the latest release (as of > about 2 months ago), though I'm not sure if that was done from FreeBSD or= in > other systems prior to installation. > > We use the 3dm package to manage the boards; it's available in ports or > through pkg_add -r 3dm . It's a version of the web-based management tool > from 3ware; however it's an old version, and I haven't been able to extra= ct > the current version from the installation package provided by 3ware (plus= , > it requires Java, but so does other software we use). > > /Eirik I got everything working using the 3ware 9.5.2 code set. Firmware update was performed through dos, though you can also do it from FreeBSD once you have tw_cli or 3DM2 installed. For the driver, take twa.tgz file from packages/drivers/freebsd/src/7.x on the complete 9.5.2 code set CD, extract it somewhere, then copy all tw_* files to /sys/dev/twa, overwriting the files already there. The provided Makefile is the same that is in FreeBSD source tree, so nothing to do with that. To prevent csup from overwriting the new driver code on the next source update, create a /var/db/sup/refuse file with a single "src/sys/dev/twa*" line. The command-line tw_cli utility can be installed from ports, since it's the latest version. 3DM2, however, is outdated, so I also installed this from the code set CD. Simply copy packages/installers/tools/freebsd/7.x/x86_64/setupFreeBSD7_x64.sh to your server and run `./setupFreeBSD7_x64.sh -console`. That launches the 3DM2 installation. At the end of it, the web server will be listening on localhost:888, default password is 3ware. An rc script is placed into /etc/rc.d to launch 3DM2 after reboot. There is no need to have java installed from ports because the installer will use its own version when another one isn't available. That's all there is to it, just wanted to provide this overview for anyone else that may be trying to get the card working. By the way, I decided to go back to FreeBSD 7.2 instead of 8.0 until there is official 8.0 support from 3ware. - Max