목차

GlusterFS - Commands

참조문서 : http://itscom.org/archives/4573

Volume

[root@localhost ~] # gluster
볼륨 정보 ① volume info all  ② volume info 볼륨명
gluster> volume info V_dist

볼륨 생성 ① volume create 볼륨명 [stripe <count> [transport <tcp>] <NEW-BRICK>
gluster> volume create V_stripe stripe 2 transport tcp gstor1:/data/st1 gstor2:/data/st1

볼륨 삭제 ① volume delete 볼륨명 (볼륨이 시작된 경우 volume stop 볼륨명 먼저실행)
gluster> volume delete V_replica

볼륨 시작 ① volume start 볼륨명 [force]
gluster> volume start V_dist

볼륨 중지 ① volume stop 볼륨명 [force]
gluster> volume stop V_dist

브릭 추가 ① volume add-brick 볼륨명 [<stript|replica> <count>] <NEW-BRICK> [force]
gluster> volume add-brick V_dist gstor1:/data/dist3

브릭 제거 ① volume remove-brick 볼륨명 [replica <count>] 브릭 [start|stop|status|commit|force]
gluster> volume remove-brick V_dist gstor1:/data/dist3 force

볼륨 균형 ① volume rebalance 볼륨명 [fix-layout] {start|stop|status} [force]
gluster> volume rebalance V_dist start

브릭 교체 ① volume replace-brick 볼륨명 <BRICK> <NEW-BRICK> {start [force]|pause|abort|status|commit [force]}
gluster> volume replace-brick V_dist gstor1:/data/dist gstor1:/data/dist1 start
gluster> volume replace-brick V_dist gstor1:/data/dist gstor1:/data/dist1 status
gluster> volume replace-brick V_dist gstor1:/data/dist gstor1:/data/dist1 commit force

볼륨 셋팅 ① volume set 볼륨명 <KEY> <VALUE>
gluster> volume set

볼륨 싱크 ① volume sync <호스트명> [all|볼륨명]
gluster> volume sync

볼륨 리셋 ① volume reset 볼륨명 [옵션] [force]
gluster> volume reset V_dist

볼륨 프로필 ① volume profile 볼륨명 {start|stop|info [nfs]}
gluster> volume profile V_dist start
gluster> volume profile V_dist info
 
볼륨 쿼터 ① volume quota 볼륨명 {enable|disable|list [<path> ...]|remove <path>| default-soft-limit <percent>}
# 먼저 mkdir /var/run/gluster 합니다.
gluster> volume quota V_dist enable

볼륨 쿼터 ① volume quota 볼륨명 {limit-usage <path> <size> [<percent>]}
gluster> volume quota V_dist limit-usage 

볼륨 쿼터 ① volume quota 볼륨명 {alert-time|soft-timeout|hard-timeout} {<time>}
# 

볼륨 top ① volume top 볼륨명 {open|read|write|opendir|readdir|clear} [nfs|brick <brick>] [list-cnt <value>]
gluster> volume top V_dist open

불륨 top ① volume top 볼륨명 {read-perf|write-perf} [bs <size> count <count>] [brick <brick>] [list-cnt <value>]

볼륨 상태 ① volume status [all | <VOLNAME> [nfs|shd|<BRICK>|quotad]] [detail|clients|mem|inode|fd|callpool|tasks ]
gluster> volume status all

Peer

[root@localhost ~]# gluster 
스토리지 추가 ① peer probe 호스트명
peer probe gstor1

스토리지 제거 ① peer detach 호스트명
gluster> peer detach gstor1 force

연결상태 ① peer status
gluster> peer status