From owner-freebsd-stable@FreeBSD.ORG Fri Mar 23 09:01:11 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CEE0B1065677 for ; Fri, 23 Mar 2012 09:01:11 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail04.adl6.internode.on.net (unknown [IPv6:2001:44b8:8060:ff02:300:1:6:4]) by mx1.freebsd.org (Postfix) with ESMTP id 11FF78FC1A for ; Fri, 23 Mar 2012 09:01:10 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAKg7bE/LevdH/2dsb2JhbABEFrhxggkBAQMBAScRQQULCxgJEwMPCQMCAQIBRQYNAQcBAYgBBAy2BJEDBKYHgno Received: from ppp247-71.static.internode.on.net (HELO leader.local) ([203.122.247.71]) by ipmail04.adl6.internode.on.net with ESMTP; 23 Mar 2012 19:31:00 +1030 Message-ID: <4F6C3B31.1060302@ShaneWare.Biz> Date: Fri, 23 Mar 2012 19:28:25 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120322 Thunderbird/10.0.3 MIME-Version: 1.0 To: Matt Burke References: <4F68FC3E.2090401@icritical.com> In-Reply-To: <4F68FC3E.2090401@icritical.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: SAS Drive identification LEDs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2012 09:01:11 -0000 On 21/03/2012 08:23, Matt Burke wrote: > Under 9.0-RELEASE I'm having trouble figuring out how to light up the drive > identification/fault lights on my enclosure (SAS disks on Chenbro > 80H10321513C0 backplanes attached to Areca ARC-1320 HBAs) > # setobjstat /dev/ses0 0xb 0x80 0x00 0x02 0x00 > < light on drive bay 8 starts flashing> > # setobjstat /dev/ses0 0xb 0x80 0x00 0x00 0x00 > < light on drive bay 8 stops flashing> > > Which is great, but how can I work out how /dev/daNN maps to /dev/sesN > element 0xNN? Not sure if I can help but I'll throw these thoughts at you - If I run dmesg | grep ada0 the first and last lines are - ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: Previously was known as ad4 or ls -l /dev | grep ada lrw-rw-rw- 1 root wheel - 4B 6 Mar 04:19 ad4@ -> ada0 lrw-rw-rw- 1 root wheel - 6B 6 Mar 04:19 ad4p1@ -> ada0p1 ... lrw-rw-rw- 1 root wheel - 4B 6 Mar 04:19 ad8@ -> ada1 lrw-rw-rw- 1 root wheel - 6B 6 Mar 16:19 ad8p1@ -> ada1p1 ... I think man glabel may give some ideas but man libgeom would be a starting place if your looking at drivers. > I've read mav@'s 2011 PDF on Enclosure Management > (http://people.freebsd.org/~mav/Enclosure_Management_en.pdf) which shows a > work-in-progress driver and getencstat which does what I need, but it looks > like the project's not been committed yet. Sounds like this is your best bet. Find out how close he is to release and offer to test, help push to be accepted in trunk.