Image Replication Issue



  • I am having a little difficulty understanding how the image replication works. I was trying to setup FOG to store all the images in the /images/ folder and only have the images that were tagged with a specific storage group to move to a storage node.

    Currently we have a Master server with its storage group set to default. We also have another master setup on the web ui of the server assigned to a storage group for a school. We also have a storage node setup with the storage group set as the school. The server was successful in replicating images but instead of only pulling the images that were tagged with the specific storage group for the school it pulled the entire /images/ folder.

    Does anyone have any advice as to what we can try to resolve this issue? If there is anymore information needed just let me know and I will do my best to reply quickly.





  • What we are attempting to do is have a centralized distribution at our main office and have it replicate out the the servers at our schools. We have had success in replicating images to our locations but the issue we are seeing is the master is replicating images from a different storage group.

    We currently have something similar to:
    Master -> IP for Central server -> Storage group (CO) - > Storage location /images/
    Master -> IP for Central server -> Storage group (<School>) -> Storage location /images/
    Storage Node -> IP for School server -> Storage group (<School>) -> Storage location /images/<School>

    [IMG]http://imageshack.com/a/img838/3552/fpkf.png[/IMG]

    We assigned an image to the <School> storage group and captured the image. Instead of the Master server replicating just the images for the storage group they were assigned it replicated every image we had in the /images/ folder.

    Is this working as intended and I am simply misunderstanding the point of assigning a storage group to a server and image?


  • Senior Developer

    [quote=“Phenomenon, post: 28494, member: 24178”]What is the point of assigning a Master/Node and Image to a storage group? Is there not a way for the replication to distinguish which storage group the images are assigned?[/quote]

    What?

    Storage Nodes are only assigned to groups. All storage nodes with the group are replicated to.

    Storage Group to Storage Group replication is not supported as I imagine you’re wanting it to.

    Normally it takes a Hierachical approach to distribution of images such as:

    Storage Group 1
    SN 1,2,3,4,5,6,7,8

    Storage Group 2
    SN 9,10,11,12,13,14,15,16

    All 8 Storage Nodes would have the same images and all 8 nodes could be used to push images across all hosts with images assigned to the relevant group.

    Storage Group 1 would NOT replicate to any of the Storage Nodes under Storage Group 2.



  • What is the point of assigning a Master/Node and Image to a storage group? Is there not a way for the replication to distinguish which storage group the images are assigned?


  • Senior Developer

    The file that deals with image replication in 1.x.x is located in /var/www/{FOGWEBDIR}/lib/fog/ImageReplicator.class.php

    It works by replicating all images, there is no support, right now, to only replicate specific folders, though you’re more than welcome to try.


Log in to reply
 

477
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

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