Installing GlusterFS Server using RPM on Oracle Linux 9
GlusterFS is a scalable network filesystem suitable for data-intensive tasks. This article will guide you through the installation of GlusterFS server using RPM on Oracle Linux 9.
Prerequisites
Before starting the installation, ensure that your system meets the following requirements:
- Oracle Linux 9 (OL9) installed
- Two or more servers for creating a GlusterFS cluster
- Basic knowledge of Linux command line
Installing GlusterFS Server using RPM
To install GlusterFS server on Oracle Linux 9, follow the steps below:
Step 1: Add the GlusterFS repository
First, you need to add the GlusterFS repository to your system. Run the following command as root:
sudo tee /etc/yum.repos.d/glusterfs.repo <<EOF
[glusterfs]
name=GlusterFS
baseurl=http://download.gluster.org/pub/gluster/glusterfs/latest/centos/\$basearch/
enabled=1
gpgcheck=0
EOF
Step 2: Install GlusterFS server
After adding the repository, you can install GlusterFS server using the following command:
sudo yum install glusterfs-server -y
Step 3: Start and enable the GlusterFS service
Once the installation is complete, start and enable the GlusterFS service using the following commands:
sudo systemctl start glusterd
sudo systemctl enable glusterd
Creating a GlusterFS Cluster
After installing GlusterFS server on two or more servers, you can create a GlusterFS cluster. Follow the steps below to create a cluster:
Step 1: Peer probe the servers
To create a cluster, you need to peer probe the servers. Run the following command on one of the servers to peer probe the other server:
sudo gluster peer probe
Step 2: Create a trust relationship
After peer probing, create a trust relationship between the servers using the following command:
sudo gluster peer status
sudo gluster peer set trust flag true
Step 3: Create a GlusterFS volume
After creating a trust relationship, you can create a GlusterFS volume using the following command:
sudo gluster volume create replica 2 transport tcp :/bricks/brick1 :/bricks/brick2
sudo gluster volume start
In this article, we have covered the installation of GlusterFS server using RPM on Oracle Linux 9. We have also covered the steps to create a GlusterFS cluster. GlusterFS is a powerful network filesystem suitable for data-intensive tasks. With its scalability and flexibility, it is an excellent choice for building a distributed storage system.