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

    Deploy image not expanding partitions

    Scheduled Pinned Locked Moved Unsolved
    Linux Problems
    3
    40
    10.0k
    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.
    • S
      SuperMajestic
      last edited by

      Server
      • FOG Version: 1.3.5-RC-3
      • OS: Ubuntu
      Client
      • Service Version:
      • OS:
      Description

      Hello,

      I have a problem when I deploy a image in my servers. All is correct but not expand the partitions. The image is a Centos 6.8 with GPT.

      Initially, I install the centos in a 4TB disk. Now, I try deploy the image in a 500GB disk or 4TB disk but this not expand.

      http://i66.tinypic.com/2m349kz.jpg

      What is the problem? Thanks!

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

        Is there the possibility for you to update to the latest 1.3.5-RC release? I think I saw RC9 was released yesterday. I know some of the early RC releases had issues that may have already been addressed. I’m not implying that the latest RC release fixes this exact issue, but I will tell you that is the first thing the developers are going to ask you to do, so…

        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 0
        • S
          SuperMajestic
          last edited by

          Thanks George. I will talk with the system administrator to update fog and will comment if solved the problem.

          1 Reply Last reply Reply Quote 0
          • S
            SuperMajestic
            last edited by

            Hello there,

            I followed the instructions of @george1421 and updated the client. My version now is Running Version 1.3.5-RC-10.

            I have an image with Centos 6.8 with 4TB disk. Obviously in GPT.

            FOG generates a file d1.partitions with:

            label: gpt
            label-id: 56098A51-6A69-44A8-A60C-C4227CC6DD25
            device: /dev/sda
            unit: sectors
            first-lba: 2048
            last-lba: 7814037134

            /dev/sda1 : start= 2048, size= 168188, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=DA86ED3E-1241-4B9B-8189-7F4985D2EB2F
            /dev/sda2 : start= 1026048, size= 16777216, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=9964DCF0-202A-425C-A9AB-CD60ABA2E7A4
            /dev/sda3 : start= 17803264, size= 7796232192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=FFA8A2C3-AD2E-4795-BC6F-1A24DA5A81BB

            And d1.minimum.partitions:

            label: gpt
            label-id: 56098A51-6A69-44A8-A60C-C4227CC6DD25
            device: /dev/sda
            unit: sectors
            first-lba: 2048
            last-lba: 7814037134

            /dev/sda1 : start= 2048, size= 168176, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=DA86ED3E-1241-4B9B-8189-7F4985D2EB2F
            /dev/sda2 : start= 1026048, size= 16777216, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=9964DCF0-202A-425C-A9AB-CD60ABA2E7A4
            /dev/sda3 : start= 17803264, size= 3448940, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=FFA8A2C3-AD2E-4795-BC6F-1A24DA5A81BB

            My image in fog client are setted this:

            Operating system: Linux
            Image type: Single disk - Resizable
            Partition: Everything
            Compression: 6
            Protected: Not checked
            Image enabled: Checked
            Replicate?: checked
            Image manager: Partclone compressed.

            I am trying to deploy the image in the same server with the same disk drive and not resizes.

            Which can is the problem? Thank you!

            S Tom ElliottT 2 Replies Last reply Reply Quote 0
            • S
              SuperMajestic @SuperMajestic
              last edited by

              Additionally, my d1.mbr content:

              Disk d1.mbr: 17,5 KiB, 17920 bytes, 35 sectors
              Units: sectors of 1 * 512 = 512 bytes
              Sector size (logical/physical): 512 bytes / 512 bytes
              I/O size (minimum/optimal): 512 bytes / 512 bytes
              Disklabel type: dos
              Disk identifier: 0x00000000

              Disposit. Inicio Start Final Sectores Size Id Tipo
              d1.mbr1 1 4294967295 4294967295 2T ee GPT

              1 Reply Last reply Reply Quote 0
              • S
                SuperMajestic
                last edited by

                I try to mark sda3 with fixed partitiond and same result. How can I to create fixed partitions, with the size of d1.partitions o d1.minimum.partitions?

                When I install centos without gpt I can modify the file d1.minimum.partitions with the size that I want and works fine.

                Thanks a lot

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

                  @SuperMajestic When did you update to RC 10?

                  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

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SuperMajestic @Tom Elliott
                    last edited by

                    @Tom-Elliott Hello, Exactly six days ago. The backup created in home directory fog_web_1.3.5-RC-10.BACKUP.

                    Thanks

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

                      @SuperMajestic Would you mind re-running the installer?

                      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
                        last edited by

                        A good amount of last week was spent trying to fix issues found in the resize code.

                        Rerunning the installer should get you the latest inits.

                        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
                          SuperMajestic
                          last edited by

                          @Tom-Elliott Bad news,

                          I installed Centos 7 in disk with GPT and I tryed to capture image and not works. This is the log:

                          alt text

                          And after of the error, I try to restart my server and for my surprise, I have an error in grub and my fresh installation don’t works. Before of capture task, I entered on my server, for to change password and other things. I restarted my server normally two or three times and starts correctly before of try capture.

                          What is occurring?

                          I have posted all information I have. If you want any more, no problem!

                          Thanks.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            SuperMajestic @SuperMajestic
                            last edited by

                            @SuperMajestic New installation of Centos 7. Before of capture, this is the partitions of the installation:

                            http://pastebin.com/S2245gUG

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

                              @SuperMajestic Can you show us the contents of both the d1.partitions and d1.minimum.partitions files in regards to this?

                              It’s starting to sound more and more like the problem is specific to the 4tb disk, like it’s not liking the math on such large numbers. The integers appear to be fine from a purely mathematical standpoint but I don’t know.

                              As far as why it’s not picking up the disk? I don’t know. I have now tried replicating the specific problem with both mbr and gpt partitioned disks and can’t seem to get the repeat of the issue. This almost sounds like there’s an issue with the partition layout itself?

                              I was made aware of an upload issue which was corrected for. That said, most of the work I did yesterday was trying to figure out the MBR layout for extended partitions. From what I can see this is working as expected now. I didn’t get a chance to re-test the GPT upload and deploy, but the majority of the work was in dealing with extended and logical partitions. It’s most likely still got some things to work out. That said, GPT should work.

                              If you can start whatever tasking it is but for the host in the tasking add the ‘host kernel args’ of:
                              ismajordebug=1 isdebug=yes and start the client?

                              This will drop the system into a terminal. This is a debug sessions, and should step you through the process of what’s going on waiting for you to prompt for information.

                              With ismajordebug on it will also display before/after information about what’s being applied to the disk in regards to sizing. This will be the most important bits of information we need.

                              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

                              S 1 Reply Last reply Reply Quote 1
                              • S
                                SuperMajestic @Tom Elliott
                                last edited by

                                @Tom-Elliott Can’t show content files because not generated. I believe that are not generated by the error in capture.

                                How I use these options (ismajordebug=1 isdebug=yes)?. When I create the capture task only see option “Schedule task as a debug task”.

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

                                  @SuperMajestic Directly on the Host edit page, Host general.

                                  There’s a text field called “Host kernel arguments”

                                  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

                                  S 2 Replies Last reply Reply Quote 0
                                  • S
                                    SuperMajestic @Tom Elliott
                                    last edited by

                                    @Tom-Elliott Perfect, I saw the option. Now, I installed Ubuntu 16.04 with GPT now. I’m going to test capture with this OS.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SuperMajestic @Tom Elliott
                                      last edited by

                                      @Tom-Elliott Okey, I have in the debug mode.

                                      The console waiting for me.

                                      Before print this text:

                                      osid=50
                                      osname=Linux
                                      mbrfile=
                                      type=up
                                      storage=******:/images/dev/
                                      img=ubuntu1604
                                      imgType=n
                                      imgFormat=0
                                      imgPartitionType=all
                                      disks=/dev/sda
                                      hd=/dev/sda

                                      • press [Enter] key to continue
                                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott @SuperMajestic
                                        last edited by

                                        @SuperMajestic Press enter.

                                        Press enter again.

                                        Type:
                                        fog

                                        When you see the Disk information (after it starts shrinking) please take a pic and post here?

                                        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

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          SuperMajestic @Tom Elliott
                                          last edited by Tom Elliott

                                          @Tom-Elliott
                                          Failed
                                          Worked
                                          Other time, error

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

                                            @SuperMajestic I don’t understand.

                                            I see the pic, and it appears to be working.

                                            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

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

                                            253

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project