From owner-freebsd-questions@freebsd.org Tue May 14 19:02:18 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB31A1595A91 for ; Tue, 14 May 2019 19:02:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 888AA80574; Tue, 14 May 2019 19:02:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.103.173.136]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPA (Nemesis) id 1MLiPA-1h95ps1yDo-00Hg3V; Tue, 14 May 2019 21:02:04 +0200 Date: Tue, 14 May 2019 21:02:03 +0200 From: Polytropon To: hartzell@alerce.com Cc: Matthew Seaman , freebsd-questions@freebsd.org Subject: Re: Suggestions for working with unstable nvme dev names in AWS Message-Id: <20190514210203.3d951fb8.freebsd@edvax.de> In-Reply-To: <23770.58821.826610.399467@alice.local> References: <23770.10599.687213.86492@alice.local> <08660a2a-489f-8172-22ee-47aeba315986@FreeBSD.org> <23770.58821.826610.399467@alice.local> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:DeGo8y16mLqY/wfbPQWJruk4+aZB2X2i26u3m3fynpu46JYgY2+ ms1bv1UeZZkmJnUZZIrb+gAx1DX0UuUU9eWEg4PPLh5Z2JwOmKlSNIAG8dOu3eGkNM5piBd zKHztmmiViEOQ7f0Sml4uyxU6gAmWpkkec27KwIB8N5ocXXz+026Taw4xktLytL0Xu6Q0U3 2T+pi9J8fo4NomWNiBZ4Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:y4fK/wQnGik=:AqD4rWROMkurPg6ItTqX3T 13ScelQpwA6/xf90NpPEb9eCjaW54zHoFQY9ueNUIzBOK2PKnjiuOQlToMAJJsnkg9TcpjOCc kRlfUkNIZ/B7Pf7sekLya4I16pnerH1B2mXDCelg6leqgUloHqz9DxBZ567sU5SEBatpqXPP+ 8ycJ403bjLMo39ILJzQdgdSeMwLDu/DQnaTn7oSIBbgrfncl8Kyb9e3Hvmc83laiU91SFn0yb rzGy9iTjcF73+7eyrjKFHquyo+QtmOa8WQorKQ9o0FwTq8btKyGsiU3ydv4igLHVX5+Yzn1fj uWAMwcco0Qbl3j+Yn6FLFH5jBVpeVdXdpguFXUzrNSo/dVARKJkgalW7OqlA09fxTqFsU67UE qOy7W+EC/sTu/+RTdoVdxxABaB9qiNJ3sIqCf0b6PFrt4fwz0+qgeblRTSpJ6xcgxj/xJiAcw XYMctDz0rlMnUBAFN9P27+mghA7Q22xOZxtpRLV32pRQBXDL+e9G1j4OPI6gBsS7O8CucUXtI 5AUwxxGKwABkw6aS/Zfyd+dmNmGRxrjDsg0Y08fN3+OPNX+lP8dj/xv6v8BJRVSLv2Y+XERpQ 6ftMln+QE4tMIhNXSJuzmjWfMwGKt0CaXCoJyOyj5YQzqQ8lpWkBQf2jNpIbvyscj5KLqVWyV 3tUTcpsMInOfDEnLYGItswue1xWjUdVsDHDyf2VgBew8iMS/3QHprOS8crMAkI8kDA1b7ZfEB bCF0bOybwpi4mpAcudVBBO63jtEkTCRdPYRHaGR22he7LtE/2OQH1GgXLoM= X-Rspamd-Queue-Id: 888AA80574 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.71 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[mx00.schlund.de,mx01.schlund.de]; RECEIVED_SPAMHAUS_PBL(0.00)[136.173.103.188.zen.spamhaus.org : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.92)[0.922,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.981,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.999,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.42)[ip: (1.70), ipnet: 212.227.0.0/16(-1.50), asn: 8560(1.91), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2019 19:02:18 -0000 On Tue, 14 May 2019 08:59:01 -0700, George Hartzell wrote: > Matthew Seaman writes: > > On 14/05/2019 03:35, George Hartzell wrote: > > > Can anyone speak to the current state of device names for nvme disks > > > on AWS using the FreeBSD 12 AMI's? Is name-stability an issue? If > > > so, is there a work-around? > > > > I don't know about device name stability in AWS instances, but if you > > are using ZFS, then shuffling the disks around should not make any > > difference. With physical hardware it should be possible to eg. pop the > > disks out of one chassis and insert them into another in whatever order, > > and the system will still boot correctly. This sounds like the virtual > > equivalent of that. > > [...] > > Thanks for the response! > > Yes, once I have them set up (ZFS or labeled), it doesn't matter what > device names they end up having. For now I just do the setup by hand, > poking around a bit. Same trick in the Linux world, you end up > referring to them by their UUID or .... In addition to what Matthew suggested, you could use UFS-IDs in case the disks are initialized with UFS. You can find more information here (at the bottom of the page): https://www.freebsd.org/doc/handbook/geom-glabel.html You'll find the explanation of "UFS label", "glabel label", and "UFS ID" there. A description of "gpart label" is provided here: http://www.wonkity.com/~wblock/docs/html/disksetup.html#_booting_with_uefi Always remember that the different kinds of label refer to specific things, like partitions or file systems. With ZFS of course, this is a lot easier, and the "ZFS label" doesn't just identify the disk device (or virtual equivalent) itself, but includes information about its function within a ZFS installation. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...