GlusterFS 에는 Replication 기능이 있다. (볼륨 구성시 Replica 옵션)
물론 같은 클러스터에 있는 서버들끼리만이다.

하지만 Geo-Replication 기능은 기존 같은클러스터 뿐만 아니라, LAN 이나 WAN 상에 존재하는 다른 서버에도 Replication을 할 수 있도록 한다.
또한 Replicated Volumes 는 동기적인 Replication(모든 , 각각의 파일 동작이 모든 bricks에게 보내짐) 이지만, Geo-Replication는 비동기적인 Replication(파일들에서의 변경을 정기적으로 체크하고 변화된 것을 체크해서 동기화) 이다.
GlusterFS 최신버전에 포함된 기능이다.(현재 3.2)

기본적으로 Master - Slave 라는 개념으로 메뉴얼에는 설명이 되어있다.
Master (Target) - Slave (Destination)


1. 초기 설정
@ 시간 동기화
@ SSH 암호없이 접속하도록 설정 ( Master -> Slave )
# ssh-keygen -f /etc/glusterd/geo-replication/secret.pem
# (엔터계속)
개인키를 생성해서 이 개인키로 접속을 한다.
ssh 명령은 
# gluster volume geo-replication <MASTER> <SLAVE> config
으로 확인가능하다.

@ FUSE 모듈 로드

2. 시작
# gluster volume geo-replication <MASTER> <SLAVE> start
ex) gluster volume geo-replication tar-volume 172.22.22.3:geo-volume start

# gluster volume geo-replication <MASTER> <SLAVE> status
faulty 가 떴다면 에러가 난 것이다.
# gluster volume geo-replication <MASTER> <SLAVE> config log_file
을 해서 해당 로그 파일을 보면 된다.
 

+ Recent posts