• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • M
    moses
    last edited by moses Apr 14, 2016, 7:56 AM Apr 14, 2016, 1:54 PM

    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
    • T
      Tom Elliott
      last edited by Apr 14, 2016, 2:50 PM

      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

      M 1 Reply Last reply Apr 14, 2016, 2:51 PM Reply Quote 0
      • M
        moses @Tom Elliott
        last edited by Apr 14, 2016, 2:51 PM

        @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

        T 1 Reply Last reply Apr 14, 2016, 2:52 PM Reply Quote 0
        • T
          Tom Elliott @moses
          last edited by Apr 14, 2016, 2:52 PM

          @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

          M 1 Reply Last reply Apr 14, 2016, 2:53 PM Reply Quote 0
          • M
            moses @Tom Elliott
            last edited by Apr 14, 2016, 2:53 PM

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

            T 1 Reply Last reply Apr 14, 2016, 2:55 PM Reply Quote 0
            • W
              Wayne Workman
              last edited by Apr 14, 2016, 2:53 PM

              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/

              M 1 Reply Last reply Apr 14, 2016, 2:54 PM Reply Quote 0
              • M
                moses @Wayne Workman
                last edited by Apr 14, 2016, 2:54 PM

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

                W 1 Reply Last reply Apr 14, 2016, 2:55 PM Reply Quote 0
                • W
                  Wayne Workman @moses
                  last edited by Apr 14, 2016, 2:55 PM

                  @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
                  • T
                    Tom Elliott @moses
                    last edited by Apr 14, 2016, 2:55 PM

                    @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

                    M 1 Reply Last reply Apr 14, 2016, 6:59 PM Reply Quote 1
                    • M
                      moses @Tom Elliott
                      last edited by Apr 14, 2016, 6:59 PM

                      @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 Apr 15, 2016, 7:09 AM Reply Quote 0
                      • W
                        Wayne Workman
                        last edited by Apr 14, 2016, 7:06 PM

                        #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 Apr 15, 2016, 7:09 AM

                          @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

                          M 1 Reply Last reply Apr 15, 2016, 2:50 PM Reply Quote 2
                          • M
                            moses @Sebastian Roth
                            last edited by moses Apr 15, 2016, 8:50 AM Apr 15, 2016, 2:50 PM

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

                            149

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project