From owner-freebsd-stable@FreeBSD.ORG Mon Nov 17 15:26:02 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D4A0D70 for ; Mon, 17 Nov 2014 15:26:02 +0000 (UTC) Received: from cu01176a.smtpx.saremail.com (cu1176c.smtpx.saremail.com [195.16.148.151]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 292ED37F for ; Mon, 17 Nov 2014 15:26:01 +0000 (UTC) Received: from [172.16.2.2] (izaro.sarenet.es [192.148.167.11]) by proxypop02.sare.net (Postfix) with ESMTPSA id B346E9DD418; Mon, 17 Nov 2014 16:25:52 +0100 (CET) Subject: Re: aacraid drives missing after update 10.0 -> 10.1 ? Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Borja Marcos In-Reply-To: <20141117145204.GI44537@home.opsec.eu> Date: Mon, 17 Nov 2014 16:25:51 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20141116213910.GF44537@home.opsec.eu> <20141117143323.GH44537@home.opsec.eu> <5133298B-F884-4203-92A0-7D0FCFF72FE1@sarenet.es> <20141117145204.GI44537@home.opsec.eu> To: Kurt Jaeger X-Mailer: Apple Mail (2.1283) Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2014 15:26:02 -0000 On Nov 17, 2014, at 3:52 PM, Kurt Jaeger wrote: > Hi! >=20 >>>> If your running a custom kernel do you have both the options for = aac enable: >=20 >>> It's the GENERIC kernel. >=20 >> That's curious. In order to have direct access to the disks I >> had to patch aac_cam.c. Maybe you were >> using a patched file and you forgot? >=20 > I upgraded using freebsd-update and upgraded GENERIC. What additional=20= > patch would be needed ? Beware, it's just my case, not necessarily others'.=20 My controller (built-in in a SunFire X4240) I needed to comment out = several lines so that the passthrough driver attaches the disks to the "da" driver. It = was suggested=20 back in 2007 (with flashing warnings all over the place!) by Scott Long = answering my question about ZFS and avoiding "intelligent RAID controller" = features entirely. These are the two relevant threads: http://lists.freebsd.org/pipermail/freebsd-scsi/2007-October/003223.html = http://lists.freebsd.org/pipermail/freebsd-scsi/2007-November/003234.html They are related to the "mfi" cards, but I posted them so that you = have some historical context. Of course now we know that it's far better to repurpose them by flashing = with IT-mode firmware (turning them into "HBA, period" devices). Back to our "aac". I have that SunFire machine in which I was unable to = access the disks individually. So I checked the source code for aac_cam.c and I = found out that the same trick works. This is what I do. Beware! This is working for me since 2012, but of = course there's no guarantee. At some point (with some 9. x version) the kludge stopped identifyng SSD = disks connected to the backplane, but it works with the SAS disks I am using. Again, USE WITH CAUTION! Something like this should be made more or less = "official". --- aac_cam.c 2014-11-17 15:20:24.011457711 +0000 +++ aac_cam.c.orig 2014-11-17 15:08:13.116702602 +0000 @@ -129,7 +129,7 @@ return; } =20 - if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, + if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(camsc->sim), target_id, CAM_LUN_WILDCARD) !=3D CAM_REQ_CMP) { xpt_free_ccb(ccb); @@ -548,9 +548,8 @@ /* * We want DASD and PROC devices to only be * visible through the pass device. - * CHANGE: WE WANT DASD DEVICES VISIBLE! */ - if ((/* IGNORE THIS: (device =3D=3D T_DIRECT) || */ + if (((device =3D=3D T_DIRECT) || (device =3D=3D T_PROCESSOR) || (sc->flags & AAC_FLAGS_CAM_PASSONLY))) { /* Borja.