인스톨 가이드를 참고. (http://download.gluster.com/pub/gluster/glusterfs/3.2/3.2.0/Gluster_FS_3.2_Installation_Guide.pdf)
다운로드 : http://download.gluster.com/pub/gluster/glusterfs/LATEST/
1. 편의상 /etc/hosts에 모든 GlusterFS Node들의 host정보 등록
IP주소 GFS1
IP주소 GFS2
...
이때, 모든 GlusterFS Node 에 위와 같이 해줘야 한다.
그렇지 않으면 볼륨 생성시 Fail 이 난다. (로그를 보면 호스트를 확인하지 못했다고 뜬다.)
2. Setting
- # chkconfig iptables off
- # service iptables stop
- # chkconfig portmap on
- # service portmap start
- # chkconfig nfs off
- # chkconfig nfslock off
- # service nfs stop
- # service nfslock stop
- # mkdir /data /mnt/nfs /mnt/glusterfs
- # modprobe fuse
- # echo "modprobe fuse" >> /etc/rc.local
@ nfs 로 마운트시 버전을 넣어줘야함. 왜 그런지는 아직..
mount -t nfs -o vers=3 172.21.19.113:/test-vol /mnt/nfs/
3. glusterfs로 시작되는 rpm 다운로드
# wget http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-core-3.2.3-1.x86_64.rpm http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-debuginfo-3.2.3-1.x86_64.rpm http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-fuse-3.2.3-1.x86_64.rpm http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-geo-replication-3.2.3-1.x86_64.rpm http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-rdma-3.2.3-1.x86_64.rpm
4. rpm 설치
# rpm -Uvh gluster*
- 의존성 에러 나는 것은 설치해줌 (python-ctypes, rsync, libibverbs-devel)
- python-ctypes 경우, epel 설치로 가능 : http://fedoraproject.org/wiki/EPEL
- rsync 경우, 직접 설치 : http://pkgs.repoforge.org/rsync/
- CentOS 6 인경우 perl 설치, ssh클라이언트가 없을경우 openssh-clients 설치(의존성에러 compat-readline5* 도 설치)
5. gluster 시작
- service glusterd start
- 의존성 에러 나는 것은 설치해줌 (python-ctypes, rsync, libibverbs-devel)
- python-ctypes 경우, epel 설치로 가능 : http://fedoraproject.org/wiki/EPEL
- rsync 경우, 직접 설치 : http://pkgs.repoforge.org/rsync/
- CentOS 6 인경우 perl 설치, ssh클라이언트가 없을경우 openssh-clients 설치(의존성에러 compat-readline5* 도 설치)
5. gluster 시작
- service glusterd start