?
Solved

Moving images from one FOG server to another.

Posted on 2012-09-07
13
Medium Priority
?
2,782 Views
Last Modified: 2013-02-24
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.
0
Comment
Question by:csialbany
  • 8
  • 5
13 Comments
 
LVL 31

Expert Comment

by:serialband
ID: 38377497
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
 

Author Comment

by:csialbany
ID: 38377651
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
 
LVL 31

Expert Comment

by:serialband
ID: 38378005
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:csialbany
ID: 38379565
I do not have the dead systems Database.
0
 

Author Comment

by:csialbany
ID: 38383370
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
 
LVL 31

Expert Comment

by:serialband
ID: 38384270
Maybe you could extract the database entry of a working image an see if it's a simple thing to duplicate.
0
 

Author Comment

by:csialbany
ID: 38386918
serialband,
I like the idea, but have little idea of how to go about this. Any suggestions?
0
 
LVL 31

Expert Comment

by:serialband
ID: 38389000
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
 

Author Comment

by:csialbany
ID: 38395844
when I try to run that command, I get "unknown option --xml,"
0
 

Author Comment

by:csialbany
ID: 38396034
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
 
LVL 31

Expert Comment

by:serialband
ID: 38396669
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
 

Accepted Solution

by:
csialbany earned 0 total points
ID: 38906236
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
 

Author Closing Comment

by:csialbany
ID: 38922758
No solution. Closing question unanswered.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question