From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 19 19:52:15 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B6A005B1 for ; Sat, 19 Oct 2013 19:52:15 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from yoshi.bluerosetech.com (yoshi.bluerosetech.com [IPv6:2607:f2f8:a450::66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9DAD92D6E for ; Sat, 19 Oct 2013 19:52:15 +0000 (UTC) Received: from chombo.houseloki.net (c-76-27-220-79.hsd1.wa.comcast.net [76.27.220.79]) by yoshi.bluerosetech.com (Postfix) with ESMTPSA id 8CB91E6069; Sat, 19 Oct 2013 12:52:14 -0700 (PDT) Received: from [IPv6:2601:7:1680:365:ecd7:4ff9:1462:7499] (unknown [IPv6:2601:7:1680:365:ecd7:4ff9:1462:7499]) by chombo.houseloki.net (Postfix) with ESMTPSA id 5FDCDDF4; Sat, 19 Oct 2013 12:52:13 -0700 (PDT) Message-ID: <5262E2DD.6030703@bluerosetech.com> Date: Sat, 19 Oct 2013 12:51:57 -0700 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Alexey Egorov , freebsd-hackers@freebsd.org Subject: Re: determine drive's SAS port References: <1382192148.119437035@f257.i.mail.ru> In-Reply-To: <1382192148.119437035@f257.i.mail.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 19:52:15 -0000 On 10/19/2013 7:15 AM, Alexey Egorov wrote: > Hello all, > > I have a server with LSI HBA card, and when I remove drive I can see > following messages in log: > > (da0:mps0:0:5:0): lost device - 0 outstanding, 2 refs > (da0:mps0:0:5:0): removing device entry > > Is there a way to determine physical port (number "5" in > "(da0:mps0:0:5:0)") when drive is inserted? (I need this to be able > to create device symlinks based on physical port). Many RAID cards can indicate a port by blinking the activity light. If not, perhaps you can trace the cables and get a PCB diagram? This is exactly why I write the WWN, serial and, for ZFS/graid, GPT label on a visible edge of the disk/sled.