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

How does FOG operate at 0% capacity when capturing?

Scheduled Pinned Locked Moved
General
3
20
1.8k
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
    salted_cashews
    last edited by Jan 14, 2019, 8:32 PM

    More specifically, I’ve ran into situations where the FOG server has the total space available to store an image, but during the capture process it reports “0%” on the homepage yet the image still captures fine and the value returns to a non-0% number after completion.

    My question is how does FOG do this if it’s out of space to store the temporary capture-in-progress? I understand fog doesn’t overwrite/add image data to the main directory /images until it’s completely captured. It uses a temporary directory first to write the image data from capture, then moves it once complete.

    W 1 Reply Last reply Jan 15, 2019, 1:45 PM Reply Quote 0
    • W
      Wayne Workman @salted_cashews
      last edited by Jan 15, 2019, 1:45 PM

      @salted_cashews How are your partitions set up? Run this command: df -h

      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/

      S 1 Reply Last reply Jan 15, 2019, 2:02 PM Reply Quote 0
      • S
        salted_cashews @Wayne Workman
        last edited by salted_cashews Jan 15, 2019, 8:03 AM Jan 15, 2019, 2:02 PM

        @Wayne-Workman alt text

        The /images dir is a mounted dir on a separate RAID (within the same box) if that means anything.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Jan 15, 2019, 5:28 PM

          @salted_cashews said in How does FOG operate at 0% capacity when capturing?:

          My question is how does FOG do this if it’s out of space to store the temporary capture-in-progress?

          Is this really the case? In the picture you posted we see almost 500 GB free space. Do you know if it went anywhere close to using all that space when you saw it going down to 0% in the web UI? I am asking because it could be either way. Just free space calculated and displayed wrong or space actually being used down to the very last bit and then freed up as the image is being moved from /images/dev to /images. I guess we need your help and more information to track down this issue as it is very hard to replicate in a test setup.

          By the way, your /boot partition is full. You might need to purge/remove some old kernel packages to get some room in there. Otherwise you won’t be able to install new kernel packages anymore. This is FOG server Linux kernels - nothing to do with the client kernels you can update in the web UI!

          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 Jan 15, 2019, 5:36 PM Reply Quote 0
          • S
            salted_cashews @Sebastian Roth
            last edited by salted_cashews Jan 15, 2019, 11:37 AM Jan 15, 2019, 5:36 PM

            @Sebastian-Roth So at the time (the image posted above wasn’t during this event) the WebGUI reported 0% space free and the server when I ran a df -h reported the /images dir to be at 100%. The image captured fine and everything was ok, I was just curious how this was even possible. It must’ve just used another directory/swap?

            Also thanks for the heads up on the /boot partition. So long as I don’t plan to upgrade this doesn’t hurt anything right? (this fog server is hosted in a lab environment)

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Jan 15, 2019, 5:51 PM

              @salted_cashews said in How does FOG operate at 0% capacity when capturing?:

              So at the time (the image posted above wasn’t during this event) the WebGUI reported 0% space free and the server when I ran a df -h reported the /images dir to be at 100%.

              Ok, this is definitely interesting. I would have expected the image to fail when one of the processes would receive a disk full error. Images are sent to the FOG server via NFS and there might be some kind of mismatch between the df on the server and what is seen by a client mounting NFS. Maybe there even is some kind of NFS cache causing what you’ve seen - I am not sure. Do you remember how much space was left before you started capturing the image and how big the image (compressed) was? I guess you were just a bit lucky that it nearly fit and did not fail.

              So long as I don’t plan to upgrade this doesn’t hurt anything right?

              Guess it doesn’t hurt right now. But could cause all sorts of things. Just an example. You install a package that would trigger grub config to regenerate. This time there is no space to write grub.conf and it fails. You hope it’s all fine, reboot the server but it fails to boot as grub.conf is missing. I am not saying this is very likely to happen but it surely can.

              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 Jan 15, 2019, 6:05 PM Reply Quote 0
              • S
                salted_cashews @Sebastian Roth
                last edited by Jan 15, 2019, 6:05 PM

                @Sebastian-Roth I do, we had about ~400gb of space leftover and the image before compression was about ~480gb.

                Oh I see, are you referring to grub.conf or the “grub” file itself? Or is that the same file?

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Jan 15, 2019, 7:58 PM

                  before compression was about ~480gb

                  We do on the fly compression, so the data of the image might not even be as much as 400 GB…

                  Oh I see, are you referring to grub.conf or the “grub” file itself?

                  I meant /boot/grub/grub.conf file. But that was just an example. As I said, it’s not that likely to happen the way I described it. But a full partition is prone to cause issues and I myself wouldn’t leave it like that. But it’s up to you.

                  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 Jan 16, 2019, 8:59 PM Reply Quote 0
                  • W
                    Wayne Workman
                    last edited by Jan 16, 2019, 12:11 AM

                    I’m going to just guess here and say the 0% thing is just an error in how fog is calculating space on the node. My evidence for this? Your image captured fine.

                    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 3
                    • S
                      salted_cashews @Sebastian Roth
                      last edited by Jan 16, 2019, 8:59 PM

                      @Sebastian-Roth When you say on the fly compression do you mean it compresses on the server as it is being captured rather than after? This reminds me - after a capture completes I notice image management still shows “size on server” at 0, and only reports a “real” value after a certain amount of time (of which seems to be based on the size and compression level of the image). Is FoG still compressing at this point? Why does this happen / what is going on in this process? I’ve tried to deploy during this process (before a real value is reported) and it breaks the image on the server as well as deploys a broken image.

                      Any guides for a linux newbie related to safely cleaning up old kernel packages / boot partition? I figure it’s something I don’t know how to do so it’s something to learn. Most of my linux cli experience comes in the form of directory changes and file transfers.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Jan 16, 2019, 9:33 PM

                        @salted_cashews No we really compress on the fly. In the Linux world this is done by using pipes. The output of partclone (reading the data from disk) is directly passed to the compression program (gzip, zstd, …) and only written to disk after that.

                        The delay in updating the “size on server” is because a service is running in the background to enumerate images sizes and write that to the database. So after an image is done it takes a couple of minutes till the “size service” comes along and calculates it.

                        I’ve tried to deploy during this process (before a real value is reported) and it breaks the image on the server as well as deploys a broken image.

                        Then exactly did you start deploying the image? Capture finished before deploy started? In which way did it break the image???

                        Any guides for a linux newbie related to safely cleaning up old kernel packages / boot partition?

                        Which Linux OS do you use?

                        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 Jan 16, 2019, 9:52 PM Reply Quote 1
                        • S
                          salted_cashews @Sebastian Roth
                          last edited by Jan 16, 2019, 9:52 PM

                          @Sebastian-Roth For FOG, it’s Ubuntu 16.04.

                          It’s possible my memory is wrong, but I remember starting the deployment within a minute after the capture completed. I had waited for the task to complete and disappear from the web GUI’s “Active Tasks”. I could be thinking of the issue with the unclean Ubuntu file system I had made another topic about (still working on that situation btw) in which correlation might not be causation, that could’ve just been something I had noticed different and thought “well the size was 0 so maybe that’s why it broke, it didn’t finish compressing.” when in reality it could’ve just been the file system.

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Jan 16, 2019, 9:58 PM

                            @salted_cashews Run apt autoremove as root and it should clean up for you.

                            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 Jan 16, 2019, 10:30 PM Reply Quote 0
                            • S
                              salted_cashews @Sebastian Roth
                              last edited by Jan 16, 2019, 10:30 PM

                              @Sebastian-Roth Oh that’s delightfully simple, thanks!

                              1 Reply Last reply Reply Quote 0
                              • W
                                Wayne Workman
                                last edited by Jan 17, 2019, 2:06 AM

                                Ther’s also apt-get -y autodelete

                                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/

                                S 1 Reply Last reply Jan 17, 2019, 2:00 PM Reply Quote 0
                                • S
                                  salted_cashews @Wayne Workman
                                  last edited by Jan 17, 2019, 2:00 PM

                                  @Wayne-Workman Is this one any different or is it basically a synonym command?

                                  W 1 Reply Last reply Jan 18, 2019, 3:40 AM Reply Quote 0
                                  • W
                                    Wayne Workman @salted_cashews
                                    last edited by Wayne Workman Jan 17, 2019, 9:40 PM Jan 18, 2019, 3:40 AM

                                    @salted_cashews It’s different.

                                    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/

                                    S 1 Reply Last reply Jan 18, 2019, 4:47 PM Reply Quote 0
                                    • S
                                      salted_cashews @Wayne Workman
                                      last edited by Jan 18, 2019, 4:47 PM

                                      @Wayne-Workman How so?

                                      W 1 Reply Last reply Jan 18, 2019, 11:53 PM Reply Quote 0
                                      • W
                                        Wayne Workman @salted_cashews
                                        last edited by Jan 18, 2019, 11:53 PM

                                        @salted_cashews Correction. This is what I use for updating Debian based systems: apt-get update;apt-get -y dist-upgrade;apt-get -y autoclean;apt-get -y autoremove

                                        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/

                                        S 1 Reply Last reply Jan 22, 2019, 2:58 PM Reply Quote 0
                                        • S
                                          salted_cashews @Wayne Workman
                                          last edited by Jan 22, 2019, 2:58 PM

                                          @Wayne-Workman Interesting, I found our problem was the initial setup of the Ubuntu server that hosts FOG was set to allow auto-updates. This will come in handy for future installs, thanks!

                                          1 Reply Last reply Reply Quote 0
                                          • 1 / 1
                                          1 / 1
                                          • First post
                                            1/20
                                            Last post

                                          224

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project