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

During Deployment Second Partition shrinking in size

Scheduled Pinned Locked Moved
FOG Problems
4
22
7.6k
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.
  • P
    phil_guy
    last edited by May 19, 2016, 8:24 PM

    I’m able to capture and deploy images fine however just recently I’ve noticed that the second partition (sda2) on the image appears to have shrink and the extra space that should be apart of that partition has become unallocated space. The image i’m deploying has 3 partitions, one for the OS/boot, one for regular storage data, and a backup/recovery. Both the Boot and Backup are exactly the size they’re suppose to be but the storage/data drive which should be around 12BG has loss about 10GB and that loss 10GB just sits out there in no where land.

    0_1463689147236_IMAG0269_1.jpg

    If I run the backup/recovery partition, when it’s done re-imaging this problem doesn’t occur. It appears exactly as it should be. The issue only happens on a fresh deployment. I’m unsure if its the image or a setting in fog i need to change.

    Giggity

    1 Reply Last reply Reply Quote 0
    • I
      ITSolutions Testers
      last edited by May 19, 2016, 8:48 PM

      What version of FOG are you running and what OS?
      Are you using a re-sizable image type?

      1 Reply Last reply Reply Quote 2
      • W
        Wayne Workman
        last edited by Wayne Workman May 19, 2016, 5:51 PM May 19, 2016, 11:36 PM

        Fog resizing can be weird with more than one large partition. Please go into the image’s directory on the server. You should see some files named original, and some others. All the small ones that are plain text, post those. Also, we probably will need @Sebastian-Roth

        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/

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by May 20, 2016, 5:26 AM

          Yes, please post FOG version, ls -al /images/<img-name> and the contents of d1.partitions, d1.original.partitions, d1.minimum.partitions, d1.fixed_size_partitions, d1.original.fstypes (whichever of those are available) plus upload d1.mbr (as well small file) just to make sure we have all the valuable information available. I’ll check it out over the weekend.

          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 2
          • P
            phil_guy
            last edited by May 20, 2016, 1:18 PM

            @Sebastian-Roth @Wayne-Workman @ITSolutions I’m running Ubuntu Server 14.04 with Fog Trunk (7669). The image that i’m using was built for fog 0.32 as a Multi-Partition Single Disk Type. When I transferred that image to my current Fog server, I did it by capturing it and uploading it directly to my new fog server rather than just trying to import the file from the old fog server.

            Currently the image type is set as Multi-Partition All Disk and its format is set by default as partclone. The Multi-Partition Single Disk Type failed on capture during the sda3 upload part and the Single Disk Type failed right off the bat if I remember correctly.

            Belong is everything you guys requested that I knew how to get. Either I’m not looking in the right place or I just don’t have some of those files. I can’t find anything that says original and only the d1.partition file has anything readable using cat. The d1.mbr and others are just a gobbled mess of random text and symbols.

            0_1463750015113_IMAG0271.jpg

            Giggity

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by May 20, 2016, 3:33 PM

              @phil_guy said:

              The image that i’m using was built for fog 0.32 …

              Thanks for letting us know. Definitely one of the very important infos that you didn’t mention in your first post.

              Please upload the binary d1.mbr file to the forum as well. I definitely need that to be able to reconstruct all the odd bits of this… and hopefully find a solution.

              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

              P 1 Reply Last reply May 20, 2016, 3:54 PM Reply Quote 0
              • P
                phil_guy @Sebastian Roth
                last edited by May 20, 2016, 3:54 PM

                @Sebastian-Roth I’m unsure what “binary d1.mbr” file you’re referring too. If you mean the d1.mbr file thats listed in that particular image, when i try to cat that out I get a long list of unreadable texts/symbols. If the file you’re requesting is something and/or somewhere else please let me know. Thanks.

                This is the output if I try and read the contents of d1.mbr

                0_1463759675455_IMAG0272.jpg 

                Giggity

                I 1 Reply Last reply May 20, 2016, 4:08 PM Reply Quote 0
                • I
                  ITSolutions Testers @phil_guy
                  last edited by May 20, 2016, 4:08 PM

                  @phil_guy We need you to upload the actual file, so that it can be examined and find why the partition is not expanding.

                  P 1 Reply Last reply May 20, 2016, 4:17 PM Reply Quote 1
                  • P
                    phil_guy @ITSolutions
                    last edited by May 20, 2016, 4:17 PM

                    @ITSolutions Stupid question but how do I do that? Do you mean I need to go get the original image file and print out the d1.mbr output of that?

                    Giggity

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by May 20, 2016, 8:39 PM

                      @phil_guy Are you kidding? How did you manage to upload the pictures - which are binary as well? Just copy that d1.mbr file (as is) from your FOG server to a USB key, get it to your PC and upload to the forum. It’s really not that hard, is it?

                      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

                      P 1 Reply Last reply May 21, 2016, 11:12 PM Reply Quote 1
                      • P
                        phil_guy @Sebastian Roth
                        last edited by May 21, 2016, 11:12 PM

                        @Sebastian-Roth I apologize for confusion. I hope this is what you requested. I simply uploaded the file that said d1.mbr from that particular image folder. The file was too big to upload so I had to compress it. Thanks again.

                        0_1463872193334_d1.mbr.tar.gz

                        Giggity

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by May 23, 2016, 7:27 PM

                          @phil_guy No problem! Thanks for the file. I had a first quick look but I need more time for this. Please be a little patient. Feel free to remind me of this when you don’t hear anything by the end of the week.

                          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

                          P 1 Reply Last reply May 23, 2016, 8:36 PM Reply Quote 1
                          • P
                            phil_guy @Sebastian Roth
                            last edited by May 23, 2016, 8:36 PM

                            @Sebastian-Roth I really appreciate the help. Let me know if you need any other pieces of information. And also as an update, I updated to git 7799 to see if that fixed the problem, however the issue still remains. Thanks.

                            Giggity

                            1 Reply Last reply Reply Quote 1
                            • S
                              Sebastian Roth Moderator
                              last edited by Sebastian Roth May 28, 2016, 10:48 PM May 29, 2016, 4:46 AM

                              @phil_guy Turns out I didn’t pay enough attention when reading your posts. Sorry for that! Re-reading it all over and over I think you are saying you are not using the resizable image type at all. Is that correct?

                              When I transferred that image to my current Fog server, I did it by capturing it and uploading it directly to my new fog server rather than just trying to import the file from the old fog server.

                              What do you mean by that? Are you saying that you always do a fresh upload of that client or is this still the old FOG 0.32 image?

                              From the d1.partitions (same in the d1.mbr file) we can clearly see the gap:

                              /dev/sda1 : start=     2048, size= 70193152, Id= 7
                              /dev/sda2 : start= 70195200, size=  4816140, Id= 7
                              /dev/sda3 : start= 97230848, size= 19998720, Id=83, bootable
                              

                              Size of the second partition is 4816140 sectors multiplied by 512 (bytes per sector) and divided by 1024 three times I get 2.30 GB

                              So if you deploy this image as is it will have that gap for sure! So question remains, are you getting this even when capturing a fresh image with FOG trunk??? If so, we have quite an issue here. But if I got you wrong and you are just trying to deploy this old 0.32 image over and over again I can possibly provide patched files for you to fix this.

                              Again I am really confused if I just get you all wrong here. So please be very specific in telling us all the steps you take to re-produce this issue. Thanks!

                              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

                              P 1 Reply Last reply Jun 1, 2016, 3:34 PM Reply Quote 0
                              • P
                                phil_guy @Sebastian Roth
                                last edited by Jun 1, 2016, 3:34 PM

                                @Sebastian-Roth Thanks for taking the time to look it over.

                                1. I have only tried using the Multi-image types (both single and all disk). The image I’m trying to deploy has 3 partitions and originally the image was set as a multi-image single disk type on fog .32

                                2. I assume this is still the old fog.32 image. I deploy the image using fog .32 onto a client. I then capture the image from the same client using the current new fog (fog trunk 7959). During the capture on the new fog trunk server I do notice the shrunk sda2 size.

                                3. I have also tried capturing other images using the same method and on others it appears to work fine. All the partitions appear to be the correct size. It may just be this specific image.

                                Let me know if you need any thing else cleared up.

                                Giggity

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth Jun 1, 2016, 3:42 PM Jun 1, 2016, 9:32 PM

                                  @Roger-Saffle, @ITSolutions I moved your posts to a new thread as I think this is worth looking at but so far seems different to what we have here from my point of view.

                                  @phil_guy Ok, this is really interesting. You deploy the image to the client using your FOG 0.32 server, made sure the partitions are good on the client and then upload this client using your FOG trunk server shrinks the second partition. Do I get that right?

                                  I suppose the d1.partitions you posted a picture was from the new FOG trunk server, right? What files do you have in the image directory on your old FOG 0.32 server? Do you have d1.partitions? Please post the contents if you have. As well please deploy your client from the old server (so partitions seem correct) and then schedule a debug upload via the new server. This will bring you to a command shell. Run sfdisk -d /dev/sda and post a picture here. No need to actually run the upload. Just turn off the client and delete the task via the web GUI after you got the information I requested.

                                  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

                                  P 1 Reply Last reply Jun 2, 2016, 3:58 PM Reply Quote 0
                                  • P
                                    phil_guy @Sebastian Roth
                                    last edited by Jun 2, 2016, 3:58 PM

                                    @Sebastian-Roth I’ll get you all the info and pics whenever I have a chance to sit down and thoroughly record/repeat the process that lead to this hiccup. Just give me a bit of time, thanks.

                                    Giggity

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Jun 20, 2016, 9:39 AM

                                      @phil_guy Any news on this?

                                      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

                                      P 1 Reply Last reply Jun 21, 2016, 6:12 PM Reply Quote 0
                                      • P
                                        phil_guy @Sebastian Roth
                                        last edited by Jun 21, 2016, 6:12 PM

                                        @Sebastian-Roth I apologize for the long delay. I had to step away from this for another project.

                                        And yes you have the set up correct. I deployed the image from my old FOG 0.32 to a client machine. Then using the new FOG I uploaded the image from that same client. During the deployment while using the FOG 0.32, all three partitions are the correct size. But when I upload it to the new FOG, I can see the second partition shrinking. I tried repeating this process with other images (7 in total) and only one other images has this issue. The others are all correct.

                                        And yes the d1.partitions picture I uploaded is from the new FOG trunk server. The image directory from my old FOG 0.32 does not have a d1.partition file. In each image it only contains a d1.mbr, d1p1.img, and d1p2.img

                                        I’ll upload the photo of the output you’re requesting however something has gone wrong and now I can’t even pxe boot any client machines. I’m getting the TFTP open timeout error. I gotta figure this issue out first before I can run the debug mode on the new server.

                                        Giggity

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sebastian Roth Jun 21, 2016, 12:21 PM Jun 21, 2016, 6:21 PM

                                          @phil_guy https://wiki.fogproject.org/wiki/index.php/Troubleshoot_TFTP

                                          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

                                          P 1 Reply Last reply Jun 23, 2016, 7:01 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 2 / 2
                                          • First post
                                            Last post

                                          199

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project