New Fog Server - /images location
-
@george1421 No worries man, should I just go ahead and go through with the install afterwords and see if we can change it? I will take an image of the server and revert back to it if I need revert back. I’m asking because I don’t have the /opt/fog directory configure yet because I canceled the install.
Thoughts?
-
@Technolust Well confirm that the… let me remote into my office and see if the field is there. Lets not do a bunch until we know. We can make it work like you need it. Give me a few minutes to double check things.
-
@Technolust OK I just looked and there IS the field in question. Its called storagelocation. Go ahead and do a normal install, let it default to
/images
-
@george1421 Just open thoughts on changing storage location.
- Update .fogsettings storagelocation field.
- Update /etc/exports to from /images and /images/dev to new locations /fogserver/images and /fogserver/images/dev
- Copy everything from /images to /fogserver/images
cp -r -f /images/* /fogserver/images
- Make sure directory permissions match between /images and /fogserver/images
- In the web ui update Fog Settings->Fog Configuration Expand all settings and then search for /images and replace with proper path
- Go to default storage node settings and update /images to /fogserver/images
- Then back to the linux command prompt and rerun the fog installer script.
- Double check /etc/exports to ensure that /fogserver/images is still shared.
- Reboot the fog server
- At the linux command prompt key in
showmount -e 127.0.0.1
. It should show /fogserver/images being exported after a reboot.
That should do it.
-
@george1421 Ok George, so going ahead with the default install and then will try the settings below. Sound right?
-
@george1421 Is it common to leave the mysql password blank?
-
@Technolust said:
Is it common to leave the mysql password blank?
No you better set a proper mysql root password before installing FOG. We are working on the installer to pilot people to set passwords.
-
@Sebastian-Roth That’s what I figured. Thank you!!!
-
@george1421 Hey George, in step 5, the Web GUI -> Fog Configuration -> Fog Settings -> Expand all -> there is no /images location. Should there be any specific settings? In step 6 do I also change the FTP path to /fogserver/images from /images? If so I did that as well. Finally step 10 - Looks good.
Export list for 127.0.0.1:
/fogserver/images/dev *
/fogserver/images *Can you tell me if this will need to be performed for every update or will fog server updates keep these settings?
-
Should the Storage Node show online?
When I go to storage nodes it is up and running.
Thoughts?
Thanks,
Technolust
-
@Technolust said in New Fog Server - /images location:
Web GUI -> Fog Configuration -> Fog Settings -> Expand all -> there is no /images location
Sorry I wrote that post from memory since I didn’t have immediate access to a fog console to verify.
also change the FTP path to /fogserver/images from /images?
Right you need to change everywhere you would see /images to the new images path.
It looks good for the export list.
If you updated the .fogsettings file in step 1 then no, it should be automatic moving forward.
-
@Technolust What does the content of the default storage node look like?
Also did you reboot the fog server after you made all of those changes? Some values are only loaded at boot time.
-
@george1421 Thanks, I did make the change for the ftp path and I did update the .fogsettings in step 1 as well as rebooted the server. Only thing now is the Storage Node not coming online.
/fogserver/images/
[root@fogserver images]# ls -lrt
total 12
drwxrwxrwx. 3 fog root 4096 Jan 22 09:21 dev
drwxrwxrwx. 2 fog root 4096 Jan 22 09:21 postdownloadscripts
drwxrwxrwx. 2 fog root 4096 Jan 22 10:03 T470-Win10 -
@Technolust I don’t have a clue about the storage node on the home screen. But from your ls command you are missing 2 check files. If you run
ls -la
on the old /images directory you will see a file called.mntcheck
and the second one of the same name needs to be in /images/dev. Those will need to be recreated in your new location paths. You can simply do:
touch /fogserver/images/.mntcheck
and
touch /fogserver/dev/images/.mntcheck
its ok if they are already there, that touch command will just update the last time the file was access, or create it if it wasn’t there.
-
@george1421 said in New Fog Server - /images location:
touch /fogserver/dev/images/.mntcheck
Ok looks like /fogserver/dev/images doesn’t exist. Is this supposed to be /fogserver/images/dev?
If so I ran touch touch /[root@fogserver images]# ls -la /fogserver/images/
total 20
drwxrwxrwx. 5 fog root 4096 Jan 22 10:03 .
drwxr-xr-x. 3 root root 4096 Jan 22 09:16 …
-rwxrwxrwx. 1 fog root 0 Jan 22 10:25 .mntcheck
drwxrwxrwx. 2 fog root 4096 Jan 22 10:03 T470-Win10
drwxrwxrwx. 3 fog root 4096 Jan 22 09:21 dev
drwxrwxrwx. 2 fog root 4096 Jan 22 09:21 postdownloadscripts
[root@fogserver images]# ls -la /fogserver/dev/images/
ls: cannot access /fogserver/dev/images/: No such file or directory
[root@fogserver images]# ls -la /images/
total 16
drwxrwxrwx. 4 fog root 4096 Jan 22 09:10 .
dr-xr-xr-x. 22 root root 4096 Jan 22 09:36 …
-rwxrwxrwx. 1 fog root 0 Jan 22 09:10 .mntcheck
drwxrwxrwx. 3 fog root 4096 Jan 22 09:10 dev
drwxrwxrwx. 2 fog root 4096 Jan 22 09:10 postdownloadscripts
[root@fogserver images]#[root@fogserver images]# touch /fogserver/images/dev/
[root@fogserver images]# ls -la /fogserver/images/dev/
total 12
drwxrwxrwx. 3 fog root 4096 Jan 22 10:28 .
drwxrwxrwx. 5 fog root 4096 Jan 22 10:03 …
-rwxrwxrwx. 1 fog root 0 Jan 22 09:21 .mntcheck
drwxrwxrwx. 2 fog root 4096 Jan 22 09:21 postinitscripts
[root@fogserver images]# -
@Technolust said in New Fog Server - /images location:
touch /fogserver/dev/images/.mntcheck
Ok looks like /fogserver/dev/images doesn’t exist. Is this supposed to be /fogserver/images/dev?
OK its time for either another cup of coffee or for me to just go back to bed. The path
/fogserver/dev/images
is of course wrong. I should have typed/fogserver/images/dev
It looks like you have the check file in the proper paths from your
ls
command. But after a reboot your storage node is still showing off-line? -
@george1421 No worries at all I figured that’s what you meant. My coffee needs coffee today! Just did another reboot. Node is still offline.
-
@Technolust Does the IP address in the default storage node configuration point to the right IP address?
I would do a test capture to ensure the image capture process completes correctly. If it does then do a deploy back to the same computer. If both work then we’ll bring the devs in to see if there is something “under the hood” wrong.
-
@george1421 Ok cool let me get that up and see. Will report after.
-
@george1421 Here is something strange, I RSYNC’d two images from the old Fog server to this new one and when I open the images link and select all images. No images show up. It’s appears to be acting like the Web GUI can’t see the /fogserver/images directory.