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

    Intermittent failure to expand ext4 filesystem to fill disk

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    4
    8
    2.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.
    • D
      Dommason01
      last edited by

      Hi

      I’m running FOG 1.2.0 on Debian Jessie, and deploying an xubuntu 16.04 image to Lenovo E550 laptops with a 460Gb HDD

      My image is created on a VMWare VM and is a 20Gb disk, with two partitions /dev/sda1 (root) of 12Gb and /dev/sda2 (swap) of 8Gb

      I see no errors reported during deployment, but approximately 60% of the time the filesystem fails to expand to make use of the whole disk

      I get success or failure regardless of whether I delete a Host, re-register it from scratch, and deploy directly from the registration process, or whether I create a new task to deploy to an already existing host.

      Yesterday I depl;oyed 5 times to the same laptop, and the filesystem was expanded successfully on only two of those attempts, and on another laptop with the same image, it worked twice out of four attempts.

      Obviously this can be fixed by booting with a GParted USB stick, but as it seems to be intermittent, I feel that there is a bug somewhere, or at least a failure to report that the resizing of /dev/sda1 has failed

      I have seen others with similar issues, but they seem to be having problems with SVN versions, whereas I am using the stable release.

      The image is definitely set correctly as Single Disk / Resizable and there seems to be no rhyme or reason for whether it either succeeds or fails.

      Regards

      ch3iC 1 Reply Last reply Reply Quote 0
      • ch3iC
        ch3i Moderator @Dommason01
        last edited by

        @Dommason01 Hi, Have you try to deploy in debug mode ?

        D 2 Replies Last reply Reply Quote 2
        • Tom ElliottT
          Tom Elliott
          last edited by

          Also you might think about upgrading to one of the RC builds as I’m pretty sure Linux support is much better than in the past.

          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 1
          • D
            Dommason01 @ch3i
            last edited by

            @ch3i Thanks, I will look at running in debug mode, and also look at the process of upgrading a fog server from 1.2.0 to a RC

            1 Reply Last reply Reply Quote 0
            • D
              Dommason01 @ch3i
              last edited by

              @ch3i

              As well as trying debug mode, is there a log location for deployments that details what has been done via a deployment?

              I’ve enabled debug mode and run through the instructions on https://wiki.fogproject.org/wiki/index.php?title=Debug_Mode up to a point.

              Win7 obviously uses ntfsresize to expand the partition, but what I need is the command (and options) that works for a linux partition, presumably resize2fs

              So I’ve done up to

              cat d1p1.img | pigz -d -c | partclone.restore -O /dev/sda1 -N -f -i

              with no problem, but the problem I’m having is the resizing.

              Can I find the options for resize2fs(?) somewhere in the php on the fog server?

              I can test, and then it might be useful to add them to the above wiki page.

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

                @Dommason01 Have you updated to the latest RC yet?

                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/

                D 1 Reply Last reply Reply Quote 0
                • D
                  Dommason01 @Wayne Workman
                  last edited by

                  @Wayne-Workman

                  Not yet, I was hoping to run in debug mode on 1.2.0 and see if I could see some reason for the failure, with the thought that it might be useful to you…

                  However…
                  I’ll git clone the latest trunk, and install that.

                  I assume that I won’t lose all my registered hosts, and my images will still be valid?

                  I’ll do a mysql backup anyway, first…

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

                    @Dommason01 said in Intermittent failure to expand ext4 filesystem to fill disk:

                    I assume that I won’t lose all my registered hosts, and my images will still be valid?

                    Correct.

                    I’ll do a mysql backup anyway, first…

                    Always a good idea, and I’d always recommend this. But also the installer makes a DB backup, and puts it into /home/fogDBbackups

                    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
                    • 1 / 1
                    • First post
                      Last post

                    200

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project