• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    HD info not populating in log

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    17 Posts 3 Posters 139 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.
    • M
      meie1kyl
      last edited by

      Hello all, my company uses FOG to deploy images to large batches (hundreds) of devices. Generally before image deployment, we upgrade either the SSD or RAM. In our latest deployments, devices have had NVME drives but none of our devices with NVME drives are reporting the HD information, which is very helpful if one SSD gets missed. Does anyone have a recommendation to help gather this information? Some example device information is:

      78cd14fb-d173-4b54-8ced-e5130a1693c8-image.png CPU Manufacturer CPU Version CPU Speed CPU Max Speed Memory HD Model HD Firmware HD Serial
      Intel® Corporation Intel® Celeron® 7305L Current Speed: 693 MHz Max Speed: 1100 MHz MemTotal: 7913780 kB

      The SSD information is shown in the BIOS, as seen in the second photo.
      PXL_20260105_161055554.jpg PXL_20260105_161104796.jpg

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @meie1kyl
        last edited by Tom Elliott

        @meie1kyl If you’re able to load into debug mode:

        Please try:

        export hd="/dev/<your_nvme_label>"
        hdparm -i $hd 2>/dev/null | grep Model= || smartctl -i $hd | grep -A2 "Model Number" | awk -F ":" '/Model Number:/{gsub(/ /,""); modelno=$NF};/Serial Number:/{gsub(/ /,""); serialno=$NF};/Firmware Version:/{gsub(/ /,""); fwrev=$NF; print "model="modelno", fwrev="fwrev", serialno="serialno}'
        

        Change <your_nvme_label> with the actual nvme label (nvme0n1 or whatever it shows up as)

        What is the output?

        I have a slightly sneaking suspicion that the NVME is in “RAID” mode and since it’s bios controlled, the machine never actually sees the NVME drive.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        M 2 Replies Last reply Reply Quote 0
        • M
          meie1kyl @Tom Elliott
          last edited by

          @Tom-Elliott There are two NVME slots on these devices, only one is populated. I’m not sure if these devices are capable of software RAID or not. I’ll give your recommendation a shot.

          1 Reply Last reply Reply Quote 0
          • M
            meie1kyl @Tom Elliott
            last edited by meie1kyl

            @Tom-Elliott EDITED- input error. Here are the results from the command you provided:

            PXL_20260105_190545854_preview (Medium).jpeg

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @meie1kyl
              last edited by

              @meie1kyl from that, then can you just run smartctl -i /dev/nvme0n1

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              M 1 Reply Last reply Reply Quote 0
              • M
                meie1kyl @Tom Elliott
                last edited by meie1kyl

                @Tom-Elliott Thanks, I did get the correct info and ran smartctl -i /dev/nvme0n1 and got the following results. How do we get the server to log this info automatically? Really the only information I truly need is the SSD model number.

                PXL_20260105_191318011 (Medium).jpg

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @meie1kyl
                  last edited by Tom Elliott

                  @meie1kyl I think I need you to run a bit more into the debug:

                  Can you run:

                  source /usr/share/fog/lib/funcs.sh
                  getHardDisk
                  
                  echo $hd
                  

                  Basically (just so you’re aware)

                  I am seeing the drive when manually forced to the NVME drive is properly getting the inventory information for that specific drive, but when the machine boots for deploy/inventory tasks it takes whatever drive is returned from the getHardDisk

                  So what I wanted tested first was that the command actually worked appropriately and it appears to be working at least.

                  Next I want to see what the system (in normal operational mode) sees as the main drive.

                  I don’t know where the problem is but at least it doesn’t seem to be a RAID/AHCI mode switch issue (so thank you for that), it helps paint a bigger picture with real information.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    meie1kyl @Tom Elliott
                    last edited by

                    @Tom-Elliott Sure, not a problem 🙂 I didn’t realize more debug was required. The output from the requested commands are: “/dev/nvme0n1”

                    40f54886-9e74-46f4-9201-b8c49e4e09b4-image.png

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @meie1kyl
                      last edited by

                      @meie1kyl Okay then can you try running doInventory and hit enter as needed?

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        meie1kyl @Tom Elliott
                        last edited by

                        @Tom-Elliott there is no output when I run doInventory

                        Tom ElliottT 1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @meie1kyl
                          last edited by Tom Elliott

                          @meie1kyl Now run:

                          echo $hdinfo

                          If that houses the right information, we should then know I need to look at the code (on the UI side) to see why its not breaking down correctly

                          I know it’s a process, I apologize.

                          We can then just run the fog.inventory shell command too.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            meie1kyl @Tom Elliott
                            last edited by

                            @Tom-Elliot I appreciate the help. No output from echo $hdinfo either

                            babf0ccd-e87f-47b5-aca3-bf6817f4b3e1-image.png

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              rodluz Developer @meie1kyl
                              last edited by

                              @meie1kyl I may be wrong but I have a feeling you are running an old version of the inits. Can you run these commands:

                              source /usr/share/fog/lib/funcs.sh
                              echo $initversion
                              

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                meie1kyl @rodluz
                                last edited by

                                @rodluz 98ba705d-48d7-4765-9d83-1c47b6399d3d-image.png

                                Tom ElliottT R 2 Replies Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott @meie1kyl
                                  last edited by

                                  @meie1kyl Indeed that is a VERY old init 🙂

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                  M 1 Reply Last reply Reply Quote 0
                                  • R
                                    rodluz Developer @meie1kyl
                                    last edited by

                                    @meie1kyl The fix for this issue was done in August 2023 and released in init version 20231208. My guess is that you haven’t updated your FOG install since 2023, or else the init should have “auto” updated.
                                    I recommend that you update your FOG server to the latest stable version since there have been many fixes and security updates since 2023.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      meie1kyl @Tom Elliott
                                      last edited by

                                      @Tom-Elliott Is there a guide for updating? I was not the person that initially set up the server unfortunately.

                                      1 Reply Last reply Reply Quote 0
                                      • 1 / 1
                                      • First post
                                        Last post

                                      121

                                      Online

                                      12.5k

                                      Users

                                      17.5k

                                      Topics

                                      156.1k

                                      Posts
                                      Copyright © 2012-2025 FOG Project