• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Storage node IP address change doesn't get applied

    Scheduled Pinned Locked Moved
    Tutorials
    4
    21
    3.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gabbas
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        What version of FOG?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        G 1 Reply Last reply Reply Quote 0
        • G
          gabbas @george1421
          last edited by

          @george1421 Version 1.5.5.3

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @gabbas
            last edited by

            @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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            G 1 Reply Last reply Reply Quote 0
            • G
              gabbas @george1421
              last edited by

              @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.

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @gabbas
                last edited by

                @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?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                G 1 Reply Last reply Reply Quote 1
                • G
                  gabbas @george1421
                  last edited by

                  @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

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @gabbas
                    last edited by

                    @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.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      gabbas @george1421
                      last edited by

                      @george1421 Thank you, I will perform the upgrade and share the outcome tomorrow. Much appreciaetd.

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        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

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 0
                        • G
                          gabbas
                          last edited by gabbas

                          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?
                          WhatsApp Image 2020-10-08 at 15.53.28.jpeg

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Sebastian Roth

                            @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).

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              gabbas @Sebastian Roth
                              last edited by

                              @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:
                              WhatsApp Image 2020-10-08 at 16.23.12.jpeg
                              WhatsApp Image 2020-10-08 at 16.24.24.jpeg

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                @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
                                

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  gabbas @Sebastian Roth
                                  last edited by

                                  @Sebastian-Roth said in Storage node IP address change doesn't get applied:
                                  Thanks, please see below:
                                  1.png
                                  2.png 3.png

                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @gabbas
                                    last edited by george1421

                                    @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.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    1 Reply Last reply Reply Quote 1
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Sebastian Roth

                                      @gabbas Definitely update the kernel! Better if you update FOG altogether when you have some time to properly backup things beforehand.

                                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                      G 1 Reply Last reply Reply Quote 1
                                      • G
                                        gabbas @Sebastian Roth
                                        last edited by gabbas

                                        @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
                                        WhatsApp Image 2020-10-09 at 18.09.34.jpeg

                                        george1421G 1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by

                                          @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.

                                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                          1 Reply Last reply Reply Quote 0
                                          • george1421G
                                            george1421 Moderator @gabbas
                                            last edited by

                                            @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 = 275000

                                            That will increase the size of the ram drive in memory.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            189

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project