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

    Fog is indexing only sdb

    Scheduled Pinned Locked Moved General Problems
    11 Posts 2 Posters 872 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.
    • B
      Bearr1976
      last edited by

      On FOG 1.5.X with Ubuntu, I’m trying to capture a host that has two disks (sda and sdb).

      In the register host selection i see that only dev/sdb gets detected
      In the PXE debug environment (lsblk / fdisk -l), both disks are detected correctly.
      Host BIOS is in AHCI mode, Secure Boot is disabled.
      I created an image with type Multiple Partition - All Disks (Not Resizable).
      During capture, only sdb is imaged, while sda is completely ignored.
      If I remove sdb fysically from the system, then sda gets captured correctly.
      And i have a different system with 6 fysical drives (ACHI) and Secure Boot disabled.
      And if i want to image that computer only /dev/sdb gets an image. the other 5 don’t get an image.

      Thank you for an answer!
      Bear

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

        @Bearr1976 is /dev/sdb larger than /dev/sda by chance?

        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

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

          @Bearr1976 I’m attempting to rebuild as there was a potential bug where the drive lettering wouldn’t be followed.

          Now it needs to be noted:

          FOS will attempt to use the largest disk in the machine to determine the drive to use.

          I may think about a feature to allow “smallest” drive to be used, but I think in most cases imaging is usually done on a single disk machine or is wanting the largest disk.

          Now I could, I suppose, just return the first disk in the order as was done in the past, but I had to make the function a little more robust to account for link based lookups on the disk, serial, wwn, uuid, etc…

          So I just added the bit to try to prefer the larger of the disk as the default writing disk.

          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
          • B
            Bearr1976 @Tom Elliott
            last edited by Bearr1976

            @Tom-Elliott Yes my /dev/sdb is bigger. And I love fog for it’s easy to use and always a good backup. How can I find out which version of fog that doesn’t have that problem. I hope that you can help me out.

            Tom ElliottT 3 Replies Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @Bearr1976
              last edited by

              @Bearr1976 This problem, in my eyes, is a feature.

              In most cases, it’s generally assumed the larger the drive == the main drive.

              Now you can force the /dev/sda to be the main drive for this machine by setting the ‘Host Primary Drive’ field on the host (or hosts) in question.

              If this is something that shouldn’t be:

              How should we determine which drive to use?

              /dev/hd<x> vs /dev/sd<x> would be using the hd versions over the sd versions.

              Of course each person’s things is different. I might suggest using the Host Primary Device field unless this is too unruly for you?

              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

              B 2 Replies Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Bearr1976
                last edited by

                @Bearr1976 The reason I cannot give a version is it’s not specific to the FOG version, but rather the FOS version being used (which would pull the latest released FOS file regardless of which version of FOG you’re pulling.)

                You can change the FOS (init) files to the one:
                2025-04-29 or earlier.

                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
                • Tom ElliottT
                  Tom Elliott @Bearr1976
                  last edited by

                  @Bearr1976 I’m updating the thing so that it will give the first lexilogical drive returned.

                  If an admin wants to have the largesize as the “primary” they can define it as part of the “Host Kernel Args” or the global (FOG Configuration Settings -> Settings -> Kernel Args -> largesize="1" to use it.

                  I have to wait for the files to build, but then I’ll ask for them to be pushed as the “Official” release which should do what you’re more used to and provide the feature as an admin choosable thing.

                  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
                  • B
                    Bearr1976 @Tom Elliott
                    last edited by

                    @Tom-Elliott I am gonna try your advice. But I would like to use fog as a backup and restore for my windows and linux systems. And it would be nice to automate it so that it takes an image of sda and sdb drives. I will wait for the next build. Thank you

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bearr1976 @Tom Elliott
                      last edited by

                      @Tom-Elliott its working by setting /dev/sda to the field ‘Host Primary Drive’ and it takes images from both disks! Thank you!

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bearr1976
                        last edited by

                        Just a little update, fog is capturing the dev/sda twice. That only occurs when “Host Primary Disk” is set to /dev/sda.

                        And thank you for the support!

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

                          @Bearr1976 If you use the latest init, the primary drive is supposed to be /dev/sda automatically (technically the first in alphabetical order) so by setting Host Primary Disk, may be forcing it to use that specific drive. In your case, if you’re trying to capture multiple disks, I suspect you would need the Host Primary Disk unset. If there’s something else not working right after unsetting please let me know and I’ll try to see what I can do to replicate the 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 0
                          • 1 / 1
                          • First post
                            Last post

                          150

                          Online

                          12.3k

                          Users

                          17.4k

                          Topics

                          155.7k

                          Posts
                          Copyright © 2012-2025 FOG Project