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

    Images not properly expanding after update from Trunk

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    5
    20
    4.2k
    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.
    • wbtechW
      wbtech
      last edited by wbtech

      We recently pulled down the latest FOG build (8038 as of the moment) and noticed our image partitions weren’t properly expanding. Our table had ext4 at the start followed by our swap partition and after image the ext4 didn’t expand to fill the drive. The image is marked as single disk resizable which has worked flawlessly in the past.

      I don’t believe it’s a corrupted image as we’ve imaged about 1000+ machines with this image, but just to be sure, I captured a clean Ubuntu 14.04 and 16.04 image (via VirtualBox) and ran into the same problem.

      I did notice during one of the deployments an error prior to PartClone starting stating “Error on Logical Partition”

      If anyone has any suggestions, please send them my way.

      Thanks,
      Aaron

      1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator
        last edited by

        Wait, they’re supposed to expand automagically? Here I was using scripts to expand it at first boot.

        1 Reply Last reply Reply Quote 0
        • wbtechW
          wbtech
          last edited by

          Yessir, we have a pretty big deployment of Linux machines and up until recently they expanded without issue.

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • wbtechW
            wbtech
            last edited by

            I snapped some screenshots.

            Here’s a machine imaged last week:

            alt text

            Here’s one from today:

            alt text

            1 Reply Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman @wbtech
              last edited by

              @wbtech What version of FOG Trunk were you using before the update?

              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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              wbtechW 2 Replies Last reply Reply Quote 0
              • wbtechW
                wbtech @Wayne Workman
                last edited by

                @Wayne-Workman I can’t remember the exact version, but it would have been around the first week of May.

                1 Reply Last reply Reply Quote 0
                • wbtechW
                  wbtech @Wayne Workman
                  last edited by

                  @Wayne-Workman I just tried setting the image to only upload the ext4 partition and it failed shortly after an error came up. I was able to snag a quick screenshot.
                  It may be a totally unrelated issue, but I figured id report it either way.

                  alt text

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

                    @wbtech Only a couple days ago Tom has tuned the recognition algorithm to better find windows boot partitions which we can’t resize or move. Seems like you found an issue with that. While I am sure @Tom-Elliott can fix this error you are seeing I am as well wondering about it saying Resizing extfs volume (/dev/sda5). On the pictures you posted sda5 is always swap. I am pretty sure we don’t resize (or even capture) swap partitions).

                    Can you please do a debug upload (schedule a normal upload but just before you click create task select the checkbox for debug mode) and run sfdisk -d /dev/sda before starting the upload job (using the command fog). Please take a picture and post here.

                    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

                    wbtechW 1 Reply Last reply Reply Quote 0
                    • wbtechW
                      wbtech @Sebastian Roth
                      last edited by

                      @Sebastian-Roth Great, I’ll do whatever I can to assist!

                      On the partition thing, that’s my fault. I fired up the wrong vm where I had tried switching the ext and swap partitions to see if it would expand.

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

                        @wbtech said:

                        On the partition thing, that’s my fault. I fired up the wrong vm where I had tried switching the ext and swap partitions to see if it would expand.

                        Ah well, good to know! Thanks for clarifying. I’ll wait till you upload the sfdisk picture then. 🙂

                        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

                        wbtechW 1 Reply Last reply Reply Quote 0
                        • wbtechW
                          wbtech @Sebastian Roth
                          last edited by

                          @Sebastian-Roth Here’s a screenshot:
                          alt text

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

                            @wbtech You need to hit ENTER twice first till you get to a proper linux shell. Then run the command sfdisk -d /dev/sda

                            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

                            wbtechW 1 Reply Last reply Reply Quote 1
                            • wbtechW
                              wbtech @Sebastian Roth
                              last edited by

                              @Sebastian-Roth alt text

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

                                @wbtech Sorry but I need a bit more time. Will get back to you about this 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

                                wbtechW 1 Reply Last reply Reply Quote 0
                                • wbtechW
                                  wbtech @Sebastian Roth
                                  last edited by

                                  @Sebastian-Roth Hey Sebastian, I know you guys are probably super busy, but I just wanted to check in and see if any progress was made on this? or if you need any more info from me.

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

                                    @wbtech Thanks a lot for posting again. Seems like I have lost sight of this. Will get back to you 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

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

                                      @Sebastian-Roth I think this is to be somewhat expected.

                                      We only extend the drive for “additional” partitions if there’s more than one partition AND that partition is not the first partition (as we have to guess that the first partition is the boot volume.

                                      I can probably fix this relatively easily on the upload, but it would require the upload be uploaded again. A suggestion, I suppose, would be to look at the file d1.fixed_size_partitions and remove the 1: that’s probably sitting there. I don’t think this will enable extending though as the d1.minimum.partitions AND the d1.partitions files would not have changed at all.

                                      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 Sebastian Roth

                                        @wbtech Sorry for the delay again. Just too many things happening right now.

                                        The latest picture you posted, is that on a system where the partition layout seems fine when you look at it in the gui?? I don’t think this is the case if I get the maths correct: size = 16775168 sectors * 512 byte per sector / 1024 / 1024 / 1024 -> roughly 8 GB (sda5/swap seems to be half that size). This does not match any of the pictures you posted!

                                        Unfortunately I need to ask you to do this again. Get up a system that has the partition layout displayed correct in the gui and schedule a debug upload. But before actually starting the upload run sfdisk -d /dev/sda. Then do the upload and pay attention to the part where it says “Setting up any additional fixed parts”. Do you still get the syntax error message?

                                        You might want to upgrade to the very latest version just to make sure this is still happing with the latest trunk version.

                                        PS: Will be away for a couple of days and won’t be able to respond till the 7th of July. I am really sorry this is taking such a long time. Hope we can find and fix this soon after I got back!

                                        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

                                        wbtechW 1 Reply Last reply Reply Quote 0
                                        • wbtechW
                                          wbtech @Sebastian Roth
                                          last edited by

                                          @Sebastian-Roth Yeah, that’s the VM I build the images on. I apologize, I misread your request.

                                          On the plus side, I just did an upgrade from the trunk and everything worked perfectly. I was able to capture and deploy an image and everything expanded properly.

                                          I really appreciate the work that you guys put into FOG, it’s a phenomenal project! I owe you guys a beer!

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

                                            @wbtech said:

                                            On the plus side, I just did an upgrade from the trunk and everything worked perfectly. I was able to capture and deploy an image and everything expanded properly.

                                            Great to hear. So I guess you had a “buggy” version of the inits in place, something we already fixed along the way.

                                            I owe you guys a beer!

                                            I think this is number three or four on my list. 🙂 Should start to think about getting on a plane to visit all those people at some point… haha.

                                            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

                                            179

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project