Remote all installation and config of gluster
apt-get purge --auto-remove glusterfs-server
Install gluster on servers, (server1, server2)
apt-get install glusterfs-server
On server1
gluster peer probe server2
On server2
gluster peer probe server1
On server1
gluster volume create gv0 replica 2 server1:/path/to/folderserver1 server2:/path/to/folderserver2
gluster volume start gv0
On server2
mount -t glusterfs server2:/gv0 /path/to/sharedir
sharedir is represent for broadcast to 2 folderserver1 and folderserver2, data store in sharedir is replicated to folderserver1 and folderserver2
No comments:
Post a Comment