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

Problem with size of partitions

Scheduled Pinned Locked Moved Solved
Bug Reports
2
22
5.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.
  • M
    michelsantana
    last edited by michelsantana Mar 16, 2017, 8:01 AM Mar 16, 2017, 1:55 PM

    Server
    • FOG Version: 1.3.5RC16
    • OS: CentOS7
    Client
    • Service Version:
    • OS:
    Description

    After upgrading to this version, there is a problem with the sizes of the partitions restored. For example, I captured with this version a disk with three partitions of aproximately 522 MB (System Reserved), 100 GB (C:) and 198 GB (D:) and when I deploy the captured image on the same computer the sizes of the partitions are 522MB, 295 GB(C:) and 2GB (D:)

    Perhaps have something to do with using sectors instead of bytes since RC15?

    This is the content of the file d1.minimum.partitions

    label: dos
    label-id: 0x5a45dfe4
    device: /dev/sda
    unit: sectors

    /dev/sda1 : start= 2048, size= 65024, type=7, bootable
    /dev/sda2 : start= 1072640, size= 37683712, type=7
    /dev/sda3 : start= 190852200, size= 257024, type=7
    Thank you

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Mar 16, 2017, 2:01 PM

      Has nothing to do with using sectors vs. bytes. It’s the same code.

      What does your d1.minimum.partitions file look like? What does your d1.paritions file look like?

      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
      • M
        michelsantana
        last edited by Mar 16, 2017, 2:03 PM

        d1.partitions
        label: dos
        label-id: 0x5a45dfe4
        device: /dev/sda
        unit: sectors

        /dev/sda1 : start= 2048, size= 1070592, type=7, bootable
        /dev/sda2 : start= 1072640, size= 189747430, type=7
        /dev/sda3 : start= 190852200, size= 434285145, type=7


        d1.minimum.partitions

        label: dos
        label-id: 0x5a45dfe4
        device: /dev/sda
        unit: sectors

        /dev/sda1 : start= 2048, size= 65024, type=7, bootable
        /dev/sda2 : start= 1072640, size= 37683712, type=7
        /dev/sda3 : start= 190852200, size= 257024, type=7

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Mar 16, 2017, 2:07 PM

          Can you create a debug task and add “ismajordebug=1” to the kernel arguments for the host?

          Step through and get the output of the sgdisk information?

          It will be slow, but please it will help tremendously.

          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

          M 1 Reply Last reply Mar 16, 2017, 5:43 PM Reply Quote 0
          • M
            michelsantana @Tom Elliott
            last edited by michelsantana Mar 16, 2017, 11:46 AM Mar 16, 2017, 5:43 PM

            @Tom-Elliott This is the output of the sgdisk command once booted with a debug deploy task with the kernel argument that you have resquested. Don’t know if is this what you are talking about.
            Thank you

            0_1489686127335_WhatsApp Image 2017-03-16 at 17.37.47.jpeg

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Mar 16, 2017, 9:14 PM

              sfdisk is much more useful if you can get it.

              You would start the “debug” task.

              At the command prompt type fog

              Step through it slowly.

              It will show the output of the sfdisk as it gets applied.

              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

              M 1 Reply Last reply Mar 16, 2017, 9:37 PM Reply Quote 0
              • M
                michelsantana @Tom Elliott
                last edited by Mar 16, 2017, 9:37 PM

                @Tom-Elliott This is the output of the command you have requested. Now I only have access to a Virtual Machine, but I guess that the problem is the same. Here you have the captures in sequence:
                0_1489700182220_Captura de pantalla 2017-03-16 a las 21.29.19.png
                0_1489700190338_Captura de pantalla 2017-03-16 a las 21.29.55.png 0_1489700196633_Captura de pantalla 2017-03-16 a las 21.30.21.png 0_1489700201423_Captura de pantalla 2017-03-16 a las 21.30.39.png 0_1489700205990_Captura de pantalla 2017-03-16 a las 21.31.09.png

                T 1 Reply Last reply Mar 16, 2017, 9:46 PM Reply Quote 0
                • T
                  Tom Elliott @michelsantana
                  last edited by Mar 16, 2017, 9:46 PM

                  @michelsantana So based on what I’m seeing, this may be a problem simply because it has no extended partitions.

                  I’m taking a look at the main scripts to try to narrow down another (but separate) issue so I can try to see if i can get the logic out of this too. Thanks for the information thus far.

                  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

                  M 1 Reply Last reply Mar 16, 2017, 9:47 PM Reply Quote 0
                  • M
                    michelsantana @Tom Elliott
                    last edited by Mar 16, 2017, 9:47 PM

                    @Tom-Elliott You are more than welcome. And yes, in our configuration all the partitions are primary, so we don’t have any extended partition.

                    Thank you very much

                    T 1 Reply Last reply Mar 16, 2017, 9:51 PM Reply Quote 0
                    • T
                      Tom Elliott @michelsantana
                      last edited by Mar 16, 2017, 9:51 PM

                      @michelsantana can you get the size of the disk you’re trying to apply this to?

                      blockdev --getsz /dev/sda I think should do it.

                      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

                      M 1 Reply Last reply Mar 16, 2017, 10:06 PM Reply Quote 0
                      • M
                        michelsantana @Tom Elliott
                        last edited by Mar 16, 2017, 10:06 PM

                        @Tom-Elliott In the previous example the machine (Virtual) had a 60GB hard disk. Just for testing purposes I increased the size of the harddisk to 180GB and this are the results. As you can see there is no error this time with extended partitions but the sizes of the partitions still doesn’t have the right proportions.
                        0_1489701816546_Captura de pantalla 2017-03-16 a las 21.59.53.png
                        0_1489701824819_Captura de pantalla 2017-03-16 a las 22.00.42.png
                        0_1489701843386_Captura de pantalla 2017-03-16 a las 22.01.16.png
                        0_1489701850761_Captura de pantalla 2017-03-16 a las 22.01.41.png

                        T 1 Reply Last reply Mar 16, 2017, 10:08 PM Reply Quote 0
                        • T
                          Tom Elliott @michelsantana
                          last edited by Mar 16, 2017, 10:08 PM

                          @michelsantana I realize that and am replicating your d1.minimum.partitions and d1.partitions file.

                          I know what’s causing it too btw.

                          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

                          M 1 Reply Last reply Mar 16, 2017, 10:09 PM Reply Quote 0
                          • M
                            michelsantana @Tom Elliott
                            last edited by Mar 16, 2017, 10:09 PM

                            @Tom-Elliott It seems like it’s taking the d1.minimum.partitions as source to determine the proportion between partitions instead of the d1.partitions. In our example the sda3 partition is the bigger one in size but it’s almost empty.

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

                              @michelsantana I know what’s causing it, just trying to figure out a way around it in a nice method.

                              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
                              • T
                                Tom Elliott
                                last edited by Mar 16, 2017, 10:33 PM

                                Mind trying these:

                                Init’s are up at:

                                http://mastacontrola.com/init.xz
                                http://mastacontrola.com/init_32.xz

                                wget -O /var/www/fog/service/ipxe/init.xz http://mastacontrola.com/init.xz
                                wget -O /var/www/fog/service/ipxe/init_32.xz http://mastacontrola.com/init_32.xz

                                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

                                M 1 Reply Last reply Mar 16, 2017, 10:45 PM Reply Quote 0
                                • M
                                  michelsantana @Tom Elliott
                                  last edited by Mar 16, 2017, 10:45 PM

                                  @Tom-Elliott I have downloaded those files and repeated the process. There is a minor error than you can see in the first capture, but it seems that the problem is solved. Tomorrow I will try a deployment with a physical machine and post the results.
                                  Thank you very much for your help!

                                  0_1489704268147_Captura de pantalla 2017-03-16 a las 22.41.11.png
                                  0_1489704276657_Captura de pantalla 2017-03-16 a las 22.41.53.png
                                  0_1489704285596_Captura de pantalla 2017-03-16 a las 22.42.11.png
                                  0_1489704293298_Captura de pantalla 2017-03-16 a las 22.42.36.png

                                  T 1 Reply Last reply Mar 16, 2017, 10:47 PM Reply Quote 0
                                  • T
                                    Tom Elliott @michelsantana
                                    last edited by Mar 16, 2017, 10:47 PM

                                    @michelsantana I’m pushing fix for the error’s being spat out.

                                    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
                                    • T
                                      Tom Elliott
                                      last edited by Mar 16, 2017, 10:49 PM

                                      Fix for the missed elements should be up if you wanted to retest.

                                      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

                                      M 2 Replies Last reply Mar 16, 2017, 10:49 PM Reply Quote 0
                                      • M
                                        michelsantana @Tom Elliott
                                        last edited by Mar 16, 2017, 10:49 PM

                                        @Tom-Elliott Perfect! I will try again and post the results

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          michelsantana @Tom Elliott
                                          last edited by Mar 16, 2017, 10:54 PM

                                          @Tom-Elliott Still one error

                                          0_1489704855815_Captura de pantalla 2017-03-16 a las 22.53.44.png

                                          T 1 Reply Last reply Mar 16, 2017, 11:05 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            7/22
                                            Last post

                                          160

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project