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

    Best way to move FOG from dead system

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    13
    2.4k
    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.
    • mosesM
      moses
      last edited by moses

      Long story short, something happened to the CentOS installation of my main FOG server, and my backups are no good. Can’t boot, but the data is still there. Rather than try and figure out what the hell happened to the kernel, I’m just going to reinstall FOG on a different machine and move the data there (I can still get into the HDD from a live linux disk).

      I know that I should copy my .fogsettings file so the installer sets up everything the same, and copy my images, obviously.

      However, I’m trying to figure out the best way to move the MySQL DB. Given that I can’t boot up the system, how I can I best move the DB to the new system?

      I read in a couple places you can copy /var/lib/mysql once MySQL is installed, but I would want a second opinion before I move forward.

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

        Depends on how the system “crashed and burned”. I’d say, in your case, you really don’t have any options.

        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

        mosesM 1 Reply Last reply Reply Quote 0
        • mosesM
          moses @Tom Elliott
          last edited by

          @Tom-Elliott I had a feeling that would be the case. Thankfully, it’s not in production yet, so I’ll just have to re-add my storage nodes. Thanks anyway

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

            @moses well, you can copy the /var/lib/mysql and place it on your system.

            You won’t have to do anything special really.

            Just copy the image, /opt/fog, /var/lib/mysql, and rerun the installer (to make sure things are somewhat fresher and more stable I suppose).

            That means you don’t have to do any other work as the mysql will still be there.

            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

            mosesM 1 Reply Last reply Reply Quote 0
            • mosesM
              moses @Tom Elliott
              last edited by

              @Tom-Elliott Should I copy /var/lib/mysql/ to the new system before or after FOG is installed there? I’m assuming after.

              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman
                last edited by

                I agree with Tom, I’ve been thinking about this thread since you posted.

                There could be a lot of things you could do, or none. If the HDD bit the dust, you are out of luck. If it’s a simple kernel issue due to updating, all you have to do is pick the old kernel when the system is booting. You can also boot into recovery mode and maybe check free space.

                There is no replacement for many backups. I keep snapshots, manual copies of my images, many copies of my database, and I try to hold onto the built-in backups that FOG Trunk makes as well.

                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/

                mosesM 1 Reply Last reply Reply Quote 0
                • mosesM
                  moses @Wayne Workman
                  last edited by

                  @Wayne-Workman The HDD is good, but none of the old kernels or the recovery kernel work. It hangs on boot indefinitely.

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

                    @moses take the HDD out and try it in another system.

                    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
                    • Tom ElliottT
                      Tom Elliott @moses
                      last edited by

                      @moses I would say install mysql manually, stop mysql service, copy over the old /var/lib/mysql, start the service.

                      If you had any special things from the mysql config before, copy over the old (/etc/mysql/my.cnf – debian based, or /etc/my.cnf – redhat based) to the new as well before starting the service.

                      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

                      mosesM 1 Reply Last reply Reply Quote 1
                      • mosesM
                        moses @Tom Elliott
                        last edited by

                        @Tom-Elliott That did the trick! FOG is installed again and running fine again.

                        One issue I noticed is the bandwidth graph is gone on the home page. The http://fogserver/status/bandwidth.php page seems to be missing.

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

                          #wiki worthy.

                          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
                          • S
                            Sebastian Roth Moderator @moses
                            last edited by

                            @moses said:

                            One issue I noticed is the bandwidth graph is gone on the home page. The http://fogserver/status/bandwidth.php page seems to be missing.

                            Shouldn’t that be http://fogserver/fog/status/bandwidth.php??

                            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

                            mosesM 1 Reply Last reply Reply Quote 2
                            • mosesM
                              moses @Sebastian Roth
                              last edited by moses

                              @Sebastian-Roth Oh, I’m silly. You are correct. That page returns:

                              {"dev":"unknown","rx":0,"tx":0}
                              

                              I can confirm that the interface is set correct in storage nodes for this server, if that’s related.

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

                              149

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project