Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2023 19:46:53 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Where did the nvd devices go?
Message-ID:  <CAN6yY1tgZ7d_Cxt2GKEr7rn8tsOq2PHU_sZU=iOOc=gQS5eAcg@mail.gmail.com>
In-Reply-To: <CANCZdfr6BN6S5TKcCuifq-RSNpnRfaf-Zf_Y%2BMXwxF96N3CcJQ@mail.gmail.com>
References:  <CAN6yY1s-8T4yoafCy6sPTgqw6ndMYv7hj%2BHU-fcO2QhnhUCRWQ@mail.gmail.com> <CANCZdfr6BN6S5TKcCuifq-RSNpnRfaf-Zf_Y%2BMXwxF96N3CcJQ@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Jun 21, 2023 at 5:52 PM Warner Losh <imp@bsdimp.com> wrote:

>
>
> On Wed, Jun 21, 2023, 6:22 PM Kevin Oberman <rkoberman@gmail.com> wrote:
>
>> Well, they are still around, but not functional. They are symlinks to nda
>> devices, but the symlinks don't work well.
>>
>
> They work for filesystem access.
>

Not too surprised, but I didn't try it. Should have looked more closely
before sending it.

>
> I have no idea when the symlink of nvd to nda happened, but after updating
>> my system to main-n263630-ab3e6234ab6e, at least geom related commands no
>> longer function using nvd0p?. I hit this when trying to use gpart and geli.
>> gpart claims "gpart: No such geom: /dev/nvd0." geli responds (after
>> entering a passphrase) "geli: Provider not found: "/dev/nvd0p7"My previous
>> system version was main-n262908-c16e08e5f324.
>>
>
> These will work with nda. They should likely work with the nvd aliases,
> but don't it seems (though you don't need the /dev/ for geom commands).
>
> Was this just a failure of muscle memory, or was there persistent config
> that failed?
>

Yes, I had confirmed that nda worked and I know that /dev is not required
for geom commands, but I've never bothered to test whether gpt/label worked
and I tend to use labels.

>
> Was this intentional? If so, why was this change made?  If not, could it
>> be fixed? Since I usually use geli with the /dev/gpt devices, I didn't
>> notice it right away, but it could certainly  surprise many users.
>>
>
Commands used were "gpart show nvd0" and "geli attach -d -k ************
/dev/nvd0p7". Also tried both with and without the "/dev" which fail for
nvd*  and succeed with nda*.

All these questions are answered in the UPDATING entry from when I switched
> the default:
>

I should have checked UPDATING.

-- 
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkoberman@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
>


-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">On Wed, Jun 21, 2023 at 5:52 PM Warner Losh &lt;<a href="mailto:imp@bsdimp.com">imp@bsdimp.com</a>&gt; wrote:</div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 21, 2023, 6:22 PM Kevin Oberman &lt;<a href="mailto:rkoberman@gmail.com" rel="noreferrer" target="_blank">rkoberman@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small">Well, they are still around, but not functional. They are symlinks to nda devices, but the symlinks don&#39;t work well.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">They work for filesystem access.</div></div></blockquote><div><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Not too surprised, but I didn&#39;t try it. Should have looked more closely before sending it.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small">I have no idea when the symlink of nvd to nda happened, but after updating my system to main-n263630-ab3e6234ab6e, at least geom related commands no longer function using nvd0p?. I hit this when trying to use gpart and geli. gpart claims &quot;gpart: No such geom: /dev/nvd0.&quot; geli responds (after entering a passphrase) &quot;geli: Provider not found: &quot;/dev/nvd0p7&quot;My previous system version was main-n262908-c16e08e5f324.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">These will work with nda. They should likely work with the nvd aliases, but don&#39;t it seems (though you don&#39;t need the /dev/ for geom commands).</div><div dir="auto"><br></div><div dir="auto">Was this just a failure of muscle memory, or was there persistent config that failed?</div></div></blockquote><div><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Yes, I had confirmed that nda worked and I know that /dev is not required for geom commands, but I&#39;ve never bothered to test whether gpt/label worked and I tend to use labels.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small">Was this intentional? If so, why was this change made?  If not, could it be fixed? Since I usually use geli with the /dev/gpt devices, I didn&#39;t notice it right away, but it could certainly  surprise many users.<br></div></div></blockquote></div></div></div></blockquote><div><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Commands used were &quot;gpart show nvd0&quot; and &quot;geli attach -d -k ************ /dev/nvd0p7&quot;. Also tried both with and without the &quot;/dev&quot; which fail for nvd*  and succeed with nda*.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">All these questions are answered in the UPDATING entry from when I switched the default:</div></div></blockquote><div><br></div><div dir="auto"><span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I s</span>hould have checked UPDATING.<span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"></span></div><div dir="auto"><span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"></span><br><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" rel="noreferrer noreferrer" target="_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div>
</blockquote></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1tgZ7d_Cxt2GKEr7rn8tsOq2PHU_sZU=iOOc=gQS5eAcg>