• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Defect: /etc/rc.d/hostid file for ZFS not generated from UUID

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 3 Posters 3.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 4
    4o4rh
    last edited by 4o4rh Nov 24, 2022, 12:54 PM Mar 18, 2019, 10:04 PM

    my base system has a UUID in dmidecode, but i guess the error below comes from an individual component.

    which DMI fields are being looked at to produce the below message. Thanks again

    php-cgi: rc.bootup: Creating rrd update script
    /etc/rc.d/hostid: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one
    kernel: done.

    i tried grep on the pfsense source code and get no hits for "unable to figure out a UUID from DMI data" or any shortened form...I want to find the source code generating the message, to see which DMI fields are required to be populated

    4 1 Reply Last reply Mar 20, 2019, 9:03 PM Reply Quote 0
    • 4
      4o4rh @4o4rh
      last edited by 4o4rh Mar 6, 2022, 8:24 PM Mar 20, 2019, 9:03 PM

      @gwaitsi to get rid of this message if you are using a cheap chinese no brand box,
      i set the following DMI values using the codes are for AMI BIOS with AMIDEDOS.EXE

      In AMIBIOS the fields are for System, Baseboard (Planar in freebsd), Chassis.

      /SM "Qotom Technology Limited" write
      /SP "Q1900G4-M" write 
      /SV "v1.1" write
      /SS "QDX08190xxxx" write
      /SK "Q190G4U-S01" write
      /SF "Mini-PC J1900" write
      
      /BM "Qotom Technology Limited" write
      /BP "Q1900G4-M" write
      /BV "v1.1" write
      /BS "QDX08190xxxx" write
      /BT "Q1900G4-M" write 
      /BLC "KG" write
      
      /CM "Qotom Technology Limited" write
      /CV "Q190G4U-S01" write
      /CS "QDX08190xxxx" write
      /CSK "Q190G4U-S01" write
      /CA "Q1900G4-M" write
      
      /SU AUTO
      
      1 Reply Last reply Reply Quote 0
      • B
        brtlvrs
        last edited by Nov 24, 2022, 8:42 AM

        @gwaitsi The message is generated in the script mentioned
        /etc/rc.d/hostid

        I've used the command
        kenv -q smbios.system.uuid
        to see what kind of uuid it gets from the smbios
        My uuid was on the blacklist.
        So I changed it with the AMIDEEFIx64.EFI with option /SU AUTO

        I've found the software on this site
        https://download.schenker-tech.de/package/dmi-edit-efi-ami/

        4 1 Reply Last reply Nov 24, 2022, 9:10 AM Reply Quote 0
        • 4
          4o4rh @brtlvrs
          last edited by 4o4rh Nov 24, 2022, 1:12 PM Nov 24, 2022, 9:10 AM

          @brtlvrs

          Thanks for your leadin.
          It seems this is a defect that was fixed in opnsense but has not been fixed in pfsense.
          With your information and the
          https://forum.opnsense.org/index.php?topic=7787.0
          https://github.com/opnsense/core/commit/e49a6176
          I was able to workout, running the scripts in this order
          /etc/rc.d/hostid start
          /etc/rc.d/hostid_save start
          causes the generation of the /etc/hostid which contains the retrieved value from
          kenv -q smbios.system.uuid
          checked after reboot and the file sticks.
          Not sure what the consequences are, but i understand this is required for ZFS

          1 Reply Last reply Reply Quote 2
          • 4 4o4rh referenced this topic on Nov 24, 2022, 1:12 PM
          • 4 4o4rh referenced this topic on Nov 24, 2022, 1:14 PM
          • S
            stephenw10 Netgate Administrator
            last edited by Nov 24, 2022, 7:12 PM

            That value is unused as far as I know. It's an ugly message but it does nothing. That said it looks like a simple enough fix. Open a bug report. Or a pull request.

            Steve

            1 Reply Last reply Reply Quote 0
            • N NOCling referenced this topic on Jan 6, 2024, 10:28 AM
            • B bmeeks referenced this topic on Jan 18, 2025, 10:38 PM
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received