GlusterFS for UbuntuBase installation
deb://ppa.launchpad.net/gluster/glusterfs-3.5/ubuntu precise maindeb-src http://ppa.launchpad.net/gluster/glusterfs-3.5/ubuntu precise mainServer# apt-get install glusterfs-serverClient# apt-get install glusterfs-client
There are a variety of ways to configure Gluster, here are three kinds.
Establish distributed Volume on a single server
Assume that the server is: 192.168.113.173 (server)
Suppose the client is: 192.168.113.179 (clients)
Server-side configuration
Server# service glusterfs-server start创建volumeServer# gluster volume create volume-name 192.168.113.173:/home/single1启动volumeServer# gluster volume start single-volume查看当前所有volume状态Server# gluster volume info若要使用Cache,则使用Server# gluster volume set single-volume performance.cache-size 1GB
Gluster automatically generate configuration files, stored in the/var/lib/glusterd folder
Client Configuration
Mount the Gluster mirror on the client,
client# Mount.glusterfs 192.168.113.173:volume-name/mnt/local-volume
GlusterFS for Ubuntu