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

    Unable to deploy to smaller drive

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    6
    1.3k
    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.
    • J
      joeyberkovitz
      last edited by

      I created a Debian image from a 1TB hard drive with an image type of Single Disk - Resizable.
      The final image size was 6GB.
      When I tried to deploy the image to a 100GB machine, it said “No image file(s) found that would match the partition(s) to be restored”.
      If I restore to a drive that’s the same size or bigger, then it works fine.
      I’m running FOG version 1.4.4

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        Is the source image LVM based? AFAIK you can’t resize (or more correctly fog can’t) resize a disk that has been created as LVM. FOG should have copied it as raw partitions. You can test this by deploying to a disk bigger than the source disk. Does the new target use the entire disk or is it constrained to the same allications as the source 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!

        1 Reply Last reply Reply Quote 1
        • J
          joeyberkovitz
          last edited by

          The source image isn’t LVM.
          The 3 partitions on the source OS are as follows:
          /dev/sda1 - EFI
          /dev/sda2 - ext4 Linux Filesystem
          /dev/sda3 - swap

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @joeyberkovitz Ok then we need more information on the partition layout you have. Best of you upload d1.mbr, d1.partitions, d1.minimum.partitions and d1.fixed_size_partitions so we can have a look. You should find all those files in folder /images/<IMAGENAME> in your FOG server.

            As well you might schedule a debug deploy task for one of your hosts. When it brings you to the shell run command fog to start the deploy. After that it should drop you back to the shell again. Run gdisk -l /dev/sda. Please take a picture of the screen and post here as well.

            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
            • george1421G
              george1421 Moderator
              last edited by

              I just found this link in another thread: https://forums.fogproject.org/topic/10556/failure-to-expand-shrunken-resizeable-image-from-linux-machines It appears to discuss your problem too. The solution is to either upgrade to 1.5.0RC9 or keep working with 1.4.4 stable until 1.5.0 stable is released.

              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!

              J 1 Reply Last reply Reply Quote 0
              • J
                joeyberkovitz @george1421
                last edited by

                @george1421 Thanks. I’ll try the upgrade and see if that fixes it.

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

                136

                Online

                12.1k

                Users

                17.3k

                Topics

                155.3k

                Posts
                Copyright © 2012-2024 FOG Project