Replication Options



  • I am trying to setup a replication server for a remote location. I had a few questions that I can’t find answers on.

    1. The replication seems to take a very long time. Is there a way to tell the FOG server to only sync one image at a time?

    2. Is there a way to sync the files that I added from the main server? I added a new boot logo in \var\www\fog\service\ipxe folder. If I don’t add this logo to the replication server, it just shows a black screen instead. I also have an iso in \var\www\fog\iso that I would like synced over.

    3. The iso I mentioned in question two has been added as an iPXE menu. I have the link as ${boot-url}/iso/boot.iso. I think this only points to the main FOG server. Is there a variable that will point to whichever replication server the machine is booting from?

    Thanks


  • Moderator

    This post is deleted!

  • Senior Developer

    @george1421 said:

    1. No/maybe. Replication will happen on all enabled images. If only one image is enabled in the image manager then only that image will be replicated.
    2. No. The fog image replicator will only replicate images and snapins between the master node and the storage node.

    @eseelke You might want to setup your own replication for those using cron and rsync.

    1. While I haven’t tested this, but if you have the location plugin installed and the target computer has been assigned to the remote location one might think that the variable ${fog-ip} would point to the proper server.

    @eseelke Sorry but ${fog-ip} is always pointing to the main FOG server. But adding another variable for the storage node should not be too complicated. I am on the road right now and don’t have my working laptop with me so I can’t test. But take a look at the boot menu code in /var/www/html/fog/lib/fog/bootmenu.class.php - after line 388 add this code:

            $Send['storageip'] = array("set storage-ip $StorageNode->get('ip')");
            $this->_parseMe($Send);
    

  • Moderator

    The quick answers are:

    1. No/maybe. Replication will happen on all enabled images. If only one image is enabled in the image manager then only that image will be replicated.
    2. No. The fog image replicator will only replicate images and snapins between the master node and the storage node.
    3. While I haven’t tested this, but if you have the location plugin installed and the target computer has been assigned to the remote location one might think that the variable ${fog-ip} would point to the proper server.

    If you want to replicate things outside the scope of the fog server you will have to build your own replicator. Understand this is not hard, just google rsync and then create your bash script to call the proper rsync commands. Then setup cron to run your bash script on what ever interval you want.


Log in to reply
 

312
Online

7.4k
Users

14.5k
Topics

136.5k
Posts