Moving images from one FOG server to another.

I have a healthy FOG server (0.32 running on Ubuntu 11.04).

A branch office had a failure of their FOG server and sent me a hard drive with 50 or so images to import on to our functioning server.

How can I get these images to work on our server?

I have tried copying the images into the default storage directory. Any image that was newly copied will begin to deploy and then stop suddenly at 105 or so and report success. Of course the imaged machines will not boot.

All of the images that were already on the server work fine.
csialbanyAsked:
Who is Participating?
 
csialbanyAuthor Commented:
I never did find a solution to this problem. I ended up recreating all 67 images from scratch. If anyone ever discovers a way to usefully back up FOG images, I would love to know.
Thanks.
0
 
serialbandCommented:
According to the following links, there's a bit more than just the images to copy over.  There's a MySQL database that has to be exported from the old system, then imported to the new system.

http://www.fogproject.org/wiki/index.php?title=Moving_Between_Servers

http://www.edugeek.net/forums/o-s-deployment/58378-copying-images-another-server.html
0
 
csialbanyAuthor Commented:
Unfortunately the old FOG installation is unavailable. All I have are the image files on an external drive. It seems unlikely to me that there would be no possible way to import these images into an existing FOG environment, but if that is so, it is so.
I had already come across both of the links presented here.
(I have tried to back up the FOG installation on our healthy server using the instructions outlined here: http://www.fogproject.org/wiki/index.php/Backing_up_FOG
,but have never been successful.)

The peculiar thing is that if I create a new image definition that matches the name of the image on the external drive and then copy the image into the /image directory, the deployment process actually starts. It does not fail and throw me a permissions error. It does not fail with an image not found error. It begins deployment and then just stops and tells me it was successful.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
serialbandCommented:
Do you have the Dead system's MySQL database?  It sound like you have to load that into your database to match the image file to make it work.  

From your link:

MySql holds all the data for FOG, like all your host, image, printer, snapin and inventory information
0
 
csialbanyAuthor Commented:
I do not have the dead systems Database.
0
 
csialbanyAuthor Commented:
It occurs to me that another possible solution to my predicament would be to somehow restore the .img files to hard drives with something other than FOG and then upload the images into FOG as new images. Is there a way to image the multiple partition bootable images onto hard drives that utilizes something other than FOG?
0
 
serialbandCommented:
Maybe you could extract the database entry of a working image an see if it's a simple thing to duplicate.
0
 
csialbanyAuthor Commented:
serialband,
I like the idea, but have little idea of how to go about this. Any suggestions?
0
 
serialbandCommented:
I'm not a mysql expert, but you might be able to start by dumping your database in xml format.

 mysqldump [options] --all-databases --xml, -X
0
 
csialbanyAuthor Commented:
when I try to run that command, I get "unknown option --xml,"
0
 
csialbanyAuthor Commented:
ok, I ran the command without the comma and got a great deal of code displayed in the terminal. I have no idea what I am looking at though, or what to do with it. Any ideas?
Thanks!
0
 
serialbandCommented:
Sorry, I should have stipulated that it should be redirected to a file

 mysqldump [options] --all-databases --xml > fogdata.xml

And then, it will be slightly easier to look through.  Now, hopefully someone with better sql knowledge can take over so that you can find out what the data layout is and copy the portions needed to put it back into the new entries.  I've only done the dump and reload for other people to backup and recover their databases.

Maybe you could try the forums at the fogproject.org.
0
 
csialbanyAuthor Commented:
No solution. Closing question unanswered.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.