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>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000897ab105feaee6ea
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 21, 2023 at 5:52=E2=80=AFPM 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 nd=
a
>> 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 updatin=
g
>> my system to main-n263630-ab3e6234ab6e, at least geom related commands n=
o
>> longer function using nvd0p?. I hit this when trying to use gpart and ge=
li.
>> gpart claims "gpart: No such geom: /dev/nvd0." geli responds (after
>> entering a passphrase) "geli: Provider not found: "/dev/nvd0p7"My previo=
us
>> 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.

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


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

--000000000000897ab105feaee6ea
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Wed, Jun 21, 2023 at 5:52=E2=
=80=AFPM Warner Losh &lt;<a href=3D"mailto:imp@bsdimp.com">imp@bsdimp.com</=
a>&gt; wrote:</div></div><div class=3D"gmail_quote"><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex"><div dir=3D"auto"><div><br><br><div class=3D"gma=
il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jun 21, 2023, 6:22 =
PM Kevin Oberman &lt;<a href=3D"mailto:rkoberman@gmail.com" rel=3D"noreferr=
er" target=3D"_blank">rkoberman@gmail.com</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">Well, they are still around, bu=
t not functional. They are symlinks to nda devices, but the symlinks don&#3=
9;t work well.</div></div></blockquote></div></div><div dir=3D"auto"><br></=
div><div dir=3D"auto">They work for filesystem access.</div></div></blockqu=
ote><div><br></div><div style=3D"font-family:tahoma,sans-serif;font-size:sm=
all" class=3D"gmail_default">Not too surprised, but I didn&#39;t try it. Sh=
ould have looked more closely before sending it.</div><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex"><div dir=3D"auto"><div dir=3D"auto"><br></div>=
<div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204=
);padding-left:1ex"><div dir=3D"ltr"><div style=3D"font-family:tahoma,sans-=
serif;font-size:small">I have no idea when the symlink of nvd to nda happen=
ed, but after updating my system to main-n263630-ab3e6234ab6e, at least geo=
m 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.&q=
uot; geli responds (after entering a passphrase) &quot;geli: Provider not f=
ound: &quot;/dev/nvd0p7&quot;My previous system version was main-n262908-c1=
6e08e5f324.</div></div></blockquote></div></div><div dir=3D"auto"><br></div=
><div dir=3D"auto">These will work with nda. They should likely work with t=
he nvd aliases, but don&#39;t it seems (though you don&#39;t need the /dev/=
 for geom commands).</div><div dir=3D"auto"><br></div><div dir=3D"auto">Was=
 this just a failure of muscle memory, or was there persistent config that =
failed?</div></div></blockquote><div><br></div><div style=3D"font-family:ta=
homa,sans-serif;font-size:small" class=3D"gmail_default">Yes, I had confirm=
ed 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=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=
=3D"auto"><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail=
_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">=
<div style=3D"font-family:tahoma,sans-serif;font-size:small">Was this inten=
tional? If so, why was this change made?=C2=A0 If not, could it be fixed? S=
ince I usually use geli with the /dev/gpt devices, I didn&#39;t notice it r=
ight away, but it could certainly=C2=A0 surprise many users.<br></div></div=
></blockquote></div></div></div></blockquote><div><br></div><div style=3D"f=
ont-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">Comma=
nds 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*=C2=A0 and succeed with nda*.</div><div style=3D"f=
ont-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default"><br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"auto"><d=
iv dir=3D"auto">All these questions are answered in the UPDATING entry from=
 when I switched the default:</div></div></blockquote><div><br></div><div d=
ir=3D"auto"><span class=3D"gmail_default" style=3D"font-family:tahoma,sans-=
serif;font-size:small">I s</span>hould have checked UPDATING.<span class=3D=
"gmail_default" style=3D"font-family:tahoma,sans-serif;font-size:small"></s=
pan></div><div dir=3D"auto"><span class=3D"gmail_default" style=3D"font-fam=
ily:tahoma,sans-serif;font-size:small"></span><br><div dir=3D"auto"><div cl=
ass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div =
dir=3D"ltr"><span class=3D"gmail_signature_prefix">-- </span><br><div dir=
=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><=
div><div dir=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, Part time kid her=
der and retired Network Engineer<br>E-mail: <a href=3D"mailto:rkoberman@gma=
il.com" rel=3D"noreferrer noreferrer" target=3D"_blank">rkoberman@gmail.com=
</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B05568=
3</div></div></div></div></div></div></div></div></div>
</blockquote></div></div></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex">
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr">Kevin=
 Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a h=
ref=3D"mailto:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.com</a=
><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</=
div></div></div></div></div></div></div></div></div>

--000000000000897ab105feaee6ea--



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