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

    Moving and upgrading FOG install at the same time

    Scheduled Pinned Locked Moved
    General
    4
    8
    393
    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
      Derek Newbold
      last edited by

      Hi All,

      I would like to do a fresh/updated OS install of the VM that we are using to run FOG and at the same time upgrade FOG to the latest version as we are having some issues with slowness of the FOG interface that we haven’t been able to get to the bottom of (I believe it is a sql based issue). I’m not entirely sure on the steps I should follow to do this and whether it is not a good idea to move and upgrade FOG both at the same time? Some of the Wiki guides are not up to date so thought I would ask on here if anyone could give a quick rundown on the process I should use please? I’m also unsure on what the recommended OS is these days, I believe Ubuntu is no longer recommended?

      Current OS: Ubuntu 16.04 LTS
      Current FOG version: 1.5.4

      Future OS: (Suggestions on best OS please?)
      Future FOG version: 1.5.7

      My current plan is to do something like this below, but I’m unsure if this process is correct and what the actual steps are:

      1. Backup all necessary FOG related files (images, snap ins, sql database etc)
      2. Snapshot VM as a backup.
      3. Format VM and install new OS.
      4. Install FOG.
      5. Restore FOG related files from previous install.
      6. Remove VM snapshot once new install is working well.

      Thankyou for any help you can provide!

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

        Any of the 3 leading linux distros are fine. My preference is Centos 7, but that is because I’m a long time RHEL admin. I might hold off on Debian 10 since its so new. But Debian 9, Centos 7, or Ubuntu 18.04 should be fine.

        There are 2 wiki pages on migrating your fog server that you might want to read over:

        https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

        https://wiki.fogproject.org/wiki/index.php?title=Migrate_images_manually

        The version 1.5.x series of FOG uses php-fpm to get over the slowness that was introduced in 1.5.0 (just because of the new ui interface). Make sure your VM has at least 4GB of ram and 2 vCPUs for this new configuration.

        One thing I need to ask is how many client computers (with the fog client installed) will be communicating with this FOG server?

        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
        • D
          Derek Newbold
          last edited by

          Thanks @george1421

          I think I will stick to Ubuntu 18.04 then as I’m used to that and not that familiar with linux in general.

          So are you saying that our current version of 1.5.4 should not be running slow? We are seeing weird issues where it will take awhile to complete things such as updating details on a host (client computer). When you click the update button it can take up to 20-30 seconds sometimes for it to bring up the green box saying its completed. There are other random slowness issues but this is the most prevalent. I’ve tried bumping the VM up to 4 vCPU’s and 12GB of RAM but it doesn’t seem to make any difference. I’ve also tried to tweak MySQL settings for better performance, but again doesn’t seem to make a difference (although my knowledge on this is limited). Watching the CPU usage it seems like the VM is being taxed pretty hard most of the time which doesn’t seem right.

          We have probably about 400 to 500 client computers that could be contacting FOG, but generally not all of them would be turned on at the same time. The current client check in time is set to 5 minutes in the FOG Client settings in the FOG web interface. We also did not have any slowness issues prior to upgrading to 1.5.4 so it seems related to that version or something that has changed since older versions (perhaps the new UI interface as you suggested). Any tips around preventing this slowness issue other than adjusting FOG client check in times which I would prefer not to adjust if possible?

          1 Reply Last reply Reply Quote 0
          • D
            Derek Newbold
            last edited by

            Actually maybe I’ll try out Centos!

            Also I should mention that our slowness issue seems to still happen even after hours when the majority of our client computers would be turned off.

            Q 1 Reply Last reply Reply Quote 1
            • S
              Sebastian Roth Moderator
              last edited by

              @Derek-Newbold Good choice I’d say. Make sure you read this: https://wiki.fogproject.org/wiki/index.php?title=CentOS_7 (important parts about firewall an SELinux)

              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
              • Q
                Quazz Moderator @Derek Newbold
                last edited by Quazz

                @Derek-Newbold What kind of virtualization software do you use?

                One thing that I recall happened sometimes on ubuntu (not sure if it was specific to ubuntu) was the switch to php-fpm not actually happening properly so people would be running the new interface without php-fpm which would be quite slow when you have a lot of clients and such.

                If you check running programs you can verify whether there’s php or php-fpm processes running, which should give use a better idea of your current situation.

                Ubuntu in general has been somewhat problematic for FOG with dodgy updates on their end in relation to PHP and mysql and such.

                D 1 Reply Last reply Reply Quote 0
                • D
                  Derek Newbold @Quazz
                  last edited by

                  @Quazz we use VMware ESXi as our virtualization software.

                  I’ve also had a look at the running processes and it says php-fpm7.1

                  Q 1 Reply Last reply Reply Quote 0
                  • Q
                    Quazz Moderator @Derek Newbold
                    last edited by

                    @Derek-Newbold Good to know that php-fpm is installed and running! (Speaking of running processes, what does CPU and RAM usage look like (for processes such as apache, mysql, php-fpm, etc) when you try to do something that takes a long time for you?)

                    Odd that you’re experiencing performance issues despite this. Though number of clients could contribute to this.

                    If you have a bunch of hosts/clients, it’s also possible your database has grown quite a bit over time which can slow things down a bit.

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

                    162

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project