Moving images directly from old (0.32) to svn version
-
I previously have a fog 0.32 on Centos 5 on a physical server (ages ago) and decided to take them out so i did a backup. I have now fog latest svn trunk 1.2.0 (rev 3462) installed on centos 6.5 (vm) all goes well, dchp, compatibility and I have 1 host registered successfully.
The next step i did is login to FOG gui create an image, then on the same image directory i put the image file saved on the backup from 0.32 directly via winscp, fixed premission and all.
Then assign that image to my 1 registered host and iniate download task which i’ve succesfully created, then i boot the machine and the imaging started but i encouter the ff errors:
-
Hi,
You can have some help here : https://wiki.fogproject.org/wiki/index.php/Upgrade_to_1.x.x at end of page “Old Images”.
Regards,
Ch3i. -
@ch3i Hi ch3i, thanks for this. Unfortunately when i imported the old sql from 0.32 i encounter a lot of errors. see attached. update_db_failed.txt
-
@luckysantiago For your upgrade you have directly install SVN or before installed the 1.2 ?
-
@ch3i said:
@luckysantiago For your upgrade you have directly install SVN or before installed the 1.2 ?
I directly install the SVN version
-
@luckysantiago said:
@ch3i said:
@luckysantiago For your upgrade you have directly install SVN or before installed the 1.2 ?
I directly install the SVN version
Not sure, but I think you have to install 1.2 before, test if it’s OK and update after with SVN.
-
@ch3i said:
@luckysantiago said:
@ch3i said:
@luckysantiago For your upgrade you have directly install SVN or before installed the 1.2 ?
I directly install the SVN version
Not sure, but I think you have to install 1.2 before, test if it’s OK and update after with SVN.
Hmm… Ok so i will install the official 1.2 then upgrade the svn then restore db from 0.32?
-
@luckysantiago Install 1.2, import database, tests download, upgrade to SVN.
-
@ch3i said:
@luckysantiago Install 1.2, import database, tests download, upgrade to SVN.
Still got an error after import and updating db schema. update_db_failed_0.32_to1.2.txt
-
@luckysantiago You have these errors when you import your database from “fog configuration” “configuration save” ?
-
@ch3i said:
@luckysantiago You have these errors when you import your database from “fog configuration” “configuration save” ?
No. import was success. This errors are after the update/install database schema which is usually prompted after the import.
-
@luckysantiago You have make a fresh install of 1.2 on your server or remove SVN and install 1.2 ?
-
There’s one step as you copied 0.32 images into a fresh install of svn. It currently thinks all images are partclone. We need to change the format so it knows to use partimage.
-
@Tom-Elliott said:
There’s one step as you copied 0.32 images into a fresh install of svn. It currently thinks all images are partclone. We need to change the format so it knows to use partimage.
That means i can directly install the SVN and use just the image and not the old database from 0.32?
What would be the process of changing the format to make it work?
Just to add, i am not really interested using the data (db) from old 0.32, i just need the images to be used again.
Thanks in advance.
-
@ch3i said:
@luckysantiago You have make a fresh install of 1.2 on your server or remove SVN and install 1.2 ?
I just removed the svn (db,opt file,www file) and a fresh install 1.2
-
@luckysantiago said:
@Tom-Elliott said:
There’s one step as you copied 0.32 images into a fresh install of svn. It currently thinks all images are partclone. We need to change the format so it knows to use partimage.
That means i can directly install the SVN and use just the image and not the old database from 0.32?
What would be the process of changing the format to make it work?
Just to add, i am not really interested using the data (db) from old 0.32, i just need the images to be used again.
Thanks in advance.
Hi Tom, kindly advise how should i proceed on this. Thanks in advance.
-
It’s a drop down box in the image description gui.
-
@Joseph-Hales Don’t forget to enable the option to change the format. This is found at:
FOG Configuration->FOG Settings->General Settings->FOG_FORMAT_FLAG_IN_GUI
Check the box and save. Then you can change the Format the images are in. You just need to update each image.
-
Hi Tom and Joseph,
Thanks for your help, that worked! (and yes that option is not avail by default and needs to tick) Though during the download process i encounter some /dev/sda not found errors but still the procedure continued and completed.
What’s the purpose of this Partition dropdown menu on the Image management.
-
It allows you to choose exactly what partitions you want to upload when you capture your image. I always choose “everything”, but there is probably a use for the others.