Multiple TFTP servers on SVN



  • Hey all,

    Using ubuntu 14.0.4
    Fog SVN latest

    I’ve tried to use the tutorial here https://wiki.fogproject.org/wiki/index.php?title=Multiple_TFTP_servers#1.x.x but when I copy everything to /root/fogproject/ I don’t see an install.sh only installfog.sh and I can’t seem to find where to add the configureTFTPandPXE; and tftpd-hpa tftp-hpa .

    Any assistance would be greatly appreciated.

    Thanks in Advance,

    Jimmy


  • Moderator

    @SlimJim said in Multiple TFTP servers on SVN:

    What ports need to be open on either side for full communication between the Main Site and Storage node?

    http - 80
    https - 443
    tftp - 69
    ftp sometimes 20, 21, 22, or all three.
    mysql - 3306
    nfs 111, 2048, 2049, potentially 1110 and 4045. You’ll just have to try these first.

    138, 139, and 445 are also listed in the wiki but I don’t know what for. Try it without them first.

    To use multicast, you will need ports 49152 through 65532.

    If you’re going to run DHCP from the fog servers, those UDP and TCP ports will need opened too.

    I’m going to attempt this by using all nat’s and firewall rules and eventually I would like to move my main fog server into aws or some similar cloud service.

    Good luck. One thing about AWS is they don’t care about your data nearly as much as you do, and their service is not this perfect holy grail as it’s made out to be mostly because of cost. It’s pretty good yeah, but if you google search about moving to AWS you’ll mostly find stuff about how to get out of AWS.



  • Awesome, thank you. You guys have one of, if not the best, forum & response times I have ever dealt with. That said, I do have a final question before giving it a go.

    My current setup consists of the following:

    Main Site (Full Fog Install)
    My office (for now)

    Remote Sites (Each Customer = Storage Node/s)
    Customer 1
    Customer 2
    Customer 2 Site 2
    Customer 2 Site 3
    Customer 3
    Customer 4

    What ports need to be open on either side for full communication between the Main Site and Storage node?

    Another thing I’m trying to avoid is a bunch of tunnels/vpn connections, so I’m going to attempt this by using all nat’s and firewall rules and eventually I would like to move my main fog server into aws or some similar cloud service.

    What you think?


  • Moderator

    @SlimJim said in Multiple TFTP servers on SVN:

    I’m trying to get our office to be the Main site, where all images are replicated and safely backed up and all remotes sites each as a storage node and network bootable.

    Well, then this is going to be very easy. FOG has the capabilities to do this already.

    So, all the existing remote FOG Servers at all the remote sites, you’d rename the /opt/fog/.fogsettings file to something else, and then re-run the installer and chose Storage (as opposed to Normal). It’ll ask you for the IP of the main server, it’ll ask for MySQL credentials. You can find the user/pass from the main server in Web Interface -> FOG Configuration -> FOG Settings -> Storage Node

    Once the installer is done, the storage node should be registered as a storage node in the main servers Storage Management area.

    You would repeat this on all the remote nodes. All you need to do this is SSH access to them, you do not need to be standing in front of them.

    After that’s all done, then you get to decide how to setup your groups and replication and the location plugin - all easy stuff, we have documentation on it in the wiki.

    Ask any questions as you need, any of the moderators/testers here can likely answer them.



  • @Wayne-Workman

    Thanks for your response and sorry for my late response, I’ve been out that past few days.

    My end goal is to have multiple sites (all different vlans/subnets), so I’m looking to add network booting at the remote sites, yes. We’ve been pretty successful deploying a single fog server at each location and managing individually, but I’m trying to get our office to be the Main site, where all images are replicated and safely backed up and all remotes sites each as a storage node and network bootable.

    This is new for me, so please feel to ask any other questions and as always and advice will be greatly appreciated.

    Thanks,

    Jimmy


  • Moderator

    I’m trying to understand, do you want redundant network booting? What is the end goal?



  • Thanks for the quick reply. I was able to find the files that has that phrase and the installfog.sh does contain this twice and even seems to already contain this for the storage node install (see below), but after running through the install I’m not seeing the tftp services correctly after adding the dhcp options.

    0_1481915822681_upload-49794f71-2dc5-4fe9-b0c9-b788e66b2452


  • Senior Developer

    Modified the wiki so the installfog.sh is the correct file.

    It looks like that hasn’t been touched since 1.2.0 released.

    Anyway, the configureTFTPandPXE you can run:

    from the root fogproject directory (/root/fogproject) in your case run: grep -rl configureTFTPandPXE .

    That will show you all files that have that phrase in it.

    The function itself is under lib/common/functions.sh

    I think installfog.sh calls it in two separate places.


Log in to reply
 

396
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

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