How do I move FOG server to different subnet?



  • Currently we have a FOG server residing on 1 subnet but we would like to move the server to a different site’s subnet to image machines without going over a slow WAN. How can I change the IP, default gateway, and web interface to accomplish this with minimal effort?



  • It doesn’t seem like it. When I enter the mySQL command from the terminal it gives the following error:

    [B]Error 2002 (HY000): Can’t connect to local mySQL server through socket ’ /var/run/mysqld/mysqld.sock’ (2)[/B]

    I cant get to the mysql command promt after it’s moved to the new subnet.


  • Senior Developer

    Is the database server actually running?

    [code]sudo service mysql restart[/code]



  • I believe 127.0.0.1


  • Senior Developer

    Is the mobile server database connection done via localhost or 127.0.01?



  • Is anybody able to help me with this? I apologize for the rush but it is very time sensitive. Thank you in advance.



  • [quote=“Tom Elliott, post: 39294, member: 7271”]My best answer would be to assign a dhcp reservation for the MAC you have with this system. This dhcp reservation would always give the same IP to the fog server, so from a “minimal effort” scenario, all you’d have to do (when you want to switch subnets) is assign the MAC an IP for the particular subnet in each of the scope’s it’s going to belong, set the Server to obtain IP from DHCP, and then all you’d have to do is move the network cable to the appropriate relating port.[/quote]

    Hi Tom,

    Thank you for the information. We did what you suggested and now we’re trying to log into the web interface on the new subnet but we’re getting the [B]Database Schema Installer / Updater [/B]page. What do we do from here? Thank you

    [url="/_imported_xf_attachments/1/1536_fog.JPG?:"]fog.JPG[/url]



  • Or just edit the network config… It shouldn’t be hard to do as all distributions probably document that.
    Then to update the IP for FOG internals, I ranted about that around here:
    [url]http://fogproject.org/forum/threads/configuration-issue-in-1-2-0-ip-change-of-fog.11881/#post-38812[/url]

    Might be worth a wiki entry…


  • Senior Developer

    My best answer would be to assign a dhcp reservation for the MAC you have with this system. This dhcp reservation would always give the same IP to the fog server, so from a “minimal effort” scenario, all you’d have to do (when you want to switch subnets) is assign the MAC an IP for the particular subnet in each of the scope’s it’s going to belong, set the Server to obtain IP from DHCP, and then all you’d have to do is move the network cable to the appropriate relating port.


Log in to reply
 

411
Online

39002
Users

10717
Topics

101762
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.