Storage node IP address change doesn't get applied
-
Hi all, recently, I had to change the IP of my Fog server. I have changed the IP on all places by following the guide on Fog WIki. All looks fine excepts one thing, the storage node still shows as offline and when I try to change the IP there (in storage node setting using the web) it doesn’t get applied and it goes back to the old IP and due to this the clients still don’t get the image file. Is there any way I can change this manually editing the file and which director normally holds this file? Sorry as I am not an expert in Linux. Much appreciated.
-
What version of FOG?
-
@george1421 Version 1.5.5.3
-
@gabbas So when you go in on the main fog server and look at the storage node configuration for the remote storage nodes, it won’t let you change the IP address there?
Also on the remote storage node, you will probably need to update the /opt/fog/.fogsettings file with the IP address of the master node. And then rerun the installer. Somehow you need to tell the remote storage node the correct IP address of the FOG server so it can access its database on the master node.
-
@george1421 Yes thats right, it wont let me change the IP there, I can edit the IP address value but when I click save, it goes back to the old IP address. Also, I have changed in the IP in /opt/fog/.fogsettings.
-
@gabbas Just to confirm you have 1.5.5.3 and not 1.5.9.x
Any reason why you are running such an old version?
And just to be clear you need to update the .fogsettings on the storage node. While I don’t know off the top of my head, I would think there should be a setting that points to the main fog server. Did you see one in there?
-
@george1421 I was using Fog on my previous place of employment and I had to go somewhere else for a year or so I just returned to this place and I am thinking to upgrade at some point.
Yes in .fogsettings, I have changed the new IP, its just the storage node settings that still showing the old IP and I cant change it to the new IP using Fog web management
-
@gabbas I would start by updating both the storage nodes and the master fog server to 1.5.9 that way if its still is giving issues then we can get the developers involved.
Before you upgrade make sure all of your .fogsettings files are correct, because the fog installer script will use the information in those files to upgrade the systems.
-
@george1421 Thank you, I will perform the upgrade and share the outcome tomorrow. Much appreciaetd.
-
He also messaged me. I suggested to use the community utility script that updates everything with the new IP:
https://github.com/FOGProject/fog-community-scripts/tree/master/updateIP -
Hi, I upgraded the Fog, everything worked fine except when I try to capture the image or register the host. I get the error message: Any help please?
-
@gabbas The picture is cut at the right side exactly where there might be some valuable information at the end of where it says
... Tried on interfaces(s): ...
(haha, found a typo). So I can only give you a very general answer. Usually this happens due to spanning tree on the switch being enabled but the port not set as port fast (if you see an interface mentioned in the output) or the driver for this NIC is missing in the Linux kernel (if ther is no interface name printed). -
@Sebastian-Roth Thanks Sebastian, there is no words after Tried on interfaces, please the full image and also what I get after this message and will be very grateful for your assistance:
-
@gabbas Which kernel do you use at the moment? Please run the following commands on your FOG server and post output here:
ls -al /var/www ls -al /var/www/html file /var/www/html/fog/service/ipxe/bzImage
-
@Sebastian-Roth said in Storage node IP address change doesn't get applied:
Thanks, please see below:
-
@gabbas This is because you are still using the 1.5.7 version of FOG. Your bzImage file is out of date (v4.11.0). You can update your kernel to 4.19.143 (or later) using the web gui, but you still should upgrade to 1.5.9 and the updated kernel will come with it.
-
@gabbas Definitely update the kernel! Better if you update FOG altogether when you have some time to properly backup things beforehand.
-
@Sebastian-Roth Many thanks , I have updated the kernal and now the image capture task is stuck at this screen: Any idea how to get this one going? Many thanks
-
@gabbas You updated kernel and init - which is fine. But for the newer init you need to manually adjust the RAMDISK size setting: FOG Configuration -> FOG Settings -> TFTP Server -> KERNEL RAMDISK SIZE set it to
275000
from the original value of 127000. -
@gabbas OK the updated inits need a bit more memory allocated to them.
FOG Configuration -> Fog Settings -> Expand All
In the TFTP Server section set
KERNEL RAMDISK SIZE = 275000That will increase the size of the ram drive in memory.