New Fog Server - /images location
-
@george1421 Ok George, looks like I need another cup of coffee… I figured out why the Storage was not online. Two issues.
-
Selinux - Looks like I ran the script earlier without putting Selinux in Permissive mode so yeah it was breaking things. Found out when I tried to actually pull an image.
-
Permissions - Permissions for /fogserver dircetory needed to change ownership (was root:root needs to be fog:root) Recursively along with 777 so the /fogserver/images directory had the correct permissions but not the /fogserver dircetory.
Looks like things are good. I am Rsyncing the images back over from the old fog server and will try it again when they come over.
-
-
@Technolust Ah the fog prerequisites were not met. OK, good you had that bit figured out as well as the permissions.
So are you 100% good now?
-
@george1421 Just about. I can’t get the fog server to see the images I RSYNC’d over. Not sure how to get them to show up. I moved over two images to the /fogserver/images directory. Do you know how to move images from one Fog Server to another?
-
@Technolust Remember (or know) that with FOG there are 2 parts to the image.
- Raw data files stored in /images
- The metadata in the database.
You can rsync the files over, but you will need to create the metadata by going in and manually create a new image definition in the new FOG server. Create it manually by copy and pasting from the source FOG server. I would say export and import but I don’t know the impact of changing the /images directory when you import. Its just easy enough to copy and paste between the two servers.
Just call up the old server and the image definition and then create a new server definition on the new server and copy between.
-
Sweet, I’m just not sure I completely understand how to copy the metadata in the database.
“create the metadata by going in and manually create a new image definition in the new FOG server”Do you know the location of the below?
“Create it manually by copy and pasting from the source FOG server.”I setup samba on both servers so I can do in GUI or I can scp the files…
-
@Technolust said in New Fog Server - /images location:
I setup samba on both servers so I can do in GUI or I can scp the files…
It’s not just the files! What George is saying is that you need to create the image definitions (also can be called metadata) in the web UI of the new server as well. This can either be done through database export (old server) and import (new server) or just manually. The later is way easier to do if it’s just a couple or dozen of image definitions you have. Simply open the web UI of both your servers in two browser windows. Now edit one of the image definitions on the old one and click create image on the new one. Set all options exactly like they were on the old server. Save and go to the next.
-
@Technolust said in New Fog Server - /images location:
I setup samba on both servers so I can do in GUI or I can scp the files…
How very windows-ick way of thinking. On both the source and destination servers the /images directories are shared via NFS. No need for samba, just mount the remote nfs share.
I’m just messing with you, do what ever you need to get the job done. If samba was your answer and it did what you needed, it was the perfect fit.
-
@Sebastian-Roth How do I edit the image definition?
-
@Technolust said in New Fog Server - /images location:
How do I edit the image definition?
Open the FOG web UI, click images icon in the top menu, click “List all Images” on the left, click the Image name to see and edit the image defintion/settings.
-
@george1421 I was able to figure it out. After RSYNC’ing the directories you have to export the images off the old server and then on the new server you have to import the images. Tested an image to a laptop and it worked.
Thank you for all the help. All good now.
-
@Sebastian-Roth I’m not seeing image definition. If you mean under Image General after opening an image and changing one of the properties to any of the settings then that did not work either.
I was able to export the images and import them to the new server after I RSYNC’d the images.
I’m good now.