From owner-freebsd-current@freebsd.org Mon Oct 14 02:56:30 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 0D288BE030 for ; Mon, 14 Oct 2019 02:56:30 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id 46s39Q5tYRz3MBQ for ; Mon, 14 Oct 2019 02:56:25 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp14-2-104-13.adl-apt-pir-bras32.tpg.internode.on.net (HELO midget.dons.net.au) ([14.2.104.13]) by ipmail07.adl2.internode.on.net with ESMTP; 14 Oct 2019 13:26:22 +1030 Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.2/8.15.2) with ESMTPS id x9E2txKZ018943 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 14 Oct 2019 13:26:17 +1030 (ACDT) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.2/8.15.2/Submit) id x9E2nWoG011978 for ; Mon, 14 Oct 2019 13:19:32 +1030 (ACDT) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: mailnull set sender to using -f X-MIMEDefang-Relay-be813b1f1da6d6b27d681222cb70cc4f5b642383: 203.31.81.177 Received: from [203.31.81.177] ([203.31.81.177]) by ppp14-2-104-13.adl-apt-pir-bras32.tpg.internode.on.net (envelope-sender ) (MIMEDefang) with ESMTP id x9E2nQPi011975; Mon, 14 Oct 2019 13:19:32 +1030 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Lockdown adaX numbers to allow booting ? From: "O'Connor, Daniel" In-Reply-To: <201909201706.x8KH6Tov048682@hergotha.csail.mit.edu> Date: Mon, 14 Oct 2019 13:19:26 +1030 Cc: slw@zxy.spb.ru, freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <9D676F55-EFEC-4647-BE28-C2C7B9807614@dons.net.au> 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> To: Garrett Wollman X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: 1.3 (*) No, score=1.3 required=5.0 tests=HELO_MISC_IP, RDNS_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 46s39Q5tYRz3MBQ X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of darius@dons.net.au has no SPF policy when checking 150.101.137.131) smtp.mailfrom=darius@dons.net.au X-Spamd-Result: default: False [6.32 / 15.00]; ARC_NA(0.00)[]; GREYLIST(0.00)[pass,meta]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; HAS_XAW(0.00)[]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[dons.net.au]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_MEDIUM(0.97)[0.967,0]; NEURAL_SPAM_LONG(1.00)[1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[131.137.101.150.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(1.85)[ip: (5.45), ipnet: 150.101.0.0/16(2.51), asn: 4739(1.30), country: AU(0.01)] X-Spam: Yes 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: Mon, 14 Oct 2019 02:56:30 -0000 > On 21 Sep 2019, at 02:36, Garrett Wollman = wrote: >=20 > In article <20190920155304.GN3953@zxy.spb.ru>, slw@zxy.spb.ru writes: >=20 >> 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 <=3D> daXY mapping = and >> turn ON led by sas2ircu. >=20 > sesutil does this for you! >=20 > # sesutil locate daXY on > # sesutil locate daXY off >=20 > So long as your enclosure supports SES (all the modern ones I've seen > do) and is enumerable by ses(4). FWIW I find it doesn't work on the Supermicro chassis (SYS-5019S-MR) we = use with SATA disks. [chumphon 2:42] ~> sudo sesutil locate ada0 on sesutil: Count not find the SES id of device 'ada0' (Also I just noticed a spelling error in the above, "Count" should be = "Could") [chumphon 2:42] ~> sudo 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 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 Element 7, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 006 Element 8, Type: Array Device Slot Status: Unknown (0x06 0x00 0x00 0x00) Description: SLOT 007 Using led(4) works: echo 1 | sudo tee /dev/led/ahci0.X.fault=20 (The X lines up with the "ahcich4" part of dmesg for adaX) although I find you can only turn the LED on and not off which limits = it's usefulness somewhat.. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum