RPM Package Installation
Official site: http://download.gluster.org/pub/gluster/glusterfs/
Yum Install Centos-release-gluster ======================================
# mkfs.xfs-i SIZE=512/DEV/SDB1
# mkdir-p/bricks/brick1
# Vi/etc/fstab
/dev/sdb1/bricks/brick1 XFS Defaults 1 2
# mount-a && Mount
========================================
Yum Install Xfsprogs
Yum--enablerepo=centos-gluster*-test Install Glusterfs-server
Service Glusterd Start
Gluster Peer probe Gv02
Gluster Peer Status
Mkdir/data/repository
Gluster Volume Create gv0 replica 2 gv01:/data/repository gv02:/data/repository
Gluster Volume start Gv0
Gluster Volume Info
Mount-t Glusterfs gv01:/gv0/mnt
Mount-t Glusterfs gv02:/gv0/mnt
For i in ' seq-w 1 100 '; Do cp-rp/var/log/messages/mnt/copy-test-$i; Done
View synchronization conditions
ls-la/mnt | Wc-l
Ls-la
Create a volume times wrong volume create:gv0:failed:/data/gv0/brick1 or a prefix of it is already part of a volume
A: When the volume was created, an error occurred,
Volume create:gv0:failed
Therefore, there is information left and needs to be cleaned up.
# Cd/data/gv0/brick1
# ATTR-LQ.
Glusterfs.volume-id
# Setfattr-x Trusted.glusterfs.volume-id.
or batch:
# Cd/data/gv0
# for I in ' ls. '; Do setfattr-x Trusted.glusterfs.volume-id $i; Done
Http://www.cnblogs.com/terrycy/p/5915263.html
http://nosmoking.blog.51cto.com/3263888/1697954
http://blog.csdn.net/lincoln_2012/article/details/52201227
Http://www.cnblogs.com/terrycy/p/5915263.html
Http://www.centoscn.com/image-text/config/2015/0901/6098.html
Http://www.cnblogs.com/terrycy/p/5915263.html