Multiple TFTP servers multi subnet fog 1.2.0

I’m in the process of updating our multi site office to using Fog 1.2.0. I have 1 main site running a normal node and storage node on one subnet and 7 remote sites all on different subnets running storage nodes.

I would like to use the main server in head office to house all the host and image definitions and be the command and control centre but have images stored on the remote storage nodes so the image files pull over the LAN not the WAN. Up til now I’ve been running standalone servers at each site but this means tweaking the image so it has the “local” fog server address in C:\Program Files (x86)\FOG\etc\config.ini

I have already configured this part but think I need to enable TFTP service on all the remote nodes due different subnets. I’ve followed this post from the wiki:

My issue is this step under 1.x.x heading…

Edit the main

/opt/fog-setup/fog_version/bin/.install.sh

script. Locate the section titled # Storage Node installation. Insert the following line after configureFTP; and save the script:

configureTFTPandPXE;

On my Ubuntu and Centos boxes I have downloded the installer to /opt/fog_1.2.0 so I’d expect the above path to be

So either the instructions I’m reading are out of date or wrong or (more likely) I’m completely misunderstanding something. I’ve searched the current forum for Multiple TFTP Server but not found any hits.

My question therefore is: Are there updated instructions for this under Fog 1.2.0? And I guess my other question is, is this still the best method for multiple site setup? Any other gotchas I should be aware of? I read somewhere WOL doesn’t work, is that correct?

The FOGImageReplicator is run as a service not a cron job. Look in the /etc/init.d directory for the service descriptor. (next is going to be a rhel based command) Run the chkconfig FOGImageReplicator --list to show you if the image replicator service is set to auto start. Under debian based systems chkconfig may not be installed by default.

@robin-masters You’ve asked multiple questions, I think one of them was directed towards the storage pie chart on the dash board. That’s based on FTP. You need to have the correct FTP credentials set for the storage node. You might look through this article that is written just for FOG FTP Troubleshooting: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

I stand corrected, the storage pie chart on the dashboard is not FTP based, but could you look at the web-root setting for this storage node and ensure it’s correct? Can you post a screenshot of this area?

@robin-masters You’ve asked multiple questions, I think one of them was directed towards the storage pie chart on the dash board. That’s based on FTP. You need to have the correct FTP credentials set for the storage node. You might look through this article that is written just for FOG FTP Troubleshooting: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

@Tom-Elliott HI Tom, I’m nearly there but something is still not quite right…

I want to have a set of images (but not all) replicate from my main server to my remote sites. To that end I’ve got the following set up.

Site1 = Main server and one Storage Node
Sites2-8 - Storage Node at each site

Site1 has 2 storage groups, default and replication
Main server (DefaultMember) points to the default storage group
Storage node site1 points to the replication storage group and is set as the Master node for that storage group
Remote sites Storage nodes also point to the replication storage group

Within each storage node I’ve configured the Management Username and Management Password with the credentials provided in the storage node setup proces. Also double checked these were correct as shown in

/opt/fog/.fogsettings

But replication fails to kick in. If I swapped it around so everything pointed to the default storage group I could see that replication started off. Image was initially scp’d to the Site1 storage node so there is an image there to copy. And I’ve updated the Image itself in management interface to link to the right storage group.

Added to this, now when I try and kick off a regular image task from main server I get this error

@Tom-Elliott aha - that makes more sense, was actually the “other” boxes which should have been providing creds but were not, sorted now.

one last question, is is possible to get a login set up for the wiki as most how-tos online seem to be linked back there… I can open new thread for that if preferred.

thanks again for the help Tom, greatly appreciated.

regards, Kiweegie.

You don’t need credentials to view the WiKi, only to edit it. There’s a therad somewhere around here (searching with the new software is difficult), but currently searching is disabled. You can ask for permission in there, normally.

Tom I’ve upgraded to trunk on all boxes - oddly on 2 of them it has added in fog username and password at this part of the install.

What mysql connection type would you like? (MYSQLI_ASYNC)
MYSQLI_STORE_RESULT is normal
MYSQLI_ASYNC is what is Defaulted and recommended
Any value not equal to MYSQLI_ASYNC and not blank will use store result
* Setting password for FOG User...OK
* New password set for:
username: fog
password: ********

I’m presuming this is not right as the other ones just run the first part, ask for the fogstorage password then continue on. I’ve tried wiping /opt folder and starting a fresh install but both still doing this. Ones an Ubuntu14.04 box the other is Centos 6.4.

I could reinstall the OS and start again but I’d really prefer not to if possible.

Once I’m done and have working is it worth your/others while for me to post detailed steps back here for visibility?