Transfer images to a new system



  • Good Morning,

    I am looking to transition my fog server from a 1tb drive to a 2tb drive. In the process of doing this, I would like to start from scratch as far as the OS goes. Like a noob I installed the 32bit version of Ubuntu server thinking it would save a few resources and not accounting for the ram limitation…oops. The server machine is not changing, just the hard drive and underlying OS.

    My question is how can I go about transferring my 4 images from the old instance of fog to my newly installed one?



  • I should do a better job of explaining things. I just reread what i put and it was pretty vague. TY @Wayne-Workman for being much better at this than me. :-)



  • @mrdally204 said:

    @Wayne-Workman I am using Trunk. So all I would need to do is export the images table on the old server, copy the folder that contains my images to the new instance, then import the images table? Please correct if I’m misunderstanding.

    Given that you’re storage node name is the same, and the image path is the same, and that you have 777 perms on the image path and you have your .mntcheck files in there, yes.

    • Make your storage node the same name
    • Make sure /etc/exports is in order
    • Make sure your image path is the same
    • Assuming /images, make your .mntcheck files and set perms:
      touch /images/.mntcheck
      touch /images/dev/.mntcheck
      chown -R fog:root /images
      chmod -R 777 /images
    • Import your images data via the web interface.


  • @Wayne-Workman I am using Trunk. So all I would need to do is export the images table on the old server, copy the folder that contains my images to the new instance, then import the images table? Please correct if I’m misunderstanding.



  • @mrdally204 Oh. yeah then just copy them over and then follow what @EAHarvey said.

    If you were using FOG Trunk (pre 1.3.0), you could export just the images table only, and then import that into the new server. See the pic below:

    0_1452276486298_upload-0ca3a84c-7be0-4614-aa3f-31aaf3ad2a0b



  • @Wayne-Workman I originally was just going to hook both drives up to the system and copy from one drive to the next. My main concern was getting FOG to recognize the images once they are in the proper location. The physical transferring of files should not be an obstacle .



  • @mrdally204 How were you wanting to do the transfer? Do you have a USB external enclosure you can stick the old drive into? Do you want to not bother with that and use a shared folder on the network?

    There are a whole lot of options.





  • When I did mine, I just copied the images into the new images folder on your server. Make the permissions are all set 777 on the folder. Then when you add an image through your FOG interface, make sure the name is exactly the same is the image name. I know there is a forum post on this. I’ll see if I can find it.


 

372
Online

41.5k
Users

12.0k
Topics

113.5k
Posts