以前触ったけど、残してなかったので今の状態だけ。

 

yum install glusterfs glusterfs-fuse

yum install glusterfs glusterfs-server

 

service glusterd start

 

 

[root@tk2-234-26954 glusterfs]# gluster volume info

Volume Name: gfs
Type: Replicate
Volume ID: 6ae6cc45-59df-4d12-9307-35410214324d
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: primary.gfs.local:/root/glusterfs/primary
Brick2: secondary.gfs.local:/root/glusterfs/secondary
Options Reconfigured:
performance.readdir-ahead: on
[root@tk2-234-26954 glusterfs]# gluster volume status
Status of volume: gfs
Gluster process TCP Port RDMA Port Online Pid
——————————————————————————
Brick primary.gfs.local:/root/glusterfs/pri
mary 49156 0 Y 11647
Brick secondary.gfs.local:/root/glusterfs/s
econdary 49157 0 Y 11665
NFS Server on localhost N/A N/A N N/A
Self-heal Daemon on localhost N/A N/A Y 11697

Task Status of Volume gfs
——————————————————————————
There are no active volume tasks

 

mount

 

[root@tk2-234-26954 glusterfs]# df | grep -E “gfs|glusterfs”
primary.gfs.local:/gfs
18193792 8224512 9038464 48% /root/glusterfs/mount

 

touch /root/glusterfs/mount/7

#primary, secondary 両方にコピー