Glusterfs Distributed File System as a file synchronization installation configuration

Source: Internet
Author: User
Tags mkdir centos glusterfs gluster


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.