How To Install glusterfs on CentOS 8

glusterfs is Distributed File System

Introduction

In this tutorial we learn how to install glusterfs on CentOS 8.

What is glusterfs

GlusterFS is a distributed file-system capable of scaling to several petabytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is one of the most sophisticated file systems in terms of features and extensibility. It borrows a powerful concept called Translators from GNU Hurd kernel. Much of the code in GlusterFS is in user space and easily manageable. This package includes the glusterfs binary, the glusterfsd daemon and the libglusterfs and glusterfs translator modules common to both GlusterFS server and client framework.

We can use yum or dnf to install glusterfs on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install glusterfs.

Install glusterfs on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install glusterfs using dnf by running the following command:

sudo dnf -y install glusterfs

Install glusterfs on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install glusterfs using yum by running the following command:

sudo yum -y install glusterfs

How To Uninstall glusterfs on CentOS 8

To uninstall only the glusterfs package we can use the following command:

sudo dnf remove glusterfs

glusterfs Package Contents on CentOS 8

/run/gluster
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/50d5fd025b9a44e74045f5f664a64138b08c62
/usr/lib/.build-id/12
/usr/lib/.build-id/12/0e7c72c4a12555943c662b275bd10ba84cb7b9
/usr/lib/.build-id/22
/usr/lib/.build-id/22/3ab64c67ba065fc6d65b5be7b5cb84731f66fd
/usr/lib/.build-id/26
/usr/lib/.build-id/26/5ea4023eb5c9bb26798f563e9770a519f03c71
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/f1c70bbda42423b6670a5e8e67084b585cb0ac
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/f1358e6fa1aba3cfebca9bbbc7e3f6329180a2
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/3c469be9f9f89851930b7a3600656c1cfc901f
/usr/lib/.build-id/46
/usr/lib/.build-id/46/780a54e7e5c300d7358e24f4e4bb29fae3bacc
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/4aba3996095ad5c72673745a5f18db5b12a804
/usr/lib/.build-id/63
/usr/lib/.build-id/63/6be9695e57ecafcd04117e275e052b64a15173
/usr/lib/.build-id/74
/usr/lib/.build-id/74/1b01027389af8773d62267a8fdacdcddd9e6df
/usr/lib/.build-id/77
/usr/lib/.build-id/77/d78ff0946becd7a8e051c139c1c36ce64b3d9c
/usr/lib/.build-id/79
/usr/lib/.build-id/79/50d02341ee91f66d455f059070bde4ca44414c
/usr/lib/.build-id/83
/usr/lib/.build-id/83/1aecef10280631a6db3d0824301379ae3f0a19
/usr/lib/.build-id/88
/usr/lib/.build-id/88/3f8f0a7bc9ac2b1951ce9556654c4e52f2d68b
/usr/lib/.build-id/95
/usr/lib/.build-id/95/3f2ebb1f5d07a38f729e573943ccc078b6f203
/usr/lib/.build-id/99
/usr/lib/.build-id/99/d2299ce2fc5c8abe9074b139f33c0c57685ce0
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/723f5d3122a9222a75cbcd9a5046a87bf72a5d
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/a97fe6e8652bcea596300c1d5f48595bebb3e5
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/254975e8a2a40c21e5202f52306b509a12fea3
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/2d8cbac4ca94ad9bf034a59cbcee9b9d3fd2df
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/700ff47d4ce840db3778c4b1e603a0013c280f
/usr/lib/.build-id/c4/7f4153f4d2379b07b5f8152e00119e483ac1ae
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/d8cde7ea77fc92c28a7f9de7db482bbf2aa2da
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/691ddda6f236ab580e4d3097d7dab9698127a2
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/2e99d5365164343670f16630a7c42f3cf92e8d
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/f95ac7eebaef39506d3ee5a807ef4151a73bfc
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/6307ebf0e6d19fa7a842d2528947ec1088ee71
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/f932778074ae12208ee27c30b23d15b670525b
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/e5b6ac0fc8287330c870c06a7b4bd8aa73f6f8
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/dfd9c1e075e1263443891741da9b4b59ad6ea7
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/c29cd0f93e644e0d88239d1a0d25f4aeb0a03a
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/3f0e31e81a9a5fbe4729c3136c79a0e20277ee
/usr/lib64/glusterfs
/usr/lib64/glusterfs/6.0
/usr/lib64/glusterfs/6.0/auth
/usr/lib64/glusterfs/6.0/auth/addr.so
/usr/lib64/glusterfs/6.0/auth/login.so
/usr/lib64/glusterfs/6.0/rpc-transport
/usr/lib64/glusterfs/6.0/rpc-transport/socket.so
/usr/lib64/glusterfs/6.0/xlator
/usr/lib64/glusterfs/6.0/xlator/debug
/usr/lib64/glusterfs/6.0/xlator/debug/delay-gen.so
/usr/lib64/glusterfs/6.0/xlator/debug/error-gen.so
/usr/lib64/glusterfs/6.0/xlator/debug/io-stats.so
/usr/lib64/glusterfs/6.0/xlator/debug/sink.so
/usr/lib64/glusterfs/6.0/xlator/debug/trace.so
/usr/lib64/glusterfs/6.0/xlator/features
/usr/lib64/glusterfs/6.0/xlator/features/access-control.so
/usr/lib64/glusterfs/6.0/xlator/features/barrier.so
/usr/lib64/glusterfs/6.0/xlator/features/cdc.so
/usr/lib64/glusterfs/6.0/xlator/features/changelog.so
/usr/lib64/glusterfs/6.0/xlator/features/cloudsync.so
/usr/lib64/glusterfs/6.0/xlator/features/gfid-access.so
/usr/lib64/glusterfs/6.0/xlator/features/namespace.so
/usr/lib64/glusterfs/6.0/xlator/features/read-only.so
/usr/lib64/glusterfs/6.0/xlator/features/shard.so
/usr/lib64/glusterfs/6.0/xlator/features/snapview-client.so
/usr/lib64/glusterfs/6.0/xlator/features/utime.so
/usr/lib64/glusterfs/6.0/xlator/features/worm.so
/usr/lib64/glusterfs/6.0/xlator/meta.so
/usr/lib64/glusterfs/6.0/xlator/performance
/usr/lib64/glusterfs/6.0/xlator/performance/io-cache.so
/usr/lib64/glusterfs/6.0/xlator/performance/io-threads.so
/usr/lib64/glusterfs/6.0/xlator/performance/md-cache.so
/usr/lib64/glusterfs/6.0/xlator/performance/nl-cache.so
/usr/lib64/glusterfs/6.0/xlator/performance/open-behind.so
/usr/lib64/glusterfs/6.0/xlator/performance/quick-read.so
/usr/lib64/glusterfs/6.0/xlator/performance/read-ahead.so
/usr/lib64/glusterfs/6.0/xlator/performance/readdir-ahead.so
/usr/lib64/glusterfs/6.0/xlator/performance/stat-prefetch.so
/usr/lib64/glusterfs/6.0/xlator/performance/write-behind.so
/usr/lib64/glusterfs/6.0/xlator/system
/usr/lib64/glusterfs/6.0/xlator/system/posix-acl.so
/usr/share/doc/glusterfs
/usr/share/doc/glusterfs/COMMITMENT
/usr/share/doc/glusterfs/COPYING-GPLV2
/usr/share/doc/glusterfs/COPYING-LGPLV3
/usr/share/doc/glusterfs/ChangeLog
/usr/share/doc/glusterfs/INSTALL
/usr/share/doc/glusterfs/README.md
/usr/share/doc/glusterfs/THANKS
/usr/share/glusterfs/scripts/collect-system-stats.sh
/usr/share/glusterfs/scripts/identify-hangs.sh
/usr/share/glusterfs/scripts/log_accounting.sh
/usr/share/man/man8/gluster-setgfid2path.8.gz
/usr/share/man/man8/gluster.8.gz
/usr/share/man/man8/glusterfs.8.gz
/usr/share/man/man8/mount.glusterfs.8.gz
/var/log/glusterfs

References

Summary

In this tutorial we learn how to install glusterfs on CentOS 8 using yum and dnf.