From nobody Thu Nov 30 02:16:47 2023 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sgfvv5P6Cz52blZ for ; Thu, 30 Nov 2023 02:16:59 +0000 (UTC) (envelope-from spork@bway.net) Received: from smtp2.bway.net (smtp2.bway.net [216.220.96.28]) (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 4Sgfvv3cggz3Zxs for ; Thu, 30 Nov 2023 02:16:59 +0000 (UTC) (envelope-from spork@bway.net) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (pool-71-187-164-80.nwrknj.fios.verizon.net [71.187.164.80]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: spork@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id C9CD93FA5C; Wed, 29 Nov 2023 21:16:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1701310618; bh=S+4kTfTArJfhNXBoavXoxOa/DTReRP5y3hwWFkEYOAw=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=CD80gy0A+Idh5EF2wnEaVTZeXI42goNA5PpGJojyGuKjUAA0AU02AHBMAOKZ6vmb5 ICmt/pwRviUyBfXdagKEI98c7APsQLEC++tohe0mAI37OYhY8isNctBpZ5t3/Y9W0C eBPAaLoN1DVHz46aZkmvhNOmwjmo6MD6XjJOswRI= Content-Type: text/plain; charset=utf-8 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: Missing disk partition devices and GPT lables in /dev/ From: Charles Sprickman In-Reply-To: Date: Wed, 29 Nov 2023 21:16:47 -0500 Cc: Michael Proto , stable@freebsd.org, Warner Losh Content-Transfer-Encoding: quoted-printable Message-Id: <847A9C4A-54A9-4226-A78A-B9BFCF66EBF6@bway.net> References: <34a54774-004d-40de-bf0d-2985da5bc908@quip.cz> <6b713a9c-c778-45fb-9626-9ad05df28d50@quip.cz> To: Miroslav Lachman <000.fbsd@quip.cz> X-Mailer: Apple Mail (2.3774.200.91.1.1) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8059, ipnet:216.220.96.0/19, country:US] X-Rspamd-Queue-Id: 4Sgfvv3cggz3Zxs > On Nov 29, 2023, at 6:20=E2=80=AFPM, Miroslav Lachman = <000.fbsd@quip.cz> wrote: >=20 > On 29/11/2023 19:23, Michael Proto wrote: >=20 >> This has always been the case on my systems going back to at least = 11.0 (when I first started using ZFS) using diskid over gpt. When I = import a vdev via /dev/disk/SERIALp1 its associated /dev/ada1p1 = disappears. >=20 > I never created / imported pool by /dev/diskid/ serials and I don't = understand why I was still getting /dev/diskid/ entries even if they = were disabled by sysctl (may be sysctl.conf is applied to late?) Yeah, as far as I know, those go in /boot/loader.conf - at least that's = where the installer puts them... I suspect that's the root of all this.. Charles >=20 > I fixed it by booting from USB flash drive, manually forced import = with gpt labels, export and reboot: >=20 > # zpool import -f -d /dev/gpt/ -R /tank1 tank1 > # zpool import -f -d /dev/gpt/ -R /sys0 sys >=20 > # cp /etc/zfs/zpool.cache /sys0/etc/zfs/ >=20 > # zpool export sys > # zpool export tank1 >=20 > Now after reboot I have these aliases for partitions: >=20 > # ls -1 /dev/{diskid,gpt,gptid,ada*} > ls: /dev/diskid: No such file or directory > /dev/ada0 > /dev/ada0p1 > /dev/ada0p2 > /dev/ada0p3 > /dev/ada0p4 > /dev/ada0p5 > /dev/ada1 > /dev/ada1p1 > /dev/ada1p2 > /dev/ada1p3 > /dev/ada1p4 > /dev/ada1p5 >=20 > /dev/gpt: > bootC90 > bootG8V > diskC90sys > diskC90tank0 > diskG8Vsys > diskG8Vtank0 > efiC90 > efiG8V > swapC90 > swapG8V >=20 > /dev/gptid: > 700a2d08-8be4-11ee-8287-98f2b3f71a30 > 719acc14-8be4-11ee-8287-98f2b3f71a30 > ebaf351d-8bec-11ee-8287-98f2b3f71a30 > ec5f6315-8be4-11ee-8287-98f2b3f71a30 > ee024e16-8be4-11ee-8287-98f2b3f71a30 > fd55c994-8bec-11ee-8287-98f2b3f71a30 >=20 > And pool is made of GPT lables as I like >=20 > # zpool list -v | cut -c1-28 > NAME SIZE > sys 39.5G > mirror-0 39.5G > gpt/diskG8Vsys 40G > gpt/diskC90sys 40G > tank1 3.58T > mirror-0 3.58T > gpt/diskG8Vtank0 3.59T > gpt/diskC90tank0 3.59T >=20 >=20 > Kind regards > Miroslav Lachman >=20 >=20