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

    Storage node on existing file server

    Scheduled Pinned Locked Moved
    General Problems
    storage node
    3
    15
    1.7k
    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.
    • S
      scorbin
      last edited by scorbin

      I’d like to use an existing file server as a storage node but I know that the install scripts installs and sets up a few services… Some of these services are already running on my filesever. I am wondering what effect it will have on these.

      The ones I am particularly concerned about are mysql and nfs.

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        What operating system is your existing file server?

        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!

        1 Reply Last reply Reply Quote 0
        • S
          scorbin
          last edited by

          Debian 9.4

          1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            The fog installer overwrites the /etc/exports file. You can disable this functionality by setting blexports='0' in the /opt/fog/.fogsettings file.
            Reference: https://wiki.fogproject.org/wiki/index.php?title=.fogsettings#NFS

            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
              scorbin
              last edited by

              OK, any other services that it would affecft? I assume it will just create another db when it sees mysql already running?

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @scorbin
                last edited by

                @scorbin Just to be clear, you want a storage node right? Not a full FOG server?

                If you want a storage node, you can by hand create a storage node. Or run the fog installer and then realign the bits. For a storage node, mysql is not installed.

                What is installed is NFS, ftp, tftp (if you want pxe booting from storage node).

                But before we go down this rabbit hole too much, what is the reason for wanting to use this file server as a storage node?

                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!

                S 1 Reply Last reply Reply Quote 0
                • S
                  scorbin @george1421
                  last edited by

                  @george1421 My Fog server is a VM. My original plan was to have files served from my existing NFS server to the VM and fog would take care of business from there. I set everything up and attempted to image a machine and realized that during imaging fog mounts the images directory, or a child thereof, in order to do the imaging. As such NFS cannot share a share from another NFS server, as would be the case in this situation. So I figured I could make my existing NFS server a storage node and all would be good, at least that is the plan. I was kinda leaning toward create the storage node by hand but it sounds like if I back up my /etc/exports file and merge it with the final product after the install I should be golden. I figured it was just the mysql client that it installed if anything, just wanted to make sure.

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @scorbin
                    last edited by george1421

                    @scorbin Fair enough on your use case. FOG can work in this configuration.

                    If you run the fog installer on your Debian server, expect that it will load vsftp, apache, fog application pages, php, nfs and tftp. Expect the fog server to step on all configuration files related to these services. If your existing file server doesn’t use anything but nfs, then just backing up your exports (and/or using the installer flag that Wayne mentioned) then knitting the config file afterwards should be OK. Fog does have a requirement to have the firewall off as well as selinx set to permissive.

                    Once all that is set you can use your fog server as the manager to your storage node. Actually you will want to flip the roles a bit. But first step is to get the debian server to act as a storage node.

                    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!

                    S 2 Replies Last reply Reply Quote 0
                    • S
                      scorbin @george1421
                      last edited by

                      @george1421 Awesome. Sounds like a plan then. Just curious… you said something about flipping the roles… What would you suggest? I was thinking about making my file server the entire FOG setup but figured with existing services running it would be easier to squeeze in just the storage node portion.

                      george1421G 1 Reply Last reply Reply Quote 0
                      • S
                        scorbin @george1421
                        last edited by

                        I am running the install for storage node now. I see that it needs openssh-server. I assume it just needs it present, so no modification of certs or configuration, correct?

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @scorbin
                          last edited by

                          @scorbin What you will do is, once you get your storage node setup, then you will go into the storage group where your master fog server is and your new storage node. Then untick the master node check box for your vm fog server, and then tick the master node check box for your storage node vm.

                          In this configuration your vm will become the supervisory node with all image capture and deploys going through your storage node. As I said once you get the traditional roles setup, we can then work on flipping them.

                          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!

                          1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @scorbin
                            last edited by

                            @scorbin right it just needs to be there to create the server self signed certificates.

                            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!

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              scorbin @george1421
                              last edited by

                              @george1421 That is pretty much what I did to do to get it to capture the image. I think what I did could be considered equivelant but maybe you can weigh in on that.
                              What I did was create a new storage group with my fileserver in it, disabled the default storage group and switched my image to use the new storage group. It seems to be working. So now my VM is basically handling all the control, scheduling, info managment, and frontend and the file server is doing all of the file serving. Just wondering if you have a link to documentation on how to install by hand. I would like to create a puppet module at some point to install storage nodes and perhaps even the full fog system.

                              george1421G 1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @scorbin
                                last edited by

                                @scorbin First, that method will work it will provide the same results. From a fog server standpoint, only master nodes in storage groups can capture images. The “intent” of storage nodes are deploy only. But as you can see if you know what you are doing you can tweak the design a bit.

                                As for an article for how to by hand install FOG. There really isn’t one. What you have setup is what the lawyers call an “unsupported configuration”. That’s not saying it won’t work perfectly, it is just not what the developers had envisioned. There is quite a bit of magic that goes on in the script to support the 6-8 different distributions. You can cut out quite a bit if you are only dealing with one OS. If you wanted to automate the install a bit, there is a hidden file in /opt/fog called .fogsettings If someone was to tweak (prepopulate) that file and then adjust the installer script a little, you could make an unattended install.

                                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!

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  scorbin @george1421
                                  last edited by

                                  @george1421 Cool. Thanks a lot for all of your help.

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

                                  196

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project