GlusterFS packages are
not included in the default CentOS
7 repository so the packages can be installed from Gluster repository and
EPEL repository. GlusterFS packages needs to install on all the GlusterFS
Nodes.
Step 1. Enable EPEL Repository: Follow the article How to install EPEL repository on Centos7 to enable/install EPEL Repository as some
dependencies are required from EPEL repository to run GlusterFS Server. It
should be enabled on all the GlusterFS nodes.
Step 2. Enable Gluster Repository: Run the following commands on all the nodes to enable
GlusterFS repository:
[root@linuxcnf
~]# yum install centos-release-gluster
Loaded
plugins: fastestmirror
…………………….
Installed:
centos-release-gluster9.noarch
0:1.0-1.el7
Dependency
Installed:
centos-release-storage-common.noarch
0:2-2.el7.centos
Complete!
[root@linuxcnf
~]#
|
Step 3. GlusterFS Packages Installation: Run the below commands to install GlusterFS and
related packages:
[root@linuxcnf
~]# yum install glusterfs-server
Loaded
plugins: fastestmirror
…………………….
Installed:
glusterfs-server.x86_64
0:9.6-1.el7
Dependency
Installed:
attr.x86_64 0:2.4.46-13.el7 glusterfs.x86_64 0:9.6-1.el7
…………………….
userspace-rcu.x86_64
0:0.10.0-3.el7
Complete!
[root@linuxcnf
~]#
|
Step 5. Firewall Configuration: By default, glusterd will listen on tcp/24007 but
opening that port is not enough on the gluster nodes. Each time new bricks
addition will open a new port so would need to either disable the firewall or
configure the firewall to allow all connections on all cluster nodes.
[root@linuxcnf
~]# systemctl disable firewalld --now
Removed
symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed
symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@linuxcnf
~]#
|
Step 4. Start GlusterFS: Run the following command to start Spacewalk service
and enable it across reboot:
[root@linuxcnf
~]# systemctl enable glusterd –now
Created
symlink from /etc/systemd/system/multi-user.target.wants/glusterd.service to
/usr/lib/systemd/system/glusterd.service.
[root@linuxcnf
~]#
|
Run the following
command to verify the service status:
[root@linuxcnf
~]# systemctl status glusterd
●
glusterd.service - GlusterFS, a clustered file-system server
Loaded: loaded
(/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu
2022-09-22 07:47:38 IST; 13s ago
Docs: man:glusterd(8)
Process: 1972 ExecStart=/usr/sbin/glusterd
-p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS
(code=exited, status=0/SUCCESS)
Main PID: 1973 (glusterd)
CGroup: /system.slice/glusterd.service
└─1973
/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO
Sep 22
07:47:38 linuxcnf systemd[1]: Starting GlusterFS, a clustered file-system
server...
Sep 22
07:47:38 linuxcnf systemd[1]: Started GlusterFS, a clustered file-system
server.
[root@linuxcnf
~]#
|
No comments:
Post a Comment