This is a guide to install GlusterFS 3.5.1 on CentOS
Requirements:
- CentOS 6.x “I’m doing this on CentOS 6.5”
- Configured Network
- wget installed on the OS
Resourses:
Let’s start the installation
1. Go to /etc/yum.repolist.d
1 | cd/etc/yum.repolist.d |
2. Download the repo
1 | wget http://download.gluster.org/pub/gluster/glusterfs/3.5/3.5.1/EPEL.repo/glusterfs-epel.repo |
3. check that the glusterfs repo are installed correctly
1 | yum repolist |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # yum repolist Loaded plugins:fastestmirror Loading mirror speeds from cached hostfile *base:ftp.availo.se *extras:ftp.availo.se *updates:ftp.availo.se repo id repo name status base CentOS-6-Base 6,367 extras CentOS-6-Extras 14 glusterfs-epel GlusterFS isaclustered file-system capable of sca 13 glusterfs-noarch-epel GlusterFS isaclustered file-system capable of sca 1 updates CentOS-6-Updates 1,104 repolist:7,499 [root@localhost yum.repos.d]# |
4. Install glusterfs-server
1 | yum isntall glusterfs-server |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | # yum install glusterfs-server Loaded plugins:fastestmirror Loading mirror speeds from cached hostfile *base:ftp.availo.se *extras:ftp.availo.se *updates:ftp.availo.se Setting up Install Process Resolving Dependencies -->Running transaction check --->Packageglusterfs-server.x86_640:3.5.1-1.el6will be installed -->Processing Dependency:glusterfs-libs=3.5.1-1.el6forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:glusterfs-fuse=3.5.1-1.el6forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:glusterfs-cli=3.5.1-1.el6forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:glusterfs=3.5.1-1.el6forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:rpcbind forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:libglusterfs.so.0()(64bit)forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:libgfxdr.so.0()(64bit)forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:libgfrpc.so.0()(64bit)forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Processing Dependency:libgfapi.so.0()(64bit)forpackage:glusterfs-server-3.5.1-1.el6.x86_64 -->Running transaction check --->Packageglusterfs.x86_640:3.5.1-1.el6will be installed --->Packageglusterfs-api.x86_640:3.5.1-1.el6will be installed --->Packageglusterfs-cli.x86_640:3.5.1-1.el6will be installed --->Packageglusterfs-fuse.x86_640:3.5.1-1.el6will be installed --->Packageglusterfs-libs.x86_640:3.5.1-1.el6will be installed --->Packagerpcbind.x86_640:0.2.0-11.el6will be installed -->Processing Dependency:libgssglue forpackage:rpcbind-0.2.0-11.el6.x86_64 -->Processing Dependency:libtirpc.so.1()(64bit)forpackage:rpcbind-0.2.0-11.el6.x86_64 -->Processing Dependency:libgssglue.so.1()(64bit)forpackage:rpcbind-0.2.0-11.el6.x86_64 -->Running transaction check --->Packagelibgssglue.x86_640:0.1-11.el6will be installed --->Packagelibtirpc.x86_640:0.2.1-6.el6_5.2will be installed -->Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================================================================================== Installing: glusterfs-server x86_64 3.5.1-1.el6 glusterfs-epel 562k Installing fordependencies: glusterfs x86_64 3.5.1-1.el6 glusterfs-epel 1.2M glusterfs-api x86_64 3.5.1-1.el6 glusterfs-epel 69k glusterfs-cli x86_64 3.5.1-1.el6 glusterfs-epel 122k glusterfs-fuse x86_64 3.5.1-1.el6 glusterfs-epel 92k glusterfs-libs x86_64 3.5.1-1.el6 glusterfs-epel 249k libgssglue x86_64 0.1-11.el6 base 23k libtirpc x86_64 0.2.1-6.el6_5.2 updates 79k rpcbind x86_64 0.2.0-11.el6 base 51k Transaction Summary ================================================================================================================================================================================================== Install 9Package(s) Total download size:2.4M Installed size:7.8M Isthisok[y/N]: |
Press Y to continue
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Downloading Packages: (1/9):glusterfs-3.5.1-1.el6.x86_64.rpm |1.2MB 00:01 (2/9):glusterfs-api-3.5.1-1.el6.x86_64.rpm | 69kB 00:00 (3/9):glusterfs-cli-3.5.1-1.el6.x86_64.rpm |122kB 00:00 (4/9):glusterfs-fuse-3.5.1-1.el6.x86_64.rpm | 92kB 00:00 (5/9):glusterfs-libs-3.5.1-1.el6.x86_64.rpm |249kB 00:00 (6/9):glusterfs-server-3.5.1-1.el6.x86_64.rpm |562kB 00:00 (7/9):libgssglue-0.1-11.el6.x86_64.rpm | 23kB 00:00 (8/9):libtirpc-0.2.1-6.el6_5.2.x86_64.rpm | 79kB 00:00 (9/9):rpcbind-0.2.0-11.el6.x86_64.rpm | 51kB 00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 459kB/s|2.4MB 00:05 warning:rpmts_HdrFromFdno:Header V4 RSA/SHA1 Signature,key ID4ab22bb3:NOKEY Retrieving key from http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/pub.key Importing GPG key0x4AB22BB3: Userid:"Gluster Packager <glusterpackager@download.gluster.org>" From :http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/pub.key Isthisok[y/N]: |
Check that the key is ok if yes the continue with y
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | Isthisok[y/N]:y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing:glusterfs-libs-3.5.1-1.el6.x86_64 1/9 Installing:glusterfs-3.5.1-1.el6.x86_64 2/9 Installing:libgssglue-0.1-11.el6.x86_64 3/9 Installing:libtirpc-0.2.1-6.el6_5.2.x86_64 4/9 Installing:rpcbind-0.2.0-11.el6.x86_64 5/9 Installing:glusterfs-api-3.5.1-1.el6.x86_64 6/9 Installing:glusterfs-fuse-3.5.1-1.el6.x86_64 7/9 Installing:glusterfs-cli-3.5.1-1.el6.x86_64 8/9 Installing:glusterfs-server-3.5.1-1.el6.x86_64 9/9 Verifying :glusterfs-cli-3.5.1-1.el6.x86_64 1/9 Verifying :glusterfs-api-3.5.1-1.el6.x86_64 2/9 Verifying :rpcbind-0.2.0-11.el6.x86_64 3/9 Verifying :glusterfs-fuse-3.5.1-1.el6.x86_64 4/9 Verifying :libtirpc-0.2.1-6.el6_5.2.x86_64 5/9 Verifying :glusterfs-libs-3.5.1-1.el6.x86_64 6/9 Verifying :libgssglue-0.1-11.el6.x86_64 7/9 Verifying :glusterfs-3.5.1-1.el6.x86_64 8/9 Verifying :glusterfs-server-3.5.1-1.el6.x86_64 9/9 Installed: glusterfs-server.x86_640:3.5.1-1.el6 Dependency Installed: glusterfs.x86_640:3.5.1-1.el6 glusterfs-api.x86_640:3.5.1-1.el6 glusterfs-cli.x86_640:3.5.1-1.el6 glusterfs-fuse.x86_640:3.5.1-1.el6 glusterfs-libs.x86_640:3.5.1-1.el6 libgssglue.x86_640:0.1-11.el6 libtirpc.x86_640:0.2.1-6.el6_5.2 rpcbind.x86_640:0.2.0-11.el6 Complete! [root@localhost~]# |
If you only like to install the client you install that with:
1 | yum isntall glusterfs-client |
5. Now let’s make glusterfs start on reboot:
1 | chkconfig--level235glusterd on |
6. Time to start GlusterFS
1 | service glusterd start |
1 | Starting glusterd: [ OK ] |
GlusterFS is an open source, distributed file system capable of scaling to several petabytes (actually, 72 brontobytes!) and handling thousands of clients. GlusterFS clusters together storage building blocks over Infiniband RDMA or TCP/IP interconnect, aggregating disk and memory resources and managing data in a single global namespace. GlusterFS is based on a stackable user space design and can deliver exceptional performance for diverse workloads.
Figure 1. GlusterFS – One Common Mount Point
GlusterFS supports standard clients running standard applications over any standard IP network. Figure 1, above, illustrates how users can access application data and files in a Global namespace using a variety of standard protocols.
No longer are users locked into costly, monolithic, legacy storage platforms. GlusterFS gives users the ability to deploy scale-out, virtualized storage – scaling from terabytes to petabytes in a centrally managed and commoditized pool of storage.
Attributes of GlusterFS include:
- Scalability and Performance
- High Availability
- Global Namespace
- Elastic Hash Algorithm
- Elastic Volume Manager
- Gluster Console Manager
- Standards-based