Glusterfs Installation and initialization

Source: Internet
Author: User
Tags glusterfs gluster

System environment: CentOS 6 x86_64

Cluster Environment: Server1 Server2

1. Add Glusterfs Source to CentOS

wget -p/etc/Yumrepos.d http://download.gluster.org/pub/gluster/glusterfs/latest/ Rhel/glusterfs-epel.repo

Installing Glusterfs-server

Yum Install Glusterfs-server

At this point, if you are prompted for a missing pyxattr and LIBURCU two packages, you can download and install this

wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/visionsoftware/CentOS_CentOS-6/x86 _64/pyxattr-0.5.0-4.2.x86_64.rpm
pyxattr-0.5.0-4.2.x86_64.rpm
wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/pyxattr-0.5.0-4.2.x86_64.rpm
pyxattr-0.5.0-4.2.x86_64.rpm

2, executed in Server1

Gluster Peer probe Server2

Execute in Server2

Gluster Peer probe Server1

3, executed separately in Server1 and Server2

mkdir /data/brick1/gv0

4, executed on either Server1 or Server2 machine

2 server1:/data/brick1/gv0 server2:/data/brick1/gv0gluster volume start gv0

5, test Glusterfs installation Results

Mount -t glusterfs server1:/gv0/mnt for in 'seq -w1  -  Do CP  Done ls WC -lls -la/data/brick1/gv0

Essay content is mainly extracted from Glusterfs official documents

Glusterfs Installation and initialization

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.