Date: Sat, 18 Mar 2023 08:55:09 -0600 From: Warner Losh <imp@bsdimp.com> To: Mark Millard <marklmi@yahoo.com> Cc: Colin Percival <cperciva@freebsd.org>, =?UTF-8?Q?T=C4=B3l_Coosemans?= <tijl@freebsd.org>, Current FreeBSD <freebsd-current@freebsd.org>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>, Baptiste Daroussin <bapt@freebsd.org> Subject: Re: I just updated to main-n261544-cee09bda03c8 based (via source) and now /etc/machine-id and /var/db/machine-id disagree ; more Message-ID: <CANCZdfqm4=RbY7viBJGZP9C1=qp0QgbfVTEe-8btDOQPsiHuWA@mail.gmail.com> In-Reply-To: <ADAA8C68-6154-4DAA-BDC9-BC8B8845E349@yahoo.com> References: <DCAD189B-1CBA-4D5B-B6DB-948A77AC723D.ref@yahoo.com> <DCAD189B-1CBA-4D5B-B6DB-948A77AC723D@yahoo.com> <2cf7d953-2493-9673-5ea3-fba22c694015@freebsd.org> <20230317181547.4d75e897@hal.tijl.coosemans.org> <C18AED00-6CCF-4140-A0AE-B947521E422A@yahoo.com> <D8F42EA8-6105-4E0A-961F-916D61589B98@yahoo.com> <91950753-BDE0-45D5-B0B9-42782BD75C47@yahoo.com> <ADAA8C68-6154-4DAA-BDC9-BC8B8845E349@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b01d9e05f72de1ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 17, 2023 at 9:53=E2=80=AFPM Mark Millard <marklmi@yahoo.com> wr= ote: > This may all be fine. But it still leaves me expecting > that there should be man page(s) covering these hostid > and machine-id files and how they should be handled to > match the usages to which they are put, such as the nfs > use that was referenced. A note/reminder to look up > that material could also be relevant. > It would be great if we could document this. I too recently ran into a mismatch. If you load the /etc/hostid so that the code in jail0_init picks it up and sets the host uuid, then /etc/rc.d/hostid, enabled by default, will come along and see there's no smbios.system.uuid and generate a new uuid and smack that bad-boy into the kern.hostuuid sysctl unconditionally. It was easy enough for me to work around this by setting smbios.system.uuid in the boot env that I was booting from, though. Nothing to do with the upgrade, just that we have multiple mechanisms to specify this stuff, and the code we use today is somewhat less than robust to cover all the cases that should be supported, but wind up being buggy. Warner --000000000000b01d9e05f72de1ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Fri, Mar 17, 2023 at 9:53=E2=80=AF= PM Mark Millard <<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com<= /a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0= px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> This may all be fine. But it still leaves me expecting<br> that there should be man page(s) covering these hostid<br> and machine-id files and how they should be handled to<br> match the usages to which they are put, such as the nfs<br> use that was referenced. A note/reminder to look up<br> that material could also be relevant.<br></blockquote><div><br></div><div>I= t would be great if we could document this. I too recently</div><div>ran in= to a mismatch. If you load the /etc/hostid so that the</div><div>code in ja= il0_init picks it up and sets the host uuid, then</div><div>/etc/rc.d/hosti= d, enabled by default, will come along and</div><div>see there's no smb= ios.system.uuid and generate a new</div><div>uuid and smack that bad-boy in= to the kern.hostuuid sysctl</div><div>unconditionally. It was easy enough f= or me to work</div><div>around this by setting smbios.system.uuid in the bo= ot</div><div>env that I was booting from, though. <br></div><div><br></div>= <div>Nothing to do with the upgrade, just that we have</div><div>multiple m= echanisms to specify this stuff, and the code</div><div>we use today is som= ewhat less than robust to cover all</div><div>the cases that should be supp= orted, but wind up being</div><div>buggy.</div><div><br></div><div>Warner<b= r></div></div></div> --000000000000b01d9e05f72de1ef--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqm4=RbY7viBJGZP9C1=qp0QgbfVTEe-8btDOQPsiHuWA>