From owner-freebsd-questions@freebsd.org Thu Sep 9 20:48:33 2021 Return-Path: Delivered-To: freebsd-questions@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 1071B6774AF for ; Thu, 9 Sep 2021 20:48:33 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from relay.wiredblade.com (relay.wiredblade.com [168.235.95.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4H5B1C5l6mz4k7M for ; Thu, 9 Sep 2021 20:48:31 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (pool-108-48-165-176.washdc.fios.verizon.net [108.48.165.176]) by relay.wiredblade.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256) ; Thu, 9 Sep 2021 20:48:30 +0000 Received: from smtpclient.apple ( [2001:420:c0c4:1001::7]) by tristain.distal.com (OpenSMTPD) with ESMTPSA id 392a3143 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 9 Sep 2021 16:48:29 -0400 (EDT) From: Chris Ross Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Device names in ZFS pools Message-Id: <1D81F7C8-8892-4186-9CAE-593CDB66D3BA@distal.com> Date: Thu, 9 Sep 2021 16:48:28 -0400 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4H5B1C5l6mz4k7M X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cross@distal.com designates 168.235.95.80 as permitted sender) smtp.mailfrom=cross@distal.com X-Spamd-Result: default: False [-2.80 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; R_SPF_ALLOW(-0.20)[+a:relay.dynu.com]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_NA(0.00)[distal.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3842, ipnet:168.235.92.0/22, country:US]; TAGGED_FROM(0.00)[freebsd]; MAILMAN_DEST(0.00)[freebsd-questions]; RECEIVED_SPAMHAUS_PBL(0.00)[108.48.165.176:received] X-Mailman-Approved-At: Sat, 11 Sep 2021 08:06:04 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2021 20:48:33 -0000 Hey there. So, I created a ZFS pool, a RAID-Z with =E2=80=9Cda5 da2 = da3=E2=80=9D. These are then the device names that appeared in =E2=80=9Cz= pool status mypool=E2=80=9D. However, da3 had errors, and I replaced it = by another disk living at da1. Then, I removed the bad disk and moved = things in the enclosure. But, after this, some ids seem to have = changed, and what was originally =E2=80=9Cda5=E2=80=9D is now =E2=80=9Cda4= =E2=80=9D and =E2=80=9Czpool status mypool=E2=80=9D shows: NAME STATE READ WRITE CKSUM mypool ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 diskid/DISK-Z1Z946N90000R546NBZH ONLINE 0 0 0 da2 ONLINE 0 0 0 da1 ONLINE 0 0 0 If I use zdb, I can see that value stored in the =E2=80=9Cpath=E2=80=9D = of each child of the vdev/pool. But, can I _change_ it? I know this is = the reason many people suggest not using device names like I did, but, = if I switch to gpt labels or the like, I=E2=80=98ll still need to update = these in this existing vdev, right? How can I change these path labels? - Chris