Actually I think this is what you were requesting:
#!ipxe
set fog-ip
set fog-webroot
set boot-url http://${fog-ip}/${fog-webroot}
Here is SS
Actually I think this is what you were requesting:
#!ipxe
set fog-ip
set fog-webroot
set boot-url http://${fog-ip}/${fog-webroot}
Here is SS
@Wayne-Workman said in Host/Group replication between FOG Servers:
?mac=b8:ac:6f:3d:6e:a4
telling me line:
1179 response_rc = -EIO_5XX;
not sure what that is telling me though.
Here is what I am getting now:
Just rebuilt it, looking like it is connecting now as well. I will keep updating.
now i get this for the storage node
Error communicating with the database. Error: SQLSTATE[HY000] [2002] Connection refused
I think i will update the Main, and do another fresh install of the node and see what happens.
Ok, i just conducted ftp from the main to the node. i created a test.txt on the node, then on the main i used ftp to view the file directory, then delete the file, the dir again to verify it is gone.:
techinstall@MSDCATS09:/$ ftp
ftp> open 10.106.2.149
Connected to 10.106.2.149.
220 (vsFTPd 3.0.2)
Name (10.106.2.149:techinstall): fog
331 Please specify the password.
Password: <long password from setting up node>
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /images
250 Directory successfully changed.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxrwx 2 0 0 4096 May 19 02:34 dev
drwxrwxrwx 2 0 0 4096 May 19 02:34 postdownloadscripts
-rw-rw-r-- 1 1000 1000 7 May 19 19:58 test.txt
226 Directory send OK.
ftp> del test.txt
250 Delete operation successful.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxrwx 2 0 0 4096 May 19 02:34 dev
drwxrwxrwx 2 0 0 4096 May 19 02:34 postdownloadscripts
226 Directory send OK.
ftp> exit
221 Goodbye.
techinstall@MSDCATS09:/$
when the storage node installed it gave me that long password, is that the password to use, or do i need to change it to the long password the Main uses? right now they are different.
it looks like firewall is disbaled, I was able to send a file from the remote server to the main server manually. this is what i get for the remote location still:
Error communicating with the database. Error: SQLSTATE[HY000] [1045] Access denied for user ‘fogstorage’@‘localhost’ (using password: YES)
Here is what the permissions look like on the Main:
and here is the storage only:
@Wayne-Workman I shut off any other instances of FOG last night. there are currently only 2 instances running, The main server which is across town, and the storage instance located here at my shop. the 10.103 address is the main server, and the 10.106 address is the storage location at my location. both were setup exactly the same. Only difference is the DCHP server address, gateway, and local IP of the fog servers themselves. both runnin Ubuntu 14.04, FOG 7713. I was making them side by side last night to hopefully keep them the same version and they are. I download the install using this:
sudo svn co http://svn.code.sf.net/p/freeghost/code/trunk I left the mysql password blank when setting up the Main as well.
Ubuntu 14.04 LTS
Fog 7713
Fresh installed last night… between 8pm - 11pm EST.
Also are permissions something I will need to set on all remote sites?
@Wayne-Workman said in Host/Group replication between FOG Servers:
@adukes40 The replication error is likely permissons or SELinux.
with the iPXE stuff, did you put in the correct main server IP during installing the storage node?
===Yes, it is the IP of the new main server I created.
You must also put in the correct MySQL fogstorage password for the storage node during installation too.
===I have placed all the needed passwords. Here are the SS’s to show:
Main server info:
Remote storage info:
Storage Node information from the /.fogsettings file:
What is typed into the management gui (copy and pasted):
Username: fog
Password: hXFzePJJGCBLw7uudEVDry9gGWL9AcO70FOtAblUxF4=
i assume each node is supposed to have different storage management passwords? Because when i compare the two nodes, the Password is different.
I am also getting stuck here on PXE. I am at the remote location trying to register a host, but I cannot get past this part. just sits with a blinking cursor
here is what I am getting when a snapin tries to replicate. I did notice I typoed one letter in the password, but I fixed that. Before it couldn’t communicate until i fixed the letter, but now I get the below message in the log.
well i just set up a new master, and storage node. Going to play with it more today to get a better feel. Thanks Wayne! I will try to remember to report back to tell hows its going.
AH ok, so when i go to set up the main server I do it as a “normal” installation, and the other schools should be installed as “storage” only? By doing this is Location A has the main server and database, and I go to place a new machine that hasnt been registered yet at Location B, then the registration will automatically go to Location A to the database? Am I correct in saying that?
I was going to install at the other sites to test replication on the WAN, i just installed the newest SVN and it is having trouble connecting to the database. IDK whats going on, for now I think i will just try to go rest my head a bit. I understand better about how it is going to work, and thanks for your patience and explanation. It really is helping me grasp it better.
Additional side note, can i register hosts at a separate location and have those hosts show up on the main server? Would I just need to register them and then do an export and import them to the main server?
I believe I am already running trunk, as these servers have been up for a month or so. I do have 2 different servers here at this location, so I will try to play with this, the video is really helping.
Quick follow up though. Say I have machine 1 in building A, and it gets moved to building B. building A’s group location points to A’s server and building B to B’s server. if machine 1 is in building A, it should pull from that server. If it gets moved to building B, what happens if :
A) I forget to change the group it is associated to? Will it sill try to pull form building A from building B over the WAN?
B) If I do add it to a group pointing to building B’s server, will the host automatically but updated just by removing it from group A and adding to group B?