Ubuntu 14.04
Sponsored Link

GlusterFS : Striping Setting
Install Distributed Filesystem "GlusterFS".
For example, create a Striping volume with 2 servers to be able to use it from GlusterFS Clients. This example shows to use 2 servers but it's possible to use more than 3 servers.
                  |                    |
                               +-----+ GlusterFS Server#1 |
+-----------------+            | eth0|                    |
|                 |   |     +--------------------+
| GlusterFS Clint |------------+
|                 |eth0        |     +--------------------+
+-----------------+            | eth0|                    |
                               +-----+ GlusterFS Server#2 |
                  |                    |

[1] Configure the same settings on 2 GlusterFS servers like follows. It is recommended to create a directory for GlusterFS volume on the different partition from the / partition.
apt-get -y install glusterfs-server
vi /etc/hosts
# add GlusterFS servers       gfs01.srv.world gfs01       gfs02.srv.world gfs02

# create a directory for GlusterFS volume

mkdir /glusterfs/striped

[2] Work on a server like follows.
gluster peer probe gfs02
# search the server

peer probe: success
# just found

gluster peer status
# show status

Number of Peers: 1

Hostname: gfs02
Port: 24007
Uuid: 0575e5a1-651b-49f4-80ee-06cd06f1740b
State: Peer in Cluster (Connected)

# create a volume

gluster volume create vol_striped stripe 2 transport tcp \
gfs01:/glusterfs/striped \

volume create: vol_striped: success: please start the volume to access data
gluster volume start vol_striped
# start the volume

volume start: vol_striped: success
gluster volume info
# show info

Volume Name: vol_striped
Type: Stripe
Volume ID: 59bbb47b-cd47-40a8-8dda-59f45e5469de
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Brick1: gfs01:/glusterfs/striped
Brick2: gfs02:/glusterfs/striped
[3] Configure GlusterFS Clients to use GlusterFS volume from GlusterFS servers.
apt-get -y install glusterfs-client
# mount the volume on /mnt

mount -t glusterfs gfs01.srv.world:/vol_striped /mnt
# just mounted

df -h

Filesystem                       Size  Used Avail Use% Mounted on
/dev/mapper/dlp--vg-root         181G  1.1G  171G   1% /
none                             4.0K     0  4.0K   0% /sys/fs/cgroup
udev                             2.0G  4.0K  2.0G   1% /dev
tmpfs                            395M  876K  394M   1% /run
none                             5.0M     0  5.0M   0% /run/lock
none                             2.0G     0  2.0G   0% /run/shm
none                             100M     0  100M   0% /run/user
/dev/sda1                        236M   37M  188M  17% /boot
gfs01.srv.world:/vol_striped  158G  112M  150G   1% /mnt
Matched Content