From nobody Tue Nov 28 20:03:02 2023 X-Original-To: freebsd-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 4Sftg72Kgyz52TbB for ; Tue, 28 Nov 2023 20:03:15 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sftg70jSWz4bRR for ; Tue, 28 Nov 2023 20:03:15 +0000 (UTC) (envelope-from fjwcash@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3b85c88710eso2218924b6e.3 for ; Tue, 28 Nov 2023 12:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701201793; x=1701806593; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/DBp1+PlGI0oqKKWS91NusrWU4NcdGMIueNbC+7N8F0=; b=cIJ1jHcSyrEhv5W6y49PbYaC3yaMm4ZR+dGHvk245GGyYHz+ogn1sIVBya1OC95dgo FeqFsx1gFreV6HL/qu0V1fpoCs8zisatGh4o3YGPMMntOs4vTAEyAbMZPUDxHhJ/H7P5 VX9G8o2T8QYCOBOu8pCSb0ynDiU7MDZncJPgGI78PYQqcdZlSLXxUeilEdNPVIjDwThW 0u0j5cgRkcN+8Hw/rLERiiFJw8/CS/MTaE+IfISVN/LGChtit+n7Kb8XYxOlckxkDc0+ RvwIG3dVtW7NjS1OU6s7J6WyTA3n72sttT9nDPV0+rQ3L7nSnJD1Xm3XY7sdp9CXCmiP n0Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701201793; x=1701806593; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/DBp1+PlGI0oqKKWS91NusrWU4NcdGMIueNbC+7N8F0=; b=XVuWgUVFRIA4lNxz5QFmx2VfZjiHxIx/RfhJemMUCRhDXDlIdMMsKzovJtjQOf1GdG LZgjN+B18tqfpn9T/ClHDAMInfMlfwFdKFr3l5Bp7jNmtD1rUVRQMpH7FfKKY1HYkUJJ 2977Yh4n7zvx5V9iQNU07TpGahuA/vB9HIk7zcfd7b0SiH1KqodAmQWJGtrnw9kVjryv 3Y2KAplO0mEjbNLUZme1Po80pTE4mn97hQKoQWzQaJGDXgOWjdaRVlNxupOP8Z54nr2R Z9vJsNG4vZ1PwMqT3Oe0tbzdp4FtPImYMzQwvPsSZMgvpdm5ejYwEK/rJx0oEBu896W5 wXwA== X-Gm-Message-State: AOJu0YzhGejUh+qFQboukvIWWNwPKZDz7B8AhAOIkBm0UhPfHfwz+mPo JEYRGkx1x1Cu5CMJUkBtxJF7AzSm8G2qs1Y1AtA= X-Google-Smtp-Source: AGHT+IGEVNnaGe5DWEmdbtuKzsR6lwVL0zVzEhK8t3MNTf7U8okf2IDeacrRCjncas11sZS5Ijye7TK+4vGBu5uPGNk= X-Received: by 2002:a05:6808:18a9:b0:3b8:4d1e:1da with SMTP id bi41-20020a05680818a900b003b84d1e01damr18686040oib.37.1701201793375; Tue, 28 Nov 2023 12:03:13 -0800 (PST) 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 References: <34a54774-004d-40de-bf0d-2985da5bc908@quip.cz> In-Reply-To: <34a54774-004d-40de-bf0d-2985da5bc908@quip.cz> From: Freddie Cash Date: Tue, 28 Nov 2023 12:03:02 -0800 Message-ID: Subject: Re: Missing disk partition devices and GPT lables in /dev/ To: Miroslav Lachman <000.fbsd@quip.cz> Cc: FreeBSD-STABLE Mailing List Content-Type: multipart/alternative; boundary="00000000000095e29b060b3be826" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Sftg70jSWz4bRR --00000000000095e29b060b3be826 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Nov 28, 2023 at 11:51=E2=80=AFAM Miroslav Lachman <000.fbsd@quip.cz= > wrote: > I have strange problem on one of my machines - the disk devices in /dev/ > are only shown as ada0 and ada1 but no partition devices, no devices in > /dev/gpt/ or /dev/gptid/, these directories are completely missing even > though there are GPT labels. > This is FreeBSD 13.2-RELEASE-p5 amd64 on HP Microserver Gen8. Disk are 2 > Seagate NAS 4TB, manually partitioned with gpart utility, zpool created > and then all the date migrated by zfs send and zfs receive from old 2TB > disks. Everything works, system is running but device nodes in /dev/ are > missing. I noticed this only when I want to create gmirrored swap from > ada0p4 and ada1p4 but got "No such file or directory." > > There are only diskid style devices in /dev/diskid/ > Sysctl seems normal to me. > > # sysctl kern.geom.label > kern.geom.label.disk_ident.enable: 1 > kern.geom.label.gptid.enable: 1 > Turn these two (above) off (set to 0). Then reboot. > What can be wrong with this system? > Welcome to the wonderful world of GEOM tasting, "first match wins", and Highlander's "There can be only 1" style of aliasing/labelling. :) The first alias path to a disk that is found (/dev/diskid, /dev/gptid, /dev/gpt, /dev/ada*) and opened causes all other aliases to be hidden. The disk/GPT IDs seem to take precedence over other aliases/labels. If you want to access your disks via GPT labels, then disable the other naming schemes via loader.conf. --=20 Freddie Cash fjwcash@gmail.com --00000000000095e29b060b3be826 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Nov 28, 2023 at 11:51=E2=80=AFAM = Miroslav Lachman <000.fbsd@quip.cz> wrote:

--
--00000000000095e29b060b3be826--