Upgrade to 1.x.x

From FOG Project
Revision as of 11:50, 16 April 2014 by Tom-elliott.7271 (talk | contribs) (Clean out the old)
Jump to: navigation, search

Upgrade Procedure

NOTE: 0.33 is a, nearly, complete rewrite from previous versions of FOG. There are many changes and upgrading from past revisions is not recommended. It is still possible, but it is HIGHLY recommended to do a fresh install.

There is no guarantee that this method is going to work 100% of the time in all cases. Please see the above note as to why if you're worried.

All commands are assumed to be run as root. If you don't have access to root, prepend the installation with sudo (ex.

sudo svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_0.33
sudo ./installfog.sh

Download

  1. Get the source or tarball.
    • == To get the Source from SVN ==
    • svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_0.33
    • == To get tarball file. ==
    • NOT READY YET

Prepare for install

  1. Change to the downloaded source installation folder.
    • cd /opt/fog_0.33/bin
  2. Begin as if you're installing.
    • ./installfog.sh
  3. Confirm you want to upgrade using the .fogsettings UNLESS YOU HAVE TO MAKE CHANGES

Clean out the old

AS THERE ARE SO MANY CHANGES YOU WILL NEED TO MAKE ONE MINOR DATABASE CHANGE TO MAKE THINGS WORK

  1. Login to your mysql system
    • MySQL with a password set:
    • mysql -u root -p'<YOURPASSWORDHERE>' fog
    • MySQL without a password:
    • mysql -u root fog
  2. Run the following query once you see the mysql> prompt:
    • THIS REMOVES ALL TASKS FROM THE TASKS TABLE ESSENTIALLY MAKING THE TASKS AS IF THEY HAVE NEVER BEEN PERFORMED. IMAGING LOG IS UNTOUCHED SO IF YOU NEED RECORDS OF THE ACTUAL TASKS MAKE A BACKUP FIRST
    • truncate table tasks;
  3. Sign into the FOG GUI
    • Go to the link you normally go to and you should notice the upgrade/install database screen.
    • Click the submit button and it should move on to say, Click here to login, once complete.
    • Sign in with your normal user and password.
  4. Make necessary adjustments.
    • As the hostOS column has been moved to the images table rather than the hosts table, you need to specify the Operating system of the images currently on your system.
    • To do so, login to the FOG GUI and navigate to the Image Management Page. Click on each of your images and set the OSID accordingly.

Congratulations

You should now have an UPGRADED FOG server that will be able to perform all the tasks we've all come to know and love.