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

OS reinstall

Scheduled Pinned Locked Moved Solved
FOG Problems
4
15
4.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.
  • T
    the_duke @Wayne Workman
    last edited by Oct 7, 2015, 4:51 PM

    @Wayne-Workman thanks wayne, this is what I was looking for. This is how it is currently setup

    W 1 Reply Last reply Oct 7, 2015, 4:53 PM Reply Quote 0
    • W
      Wayne Workman @the_duke
      last edited by Wayne Workman Oct 7, 2015, 11:35 AM Oct 7, 2015, 4:53 PM

      @the_duke Do you have a DHCP reservation for FOG? or is it totally dynamic?

      If IP addresses instead of names were used to install the fog client, you’ll need to use the same IP again too. If you have a DHCP Reservation, you’ll need to make sure this doesn’t change (if it’s virtualized or whatnot)

      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/

      T 1 Reply Last reply Oct 7, 2015, 7:13 PM Reply Quote 0
      • I
        ITSolutions Testers
        last edited by Oct 7, 2015, 5:34 PM

        I was going to suggest the same setup as I almost always set my servers up that way. I like the separation.

        Once you answer the questions raised by @Wayne-Workman then you can actually proceed with the rebuild. It sounds like you have a physical server from your description, does it have just a single nic or multiple? Also make sure you have the IP of the server and/or name of the server. The clients will need it to stay the same, unless you want to updated with GP and new config file. On the legacy clients it is trivial to update the config file with GP if you choose to change IP’s or names.

        Also given that you are rebuilding the server this may be a time to weigh the Pros and Cons of upgrading to trunk as it is rather stable and offers many new features.

        I would run the back up script and also do the export as @Wayne-Workman mentioned and save all of this to an external location either usb HDD or network location. I would also include the .fogsettings file, usually in /opt/fog/ for Ubuntu, as it has the original install settings stored in it. As long as you want it back to how it worked on install this could save sometime.

        ** A side note that may help, backing up your fstab file under /etc/ maybe wise also as it most likely will have the mounting point for /dev/sdb1 as the /images dir. (If the second HDD is auto mounted as /images as you have indicated). I will often unplug the second drive as to ensure it will not overwrite any thing during OS re-install(saving time on coping images back). I have had bad experiences in the past on this.

        Then I would reinstall your OS and if you are staying with 1.2 then definitely use 12.04. But if you choose to upgrade to trunk then 14.04 or higher maybe a better choice. Then set you IP if it is static on the server. Proceed with the reinstall of FOG, you can copy the .fogsettings file from backup to the install location, usually /opt/fog/ if I recall correctly. After it is set up and database is configured then you can restore the database from the web gui. You can copy the “snap in” back up directory to the “/opt/fog/snap in” directory. If you chose to back up your fstab file then restore that to /etc/ (make sure to backup the original fstab in case there is a conflict), shutdown the server, plug in the second drive and reboot. If all goes well FOG should be installed and images there and ready for deployment.

        @Wayne-Workman if I am missing something please chime in, I think that pretty well covers it though.

        T 1 Reply Last reply Oct 12, 2015, 9:05 PM Reply Quote 1
        • T
          the_duke @Wayne Workman
          last edited by Oct 7, 2015, 7:13 PM

          @Wayne-Workman yes I have a dhcp reservation for the fog.

          1 Reply Last reply Reply Quote 0
          • T
            the_duke @ITSolutions
            last edited by Oct 12, 2015, 9:05 PM

            @ITSolutions Ok, I have reinstalled 12.04 and installed fog and tried to import my database backup but it says can’t upload file. I have uploaded all of my hosts from .csv file, but when I look in the image management section, I can’t find my images. In the filesystem, the /images directory is where all of my images are located. It just auto mounted into the /images directory. Any ideas as to what maybe happening?

            T 1 Reply Last reply Oct 12, 2015, 11:04 PM Reply Quote 0
            • T
              Tom Elliott @the_duke
              last edited by Oct 12, 2015, 11:04 PM

              @the_duke I’m guessing your installing 1.2.0? The cannot upload db file is most likely because of the size of the file. How big is the db dump you have? Would you be willing to consider installing trunk? Trunk alters a bit of the php.ini file so you can upload larger files. I believe trunk sets the size to 100 MB which should be enough I hope for the db dump. What it sounds like is your setup is pretty vanilla right now meaning the max file size you can upload is either 2 or 8 MB which is really small. This can be changed if your willing to edit the file yourself. When you change the sizes you will have to restart Apache. On Ubuntu, I believe, the file you need to edit is /etc/php5/php.ini and you need to look for post_max_filesize and max_upload_size.

              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

              T 1 Reply Last reply Oct 13, 2015, 5:49 PM Reply Quote 0
              • T
                the_duke @Tom Elliott
                last edited by Oct 13, 2015, 5:49 PM

                @Tom-Elliott Yes I used 1.2.0. I have edited the file and was able to restore my database, but when I go to image management, there are no images listed. My path is correct in storage management and my /images directory has all my images

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Oct 13, 2015, 5:54 PM

                  @the_duke, because this is a fresh install, you still have to create the image definitions. It knows NOTHING about your 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! 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

                  T 1 Reply Last reply Oct 13, 2015, 6:06 PM Reply Quote 0
                  • T
                    the_duke @Tom Elliott
                    last edited by Oct 13, 2015, 6:06 PM

                    @Tom-Elliott Oh ok. I just thought all that would be pulled from the database backup.

                    W 1 Reply Last reply Oct 13, 2015, 7:01 PM Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Oct 13, 2015, 6:58 PM

                      Right but you said uploading the database backup failed so…

                      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 0
                      • W
                        Wayne Workman @the_duke
                        last edited by Oct 13, 2015, 7:01 PM

                        @the_duke then I doubt the DB backup worked correctly, or, I doubt the import went correctly.

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

                        166

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project