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

Serve two separate subnet without using storage node

Scheduled Pinned Locked Moved Solved
General
3
8
2.4k
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.
  • K
    kris
    last edited by Oct 13, 2015, 10:06 AM

    Hello,

    fogserver nic1 (subnet 1): 10.7.0.1
    fogserver nic2 (subnet 2): 10.7.20.2

    I have two subnet (each on distinct network card of fog server) with separate dhcp and tftp servers on these subnets. I’m wondering if it is possible to serve two subnets without using storage node:
    On first subnet , upload and download images is working fine, but, on second subnet, when i try to upload image, on second ipxe boot fog, then after “…checking in” status for some time, I get this message:
    " mounting 10.7.0.1/images/dev on /images failed: connection refused. " (where 10.7.0.1 is the ip address of fogserver in subnet 1, I suppose that this address should be 10.7.20.2?).
    However, if I try to mount /images or /images/dev from second subnet, it is working ok, I can browse files.

    Any thought would be appreciated.

    Cheers.

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman Oct 13, 2015, 5:59 PM Oct 13, 2015, 2:56 PM

      Create a second storage node for the existing local storage location, and use the location plugin.

      You’d just basically copy everything in the storage node you have, but change the IP to the one on the other network.

      You’d put this new node in its very own storage group, make it a master node.

      Then you’d use the location plugin to define locations for the “Two” storage nodes. The way this works is we are going to make fog handle the two different IP address like they are each their own thing, when in fact they are connected to the same server.

      After installing the location plugin and configuring it properly for each of the “Two” storage nodes, you’d then configure locations for all the clients. You can use groups to do this in mass.

      You will also need to basically duplicate each image “definition” you have, recreating it but with the new storage node assigned.

      Keep in mind, both of these “Storage nodes” use the same data. You would only have one copy of the images, in only one directory.

      Above is instructions on how to accomplish what you are doing using FOG Trunk.

      I don’t know how to do it in FOG 1.2.0, sorry.

      here is information on updating to Trunk: https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk

      Let us know if you have questions. If you get it working, please elaborate on your experience.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Oct 13, 2015, 9:12 PM

        AFAIK this is impossible to configure with FOG. I think it could be done if you are keen enough to dive into the code. But why not use a storage node??

        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

        K 1 Reply Last reply Oct 14, 2015, 10:33 AM Reply Quote 0
        • K
          kris @Sebastian Roth
          last edited by Oct 14, 2015, 10:33 AM

          @Uncle-Frank

          Hi Uncle Frank,

          The main reason for not using storage nodes would be to maintain just one server, mainly because our network has multiple subnets(15 or more). However, images downloads seldom needs to be launched simultaneously over all subnets, hence load on main server is not a problem in most cases. Dive into the code would be a good choice, but sadly, I do not have enough time right now.

          Cheers.

          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman
            last edited by Oct 14, 2015, 12:19 PM

            I still think that if you treat each interface as it’s own storage node in it’s own group /w using the location plugin, it’d work just fine.

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            K 1 Reply Last reply Oct 14, 2015, 1:40 PM Reply Quote 0
            • K
              kris @Wayne Workman
              last edited by Oct 14, 2015, 1:40 PM

              @Wayne-Workman

              Hi wayne Workman,

              I read your last post, but I’m not sure that I understand well, and I need to get documentation about ‘location plugin’.
              By creating a second storage node , do you mean that I need another machine, or this is done on same machine( main fog server), with different parameters?
              Why setting this ‘new’ storage node as a master node?
              Maybe some questions are irrelevant, but I still not understand how it works.

              Cheers.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Oct 20, 2015, 8:53 AM

                @kris Have you looked into using the location plugin yet? General information in the wiki https://wiki.fogproject.org/wiki/index.php/Plugins#Location_Plugin and an interesting post about using the plugin on a big scale https://forums.fogproject.org/topic/3459/location-plugin-not-loading

                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

                K 1 Reply Last reply Oct 21, 2015, 12:21 PM Reply Quote 0
                • K
                  kris @Sebastian Roth
                  last edited by Oct 21, 2015, 12:21 PM

                  @Uncle-Frank

                  Hi Unkle frank,

                  I haven’t yet looked deeply at location plugin, I will test that sooner. Maybe you can set this thread as solved, because answers given here are clear enough, and only tests will give me a definitive answer.

                  Cheers.

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

                  214

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project