• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Image Replication Issue

Scheduled Pinned Locked Moved
FOG Problems
2
6
2.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Phenomenon
    last edited by May 28, 2014, 9:28 PM

    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.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by May 28, 2014, 9:30 PM

      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.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • P
        Phenomenon
        last edited by May 29, 2014, 12:35 PM

        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?

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by May 29, 2014, 12:40 PM

          [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.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • P
            Phenomenon
            last edited by May 29, 2014, 4:47 PM

            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?

            1 Reply Last reply Reply Quote 0
            • P
              Phenomenon
              last edited by May 29, 2014, 6:01 PM

              [IMG]http://imageshack.com/a/img842/8017/j0v9.png[/IMG]
              [IMG]http://imageshack.com/a/img841/7333/ueef.png[/IMG]
              [IMG]http://imageshack.com/a/img834/5533/2i3m.png[/IMG]
              [IMG]http://imageshack.com/a/img844/124/wecb.png[/IMG]

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post

              225

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project