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

Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify

Scheduled Pinned Locked Moved
Hardware Compatibility
5
38
5.1k
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.
  • T
    Tom Elliott @AlexPDX
    last edited by Tom Elliott Mar 16, 2023, 6:21 AM Mar 16, 2023, 12:02 PM

    @AlexPDX said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

    HDIO_GET_IDENTITY failed: Inappropriate ioctl for device

    https://opensource.com/article/21/9/nvme-cli

    May need to see if we have nvme-cli on the FOS systems.

    Specifically you would use nvme list /dev/nvme0n1 and should provide details.

    Trying to figure out what we’d need.

    Maybe something like:

    hdinfo=$(hdparm -i $hd 2>/dev/null || nvme id-ctrl $hd | awk  '/mn[ ]+:/ {split($0, model, ": "); modelno = model[2]} /sn[ ]+:/ {split($0, serial, ": "); serialno = serial[2]} /fr[ ]+:/ {split($0, firmware, ": "); fwrev = firmware[2]} END {gsub("^[[:space:]]+|[[:space:]]+$", "", modelno);gsub("^[[:space:]]+|[[:space:]]+$", "", fwrev);gsub("^[[:space:]]+|[[:space:]]+$","",serialno);print "model="modelno",fwrev="fwrev",serialno="serialno}')
    

    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

    T 1 Reply Last reply Mar 16, 2023, 12:03 PM Reply Quote 0
    • T
      Tom Elliott @Tom Elliott
      last edited by Mar 16, 2023, 12:03 PM

      @Tom-Elliott said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

      nvme list $hd | tail -1 | awk -F" {2,}" ‘{print “model=”$4",fwrev=“$8”,serialno="$NF}’

      @AlexPDX Can you try running the command:

      nvme list /dev/nvme0n1 | tail -1 | awk -F" {2,}" '{print "model="$4",fwrev="$8",serialno="$NF}'
      

      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

      A 1 Reply Last reply Mar 16, 2023, 12:06 PM Reply Quote 0
      • A
        AlexPDX @Sebastian Roth
        last edited by Mar 16, 2023, 12:04 PM

        @Sebastian-Roth said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

        nvme id-ctrl /dev/nvme0n1 | grep mn

        This one worked 🙂
        [Thu Mar 16 root@fogclient /]# nvme id-ctrl /dev/nvme0n1 | grep mn
        mn : KINGSTON SNV2S250G
        mntmt : 273
        mnan : 0

        1 Reply Last reply Reply Quote 0
        • A
          AlexPDX @Tom Elliott
          last edited by Mar 16, 2023, 12:06 PM

          @Tom-Elliott said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

          nvme list /dev/nvme0n1 | tail -1 | awk -F" {2,}" ‘{print “model=”$4",fwrev=“$8”,serialno="$NF}’

          this returned :
          model=1,fwrev=512,serialno=ELFK0S.4

          And :

          smartctl --info /dev/nvme0n1 | grep Model
          returned:
          Model Number: KINGSTON SNV2S250G

          T 1 Reply Last reply Mar 16, 2023, 12:20 PM Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Mar 16, 2023, 12:12 PM

            @AlexPDX @george1421 @Tom-Elliott Great we got this figured out. Please let us discuss the details on github: https://github.com/FOGProject/fos/issues/72

            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
            • T
              Tom Elliott @AlexPDX
              last edited by Mar 16, 2023, 12:20 PM

              @AlexPDX can you try:

              nvme id-ctrl /dev/nvme0n1 | awk  '/mn[ ]+:/ {split($0, model, ": "); modelno = model[2]} /sn[ ]+:/ {split($0, serial, ": "); serialno = serial[2]} /fr[ ]+:/ {split($0, firmware, ": "); fwrev = firmware[2]} END {gsub("^[[:space:]]+|[[:space:]]+$", "", modelno);gsub("^[[:space:]]+|[[:space:]]+$", "", fwrev);gsub("^[[:space:]]+|[[:space:]]+$","",serialno);print "modelno="modelno",fwrev="fwrev",serialno="serialno}'
              

              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

              A 1 Reply Last reply Mar 16, 2023, 12:24 PM Reply Quote 0
              • A
                AlexPDX @Tom Elliott
                last edited by Mar 16, 2023, 12:24 PM

                @Tom-Elliott said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

                nvme id-ctrl /dev/nvme0n1 | awk ‘/mn[ ]+:/ {split($0, model, “: “); modelno = model[2]} /sn[ ]+:/ {split($0, serial, “: “); serialno = serial[2]} /fr[ ]+:/ {split($0, firmware, “: “); fwrev = firmware[2]} END {gsub(”^[[:space:]]+|[[:space:]]+$”, “”, modelno);gsub(”^[[:space:]]+|[[:space:]]+$”, “”, fwrev);gsub(”^[[:space:]]+|[[:space:]]+$”,“”,serialno);print "modelno=“modelno”,fwrev=“fwrev”,serialno="serialno}’

                modelno=KINGSTON SNV2S250G,fwrev=ELFK0S.4,serialno=50026B7685F13C1E

                1 Reply Last reply Reply Quote 0
                • A
                  AlexPDX @Sebastian Roth
                  last edited by AlexPDX Mar 21, 2023, 8:16 AM Mar 21, 2023, 2:12 PM

                  @Sebastian-Roth said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

                  updating to the latest release 1.5.10

                  …i did this and i think i messed up my server 😐
                  fog_error_1.5.10.log
                  foginstall.log

                  …can someone please help me with the correct steps to update fron 1.5.9 to 1.5.10 ? 😞

                  Im trying to access the Web GUI but nothing happens 😞 …just a blank page

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Mar 21, 2023, 10:21 PM

                    @AlexPDX said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

                    …can someone please help me with the correct steps to update fron 1.5.9 to 1.5.10 ?

                    Sorry for the late reply. From the logs it looks like it just bailed out when trying to create a symlink to the log files. I have never seen this happen before. Please issue the command rm -rf /var/log/fog (as root) and then re-run the installer.

                    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
                    • A
                      AlexPDX
                      last edited by Mar 22, 2023, 1:35 PM

                      @Sebastian-Roth said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

                      command rm -rf /var/log/fog (as root) and then re-run the installer

                      Ok so that did the trick, i was able to finish the installation without getting error messages, but, at the last step where i have to :

                      • You still need to install/update your database schema.

                      • This can be done by opening a web browser and going to:

                        http://192.168.192.111/fog/management
                        …the web page gives me the “192.168.192.111 is currently unable to handle this request. HTTP ERROR 500” error 😞

                      If i press Enter in the SSL terminal, the installation finishes but i get the same error 500 when im trying to connect on the Web Page of this server 😞
                      Here are the .log files (Btw, dont mind the HQ-GL.zxzxzx.zxzxzx) :
                      www-error.log
                      httpd_error.log
                      php-fpm_error.log
                      i don’t see any issues here :
                      a35d37a8-02f1-4e99-961d-1988a75d7ed4-image.png

                      T 1 Reply Last reply Mar 22, 2023, 5:44 PM Reply Quote 0
                      • T
                        Tom Elliott @AlexPDX
                        last edited by Mar 22, 2023, 5:44 PM

                        @AlexPDX at 169, remove the , you see there.

                        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
                        • S
                          Sebastian Roth Moderator
                          last edited by Mar 23, 2023, 12:06 AM

                          @AlexPDX Yes, remove the , as suggested by Tom. I will fix this in dev-branch soon.

                          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

                          A 1 Reply Last reply Mar 23, 2023, 6:07 AM Reply Quote 0
                          • A
                            AlexPDX @Sebastian Roth
                            last edited by AlexPDX Mar 23, 2023, 12:12 AM Mar 23, 2023, 6:07 AM

                            @Sebastian-Roth said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

                            remove the , as suggested by Tom

                            Yess , this fixed the Web GUI accessing problem 🙂 …but 🙂 now it seems i have another issue 🙂 (and i’m sorry for bothering you with my problems) :
                            The storage appears to be “Unauthorized” …but i can see my images unharmed in the Master Node and the Storage Nodes.

                            0a071de5-37c0-4c32-bb91-349da3868600-image.png
                            …can you please point me, what .log to find and read, so i can fix this ( hopefully ) myself ? 🙂

                            A 1 Reply Last reply Mar 23, 2023, 10:06 AM Reply Quote 0
                            • A
                              AlexPDX @AlexPDX
                              last edited by Mar 23, 2023, 10:06 AM

                              @AlexPDX said in Host Hardware Inventory - Hard Disk Model - M.2 Nvme not identify:

                              …can you please point me, what .log to find and read, so i can fix this ( hopefully ) myself ?

                              (nevermind this reply 🙂 i found the post about this bug )

                              Ok so, it seems that the update from 1.5.9 to dev-branch version 1.5.10 and the update of Kernel bzImage Version: 5.15.93 , did not do the trick for my initial problem : HW Inventory for NVMe SSDs, with Hard disk model and details.
                              7e888a40-32ab-4a1b-8fc5-3dff7fe3a7ef-image.png
                              b8e33921-a777-4a04-aa57-446e363d26ba-image.png
                              After the update, all seems well with the deploy and capture of images, snapins, and so on…but, i dont understand this message :

                              starting sshd : touch: canot touch ‘/var/lock/sshd’ : No such file or directory

                              8d09e8fa-7970-43ef-9df6-b3ce6f36fb35-image.png
                              It seems “lock” is a shortcut, so i can’t make a new Directory
                              f446e96e-1bba-450f-aac2-5e1d91ee0043-image.png
                              d8261609-d5e4-404d-aec3-b8564703f0c4-image.png

                              … if there is someway i can help, let me know that .log u need from me 🙂

                              T 1 Reply Last reply Mar 23, 2023, 11:29 AM Reply Quote 0
                              • T
                                Tom Elliott @AlexPDX
                                last edited by Mar 23, 2023, 11:29 AM

                                @AlexPDX We haven’t updated the FOS code yet to account for HDD being nvme for serial information.

                                That said, the “lock” is you’re referring to isn’t a problem in itself.

                                /run/lock is symbolically linked to /var/lock it seems. We don’t need to touch the file and because /var/lock is a link, it’s not a directory or file. This isn’t a “problem” just a notice when it tries to do the touch part. You’ll notice it says “OK” at the end because it still was able to start sshd without issue.

                                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 1
                                • A AlexPDX referenced this topic on Mar 30, 2023, 12:37 PM
                                • S Sebastian Roth referenced this topic on Mar 30, 2023, 9:25 PM
                                • T
                                  tian
                                  last edited by Jul 12, 2023, 10:43 AM

                                  we also have Dell computers, where the hard drive information is not in the Hardware Inventory (using fog 1.5.10.3 and AHCI in UEFI). To know the SSD models (e.g. for firmware updates) in the computers I made a snapin with a small batch file to get the information directly from Windows:

                                  cd %~dp0 
                                  
                                  net use x: <UNC-Path> /user:<domain>\<user> %1 /PERSISTENT:NO
                                  wmic diskdrive get model,firmwarerevision,serialnumber >> X:\OptiPlex_HDD\%computername%.txt
                                  net use X: /delete
                                  

                                  The 3 values in <> needs to be customized. and the parameter %1 is the first snapin argument and the snapin arguments are set to hidden so the password is not in the local log files.

                                  To combine the files I used:

                                  for %f in (*.txt) do (type "%f" & echo %f) >> out.txt
                                  

                                  and edit the final file manually to look better.

                                  Maybe this helps a little bit. It might not be the best way to do this but we now have the model, firmware version and serial number for all the computers in one file.

                                  A 1 Reply Last reply Jul 19, 2023, 7:39 AM Reply Quote 0
                                  • A
                                    AlexPDX @tian
                                    last edited by Jul 19, 2023, 7:39 AM

                                    @tian …that’s actualy a great ideea 🙂 i will give it a try…but after you get this information about the Storage Device Type…etc …how do you add these details to that specific host inventory in FOG in the <Hard Disk ; Hard Disk Firmware ; Hard Disk Serial Number > ?

                                    T 1 Reply Last reply Jul 19, 2023, 9:19 AM Reply Quote 0
                                    • T
                                      tian @AlexPDX
                                      last edited by Jul 19, 2023, 9:19 AM

                                      @AlexPDX since also the computer names are known it should be possible to add it to the database.
                                      But it would not make much sense because when running a Hardware Inventory task or deploying a client (where also a Hardware Inventory task is run automatically) I think the data would be removed from the database.

                                      To have the data in the fog database permanently I guess we have to wait untill FOS is able to get this data by itself and add it to the database.
                                      For now to get the SSD model data without accessing each computer physically and have it in one place is enough for us to check for possible firmware updates, run the firmware updates and re-check if the updates were applied correctly.

                                      1 Reply Last reply Reply Quote 0
                                      • 1
                                      • 2
                                      • 2 / 2
                                      2 / 2
                                      • First post
                                        29/38
                                        Last post

                                      194

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project