### glusterFS install


ㅁ install


yum install -y wget


rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm


wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/RHEL/glusterfs-epel.repo


yum install -y glusterfs-server

yum install -y glusterfs-geo-*




ㅁ 방화벽 제거

systemctl stop firewalld



ㅁ Disk job


fdisk /dev/vdb (linux partition job)


mkfs.xfs -i size=512 /dev/vdb1


mkdir -p /export/vdb1 && mount /dev/vdb1 /export/vdb1 && mkdir -p /export/vdb1/brick


echo "/dev/vdb1 /export/vdb1 xfs defaults 0 0" >> /etc/fstab



ㅁ gluster configure


gluster peer probe 1.1.1.1

gluster peer probe 1.1.1.2

gluster peer probe 1.1.1.3

gluster peer probe 1.1.1.4

.

.

.

gluster peer probe 1.1.1.10


gluster volume create t_vol replica 2 transport tcp 1.1.1.1:/export/vdb1/brick 1.1.1.2:/export/vdb1/brick 1.1.1.3:/export/vdb1/brick 1.1.1.4:/export/vdb1/brick 1.1.1.5:/export/vdb1/brick 1.1.1.6:/export/vdb1/brick 1.1.1.7:/export/vdb1/brick 1.1.1.8:/export/vdb1/brick 1.1.1.9:/export/vdb1/brick 1.1.1.10:/export/vdb1/brick



ㅁ client configure


yum install -y glusterfs

yum install -y glusterfs-fuse


mount -t glusterfs 1.1.1.1:/t_vol /storage-test

1.1.1.1:/t_vol  500G  162M  500G   1% /storage-test

mount -t glusterfs 1.1.1.7:/t_vol /storage-test

1.1.1.7:/t_vol  500G  162M  500G   1% /storage-test



'Linux > Document' 카테고리의 다른 글

swap size  (0) 2017.03.09
mmm  (0) 2016.05.09
keepalived + haproxy + dns  (0) 2016.04.07
mariadb galera cluster 10.0 centos 6.x + LVS(LB)  (0) 2016.03.25
ubuntu banner 설정  (0) 2016.03.04

+ Recent posts