ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing Gluster on CentOS 7

    SAM-SD
    gluster centos centos 7 linux storage scale out storage filesystem scale scale hc3 glusterfs rhel 7 rhel
    6
    27
    8.9k
    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.
    • scottalanmillerS
      scottalanmiller @dafyre
      last edited by

      @dafyre said:

      So the next question would be... which IP address do you use for connecting to the Gluster system?

      Any or all.

      1 Reply Last reply Reply Quote 1
      • stacksofplatesS
        stacksofplates
        last edited by

        You forgot

        gluster start volume gv0
        

        before you mount the volume to /data

        1 Reply Last reply Reply Quote 1
        • Emad RE
          Emad R @scottalanmiller
          last edited by Emad R

          @scottalanmiller
          No package glusterfs-server available ???

          I tried other articles as well
          I can install = centos-release-gluster
          but not glusterfs-serve = not available


          Oh nvm they changed the url of their repo

          Connecting to download.gluster.org (download.gluster.org)|23.253.208.221|:443... connected.
          HTTP request sent, awaiting response... 404 Not Found

          This worked for me:

          yum search centos-release-gluster #check LTS version number (centos-release-gluster310)
          yum -y install centos-release-gluster310 -y
          sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-3.10.repo
          yum --enablerepo=centos-gluster310,epel -y install glusterfs-server
          systemctl start glusterd
          systemctl enable glusterd

          stacksofplatesS 1 Reply Last reply Reply Quote 1
          • stacksofplatesS
            stacksofplates @Emad R
            last edited by

            @emad-r said in Installing Gluster on CentOS 7:

            @scottalanmiller
            No package glusterfs-server available ???

            I tried other articles as well
            I can install = centos-release-gluster
            but not glusterfs-serve = not available


            Oh nvm they changed the url of their repo

            Connecting to download.gluster.org (download.gluster.org)|23.253.208.221|:443... connected.
            HTTP request sent, awaiting response... 404 Not Found

            This worked for me:

            yum search centos-release-gluster #check LTS version number (centos-release-gluster310)
            yum -y install centos-release-gluster310 -y
            sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-3.10.repo
            yum --enablerepo=centos-gluster310,epel -y install glusterfs-server
            systemctl start glusterd
            systemctl enable glusterd

            It's in the storage SIG too. So if you use a mirror local to you, you should be able to find it under storage.

            1 Reply Last reply Reply Quote 0
            • PenguinWranglerP
              PenguinWrangler
              last edited by

              I was thinking about doing Gluster Storage for my three KVM Hosts and keep my KVM VMs there. So if I made a virtual machine for the Gluster that used all the storage on each machine and then mounted the Gluster store in each KVM host for storage, would there be any disadvantage to that?

              travisdh1T scottalanmillerS Emad RE 3 Replies Last reply Reply Quote 1
              • travisdh1T
                travisdh1 @PenguinWrangler
                last edited by

                @penguinwrangler said in Installing Gluster on CentOS 7:

                I was thinking about doing Gluster Storage for my three KVM Hosts and keep my KVM VMs there. So if I made a virtual machine for the Gluster that used all the storage on each machine and then mounted the Gluster store in each KVM host for storage, would there be any disadvantage to that?

                Yes, good plan.

                That's essentially how many commercial offerings operate today, they just hide the complexity from you.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @PenguinWrangler
                  last edited by

                  @penguinwrangler said in Installing Gluster on CentOS 7:

                  I was thinking about doing Gluster Storage for my three KVM Hosts and keep my KVM VMs there. So if I made a virtual machine for the Gluster that used all the storage on each machine and then mounted the Gluster store in each KVM host for storage, would there be any disadvantage to that?

                  That's Red Hat's HCI model.

                  PenguinWranglerP 1 Reply Last reply Reply Quote 2
                  • PenguinWranglerP
                    PenguinWrangler @scottalanmiller
                    last edited by

                    @scottalanmiller @travisdh1 Another question. I have two SSDs for the main OS (RAID 1), CentOS, then I have the 8 TB enterprise drive for the gluster store. What are your thoughts of needing raid on the 8 TB drive that would be in each machine? I was going to have the gluster store replicate itself to each machine so we only have 8 TB of storage but in theory, we could lose two of the machines and be okay, correct? In a perfect world, I would raid the 8 TB drives with a raid 1 for redundancy, however, this is for my friend who is at a school district that literally doesn't have two pennies to rub together, so the cost of the drives is an issue. He is just now starting to virtualize machines after I have been badgering him forever about it. He picked up some refurbished supermicro servers that we will be using.

                    travisdh1T 1 Reply Last reply Reply Quote 0
                    • travisdh1T
                      travisdh1 @PenguinWrangler
                      last edited by

                      @penguinwrangler said in Installing Gluster on CentOS 7:

                      @scottalanmiller @travisdh1 Another question. I have two SSDs for the main OS (RAID 1), CentOS, then I have the 8 TB enterprise drive for the gluster store. What are your thoughts of needing raid on the 8 TB drive that would be in each machine? I was going to have the gluster store replicate itself to each machine so we only have 8 TB of storage but in theory, we could lose two of the machines and be okay, correct? In a perfect world, I would raid the 8 TB drives with a raid 1 for redundancy, however, this is for my friend who is at a school district that literally doesn't have two pennies to rub together, so the cost of the drives is an issue. He is just now starting to virtualize machines after I have been badgering him forever about it. He picked up some refurbished supermicro servers that we will be using.

                      What you have with the gluster configuration is already a network based triple mirror. Having a local RAID and a gluster setup becomes a waste of resources quick.

                      PenguinWranglerP 1 Reply Last reply Reply Quote 0
                      • PenguinWranglerP
                        PenguinWrangler @travisdh1
                        last edited by PenguinWrangler

                        @travisdh1 That is where my thinking was going, just wanted to make sure I was on the correct page going down the right path.

                        1 Reply Last reply Reply Quote 1
                        • Emad RE
                          Emad R @PenguinWrangler
                          last edited by

                          @penguinwrangler said in Installing Gluster on CentOS 7:

                          I was thinking about doing Gluster Storage for my three KVM Hosts and keep my KVM VMs there. So if I made a virtual machine for the Gluster that used all the storage on each machine and then mounted the Gluster store in each KVM host for storage, would there be any disadvantage to that?

                          Why I cant visualize this....

                          So 3 KVM hosts. Node 1/2/3

                          And you will make VM that will use the storage, on Node 1/2/3. But how will you overcome the cannot use root partitions with Gluster?

                          Then you will mount the storage again from Node/1/2/3. But what if the VM went down ? is it an SPOF ?

                          travisdh1T 1 Reply Last reply Reply Quote 0
                          • travisdh1T
                            travisdh1 @Emad R
                            last edited by

                            @emad-r said in Installing Gluster on CentOS 7:

                            @penguinwrangler said in Installing Gluster on CentOS 7:

                            I was thinking about doing Gluster Storage for my three KVM Hosts and keep my KVM VMs there. So if I made a virtual machine for the Gluster that used all the storage on each machine and then mounted the Gluster store in each KVM host for storage, would there be any disadvantage to that?

                            Why I cant visualize this....

                            So 3 KVM hosts. Node 1/2/3

                            And you will make VM that will use the storage, on Node 1/2/3. But how will you overcome the cannot use root partitions with Gluster?

                            He has a completely separate drive for the Gluster storage. Doesn't even need to deal with partitioning a single drive.

                            Then you will mount the storage again from Node/1/2/3. But what if the VM went down ? is it an SPOF ?

                            Well, the likely hood that one of the VMs would go down is less likely than having a hardware issue with one of the nodes.

                            When a VM or hardware issue comes up, then that one node/VM drops out of the Gluster group. Now you have 2 nodes active instead of 3. When the one that went down is restored, the data is copied back from the two active nodes.

                            For a bit of a visual example: https://docs.google.com/document/d/17uSypf3QfAH-E9xHY_6brbOOfRYO5QUzrtmm8Y1vhIA/edit?usp=sharing

                            1 Reply Last reply Reply Quote 2
                            • PenguinWranglerP
                              PenguinWrangler
                              last edited by

                              @scottalanmiller Thanks for this post and answering all my questions. @travisdh1 Thanks for answering all my questions as well. Good Thread!

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