1) Download the installation package glusterfs-3.6.1.tar.gz
http://fossies.org/linux/misc/glusterfs-3.6.1.tar.gz/
Cd/etc/yum.repos.d/glusterfs Decompression
[Email protected]%ancunkj glusterfs-3.6.1]# TAR-ZXVF glusterfs-3.6.1.tar.gz
........................
....................... .
[Email protected]%ancunkj glusterfs-3.6.1]#./autogen.sh
........................
....................... .
[Email protected]%ancunkj glusterfs-3.6.1]#./configure
........................
....................... .
[[Email protected]%ancunkj glusterfs-3.6.1]# Make
........................
........................
[Email protected]%ancunkj glusterfs-3.6.1]# make install
..............................
.............................
1) Start the service
[[Email protected]%ancunkj glusterfs-3.6.1]# service Glusterd start
Starting glusterd:[OK]
................................................
................................................
Stop Service
[[Email protected]%ancunkj glusterfs-3.6.1]# Service Glusterd stop
View status
[Email protected]%ancunkj glusterfs-3.6.1]# Service Glusterd Status
Glusterd has stopped
2) Cluster
[Email protected]%ancunkj glusterfs-3.6.1]# Gluster peer probe Cn0
Peer Probe:success. Probe on localhost not needed
[Email protected]%ancunkj glusterfs-3.6.1]# Gluster peer probe Cn1
Peer Probe:success.
[Email protected]%ancunkj glusterfs-3.6.1]# Gluster peer probe CN2
Peer Probe:success.
[[Email protected]%ancunkj glusterfs-3.6.1]#
--------------------------------------------------------------
You can also view its status
[[Email protected]%ancunkj glusterfs-3.6.1]# gluster Peer status
Number of Peers:2
Hostname:cn1
Uuid:cc638bd4-7d3d-4b3d-bbe7-185561c5fa87
State:peer in Cluster (Connected)
Hostname:cn2
uuid:2bae3c73-558a-4e73-9a98-feb31975d009
State:peer in Cluster (Connected)
[[Email protected]%ancunkj glusterfs-3.6.1]#
Note: You can see their respective states on each slice.
---------------------------------------------
3) Creation of volume
[[Email protected]%ancunkj glusterfs-3.6.1]# gluster volume Create stripe4 Strip 3 cn0:/mnt/strip1 cn1:/mnt/strip1 cn2:/m Nt/strip1 Force
-----------------------------------------------------------------------------------------------------------
4) Mount Mount
[Email protected]%ancunkj mnt]# mount-t glusterfs cn1:/strip1/mnt/strip-client/
Here is the volume that is mounted to cn1 so start cn1 first. The command is as follows:
[[Email protected]%ancunkj mnt]# gluster volume start stripe4
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Note: If volume start stripe4 is on, it must be stopped before it can be mounted ....
[[Email protected]%ancunkj mnt]# gluster volume start stripe4
Volume Start:stripe4:failed:Volume Stripe4 already started
[Roo[email protected]%ancunkj mnt]# gluster Volume Stop Stripe4
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
5) Creation of EC
[[Email protected]%ancunkj mnt]# gluster Volume create ec3-2 disperse 5 redundancy 2
CN0:/MNT/EC1 cn0:/mnt/ec2 cn1:/mnt/ec1 cn1:/mnt/ec2 cn2:/mnt/ec1 Force
--------------------------------------------------------------------------------------------------------------- -
--------------------------------------------------------------------------------------------------------------- -
Note 1:ec3-2 This place, the preceding number must be greater than the number that follows. 3>2
Note 2: This place should be noted: The total number of EC1, EC2 must be a multiple of disperse 5.
CN0:EC1, EC2
CN1:EC1, EC2
Cn2:ec1
Error: The following
Number of bricks is not a multiple of disperse count
Usage:volume Create <NEW-VOLNAME> [stripe <count>] [replica <count>] [disperse [<count>]] [ Redundancy <count>]
[Transport <tcp|rdma|tcp,rdma>] <new-brick> [Force]
--------------------------------------------------------------------------------------------------------------- -----
--------------------------------------------------------------------------------------------------------------- -----
6) Start Ec3-2 mode
[[Email protected]%ancunkj mnt]# gluster volume start ec3-2
---------------------------------------------------------------------------------------------------
7) Create a ec-client file
[Email protected]%ancunkj mnt]# mkdir ec-client
---------------------------------------------------------------------------------------------------
8) Mount
[Email protected]%ancunkj mnt]# mount-t glusterfs cn0:/ec3-2/mnt/ec-client
---------------------------------------------------------------------------------------------------
GLUSTERFS-3.6.1.TAR.GZ installation Process