vi /etc/hosts
192.168.0.1 node01
192.168.0.2 node02
yum -y install epel-release yum-priorities
vi /etc/yum.repos.d/epel.repo
priority=10
yum -y install centos-release-gluster
yum -y install https://rpmfind.net/linux/centos/8-stream/BaseOS/x86_64/os/Packages/userspace-rcu-0.10.1-4.el8.x86_64.rpm
yum -y install glusterfs-server
systemctl enable --now glusterd
glusterfsd --version
gluster peer probe node01
gluster peer probe node02
gluster peer status
mkdir -p /srv/.bricks
gluster volume create www replica 2 transport tcp node01:/srv/.bricks/www node02:/srv/.bricks/www force
gluster volume start www
mkdir /srv/www
echo localhost:/www /srv/www glusterfs defaults,_netdev 0 0 >> /etc/fstab
mount /srv/www
gluster volume info