Distributed File System Glusterfs installation steps

Source: Internet
Author: User
Tags posix glusterfs
my system is RHEL5, may not be the same, the need to install the third party rely on different ah, anyway, we are in the process of installation of what is missing to install what, general will be prompted.
Download the glusterfs-3.2.0.tar.gz source package. Extract to a directory casually.

Glusterfs requires fuse support, please install fuse before installation begins. fuse can be downloaded to http://fuse.sourceforge.net/ the steps for installing fuse are as follows: ./configure
Make Make Install



Glusterfs requires ctypes support, please install ctypes before installation begins.

ctypes Look at the download address for http://python.net/crew/theller/ctypes/ ctypes Libraries need to be installed with Python, and the installation steps are as follows
python setup.py build
Python setup.py test
Python setup.py Install




To install Glusterfs, follow these steps:
cd/home/glusterfs-3.2.0
./configure--enable-fusermount Make Make Install




down needs to be configured, my environment here is: Server-side 3-----------192.168.2.85 and 192.168.2.222 and 192.168.2.98
client-side 1------------192.168.2.55 the directory in which the configuration file is located is/etc/glusterfs/

[Root@redhat1 glusterfs]# more Protocol-server.vol ### Export volume ' brick ' with the contents '/home/export ' Directo Ry. Volume brick type storage/posix # POSIX FS translator option Directory/data/movies # EXP
Ort this directory End-volume ### ADD network serving capability to above. Volume server type protocol/server option transport-type TCP # for TCP/IP transport option Transport.socket.lis Ten-port 24016 # option Transport-type ib-verbs # for InfiniBand verbs transport # option Transport.ib-verb S.work-request-send-size 131072 option transport.ib-verbs.work-request-send-count option Transport.ib-verbs.work-request-recv-size 131072 option transport.ib-verbs.work-request-recv-count option Transport.ib-verbs.listen-port 24016 # option bind-address 192.168.1.10 # Default is to listen on all Interfaces # option Client-volume-filename/etc/glusterfs/glusterfs-client.vol Subvolumes Brick 
  Option Auth.addr.brick.allow 192.168.* # Allow access to ' brick ' volume end-volume 

above is the server-side configuration file, each server configuration is the same, shared data directory for/data/movies the command to start the server side is: glusterfsd-l/etc/glusterfs/g.log-f/etc/glusterfs/protocol-server.vol


The configuration file for the client is the following configuration file:

Volume client0 type protocol/client option transport-type TCP # for TCP/IP transport # option Transport-type IB-SD P # for InfiniBand transport option Remote-host 192.168.2.85 # IP address of the remote brick option transport.so Cket.remote-port 24016 # option Transport-type ib-verbs # for InfiniBand verbs transport # option Transport . ib-verbs.work-request-send-size 1048576 # option Transport.ib-verbs.work-request-send-count option Transport.ib-verbs.work-request-recv-size 1048576 # option Transport.ib-verbs.work-request-recv-count option Transport.ib-verbs.remote-port 24016 option Remote-subvolume Brick # Name of the remote volume # O Ption Transport-timeout # Default value is 120seconds end-volume volume client1 type protocol/client opt Ion Transport-type TCP # for TCP/IP transport # option Transport-type IB-SDP # for InfiniBand transport option Remo Te-host 192.168.2.222 # IP address of the Remote brick option transport.socket.remote-port 24016 # option Transport-type ib-verbs # for InfiniBand verbs transport # option transport.ib-verbs.work-request-send-size 1048576 # option Transport.ib-verbs.work-request-send-count opt Ion transport.ib-verbs.work-request-recv-size 1048576 # option Transport.ib-verbs.work-request-recv-count option Transport.ib-verbs.remote-port 24016 option Remote-subvolume Brick # Name of the remote Volume # option Transpor T-timeout # Default value is 120seconds end-volume volume client2 type protocol/client option transport- Type TCP # for TCP/IP transport # option Transport-type IB-SDP # for InfiniBand transport option Remote-host 192.16 8.2.98 # IP Address of the remote brick option transport.socket.remote-port 24016 # option Transport-type ib-verbs # for InfiniBand verbs transport # option transport.ib-verbs.work-request-send-size 1048576 # option TRANSPORT.IB-VERBS.W Ork-request-send-count 16 #Option transport.ib-verbs.work-request-recv-size 1048576 # option Transport.ib-verbs.work-request-recv-count 16 # Option transport.ib-verbs.remote-port 24016 option Remote-subvolume Brick # Name of the remote Volume # option t Ransport-timeout # Default value is 120seconds end-volume volume unify type cluster/distribute subvolumes cl

 Ient0 client1 Client2 End-volume

the command to start the client is: glusterfs-l/etc/glusterfs/glusterfs.log-f/etc/glusterfs/protocol-client.vol/mnt


after startup, you can check the/etc/glusterfs/glusterfs.log file to view the log. You can also view it with the Df-h command, which represents success
Glusterfs#/etc/glusterfs/protocol-client.vol
654G 133G 487G 22%/mnt


because Glusterfs uses fuse, the Distributed file system is used just like a local directory.
If you don't believe it, do it:
ls/mnt cp/etc/glusterfs/protocol-client.vol/mnt
ls/mnt


I wish you all a happy work.

In the process of configuration if there are any problems, you can also refer to

Http://hi.baidu.com/farmerluo/blog/category/Glusterfs

The introduction is quite detailed.






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.