From owner-freebsd-current@freebsd.org Fri Sep 20 21:06:49 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F966127A47 for ; Fri, 20 Sep 2019 21:06:49 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46ZmVc349Mz4dx7 for ; Fri, 20 Sep 2019 21:06:48 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1iBQ73-0004BV-I8; Sat, 21 Sep 2019 00:06:45 +0300 Date: Sat, 21 Sep 2019 00:06:45 +0300 From: Slawa Olhovchenkov To: Garrett Wollman Cc: freebsd-current@freebsd.org Subject: Re: Lockdown adaX numbers to allow booting ? Message-ID: <20190920210645.GO3953@zxy.spb.ru> References: <20190919140219.GE2863@home.opsec.eu> <7E0AE025-596C-457E-BC40-41217857A3CD@me.com> <20190919155713.GG2863@home.opsec.eu> <3C855A39-BF79-4430-98CB-CB9174768E11@freebsd.org> <20190920143531.GB38096@zxy.spb.ru> <20190920155304.GN3953@zxy.spb.ru> <201909201706.x8KH6Tov048682@hergotha.csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201909201706.x8KH6Tov048682@hergotha.csail.mit.edu> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 46ZmVc349Mz4dx7 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of slw@zxy.spb.ru has no SPF policy when checking 195.70.199.98) smtp.mailfrom=slw@zxy.spb.ru X-Spamd-Result: default: False [2.83 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.00)[country: RU(0.01)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[zxy.spb.ru]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.41)[0.406,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.52)[0.524,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:5495, ipnet:195.70.192.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Sep 2019 21:06:49 -0000 On Fri, Sep 20, 2019 at 01:06:29PM -0400, Garrett Wollman wrote: > In article <20190920155304.GN3953@zxy.spb.ru>, slw@zxy.spb.ru writes: > > >Location of device in multi-chassis storage system is different story. > >I am don't know how to field engineer insert disks in chassis. > >For me simple is find in /var/run/dmesg.boot S/N <=> daXY mapping and > >turn ON led by sas2ircu. > > sesutil does this for you! > > # sesutil locate daXY on > # sesutil locate daXY off > > So long as your enclosure supports SES (all the modern ones I've seen > do) and is enumerable by ses(4). In theory there is no difference between theory and practice. But, in practice, there is. # sesutil map ses0: Enclosure Name: AHCI SGPIO Enclosure Enclosure ID: 0 Element 0, Type: Array Device Slot Status: Unsupported (0x00 0x00 0x00 0x00) Element 1, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 000 Element 2, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 001 Element 3, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 002 Element 4, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 003 ses1: Enclosure Name: AHCI SGPIO Enclosure Enclosure ID: 0 Element 0, Type: Array Device Slot Status: Unsupported (0x00 0x00 0x00 0x00) Element 1, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 000 Element 2, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 001 Element 3, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 002 Element 4, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 003 Element 5, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 004 Element 6, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 005 # sesutil locate ada0 on sesutil: Count not find the SES id of device 'ada0' # sesutil locate da0 on sesutil: Count not find the SES id of device 'da0' # sas2ircu 0 DISPLAY LSI Corporation SAS2 IR Configuration Utility. Version 20.00.00.00 (2014.09.18) Copyright (c) 2008-2014 LSI Corporation. All rights reserved. Read configuration has been initiated for controller 0 ------------------------------------------------------------------------ Controller information ------------------------------------------------------------------------ Controller type : SAS2308_1 BIOS version : 7.39.02.00 Firmware version : 20.00.07.00 Channel description : 1 Serial Attached SCSI Initiator ID : 0 Maximum physical devices : 255 Concurrent commands supported : 8192 Slot : 1 Segment : 0 Bus : 1 Device : 0 Function : 0 RAID Support : No ------------------------------------------------------------------------ IR Volume information ------------------------------------------------------------------------ ------------------------------------------------------------------------ Physical device information ------------------------------------------------------------------------ Initiator at ID #0 Device is a Hard disk Enclosure # : 1 Slot # : 0 SAS Address : 4433221-1-0300-0000 State : Ready (RDY) Size (in MB)/(in sectors) : 7630885/15628053167 Manufacturer : ATA Model Number : TOSHIBA HDWN180 Firmware Revision : GX2M Serial No : 79HSK0PHFAVG GUID : N/A Protocol : SATA Drive Type : SATA_HDD Device is a Hard disk Enclosure # : 1 Slot # : 1 SAS Address : 4433221-1-0200-0000 State : Ready (RDY) Size (in MB)/(in sectors) : 7630885/15628053167 Manufacturer : ATA Model Number : TOSHIBA HDWN180 Firmware Revision : GX2M Serial No : 79CVK0OEFAVG GUID : N/A Protocol : SATA Drive Type : SATA_HDD ....