Background Introduction:The project is currently in the file synchronization with Rsync, in the attempt to replace the distributed file system, the use of moosefs, the effect is not satisfactory, after understanding the Glusterfs, decided to try, because it compared with moosefs, feel more simple deployment, At the same time there is no meta-data server features so that it does not have a single point of failure, it feels very good.Environment Introdu
Build GlusterFS in CentOS 7
Lab requirements:
Install GlusterFS on four machines to form a cluster
The client stores docker registry in the file system.
The hard disk space of the four nodes is not integrated into one hard disk space. Each node must be stored in one copy to ensure data security.
Environment Planning
Server
Node1: 192.168.0.165 Host Name: glusterfs1
Node2: 192.168.0.157 Host Name: glust
Environment Introduction:Os:centos 6.4 x86_64 MinimalServers:sc2-log1,sc2-log2,sc2-log3,sc2-log4Client:sc2-ads15
Specific steps:1. Install the Glusterfs package on Sc2-log{1-4}:
The code is as follows
Copy Code
# wget-p/ETC/YUM.REPOS.D Http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo# yum install-y
Network File System NFS and Network File System
What is NFS?
NFS is short for Network File System, that is, Network File System. Its main function is to allow different host systems to share files or directories through a network (generally a LAN. NFS clients (typically application servers, such as web) can be mounted)
I used the redhat6.4.Install Glusterfs Direct Yum# wget-p/ETC/YUM.REPOS.D Http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo Server-side installation:#yum install-y glusterfs glusterfs-server glusterfs
The Glusterfs is a very easy-to-use Distributed file storage system that implements all standard POSIX interfaces and is virtualized with fuse to make the user look like a local disk. So the program wants to switch from the local disk to Glusterfs without having to modify any code, to do a seamless switch. and making multiple computers appear to be using the same hard drive simplifies a lot of logic. If you
[TOC]Environment
Host name
system
IP Address
role
ops-k8s-175
ubuntu16.04
192.168.75.175
K8s-master,glusterfs,heketi
ops-k8s-176
ubuntu16.04
192.168.75.176
K8s-node,glusterfs
ops-k8s-177
ubuntu16.04
192.168.75.177
K8s-node,glusterfs
On the already built Glusterfs server (if you do not know how to build glustefs, please refer to the previous article):Create Bricks:# truncate-s 1gb/srv/disk{1..4}# for i in ' seq 1 4 ';d o mkfs.xfs-i size=512/srv/disk$i;d one# mkdir-p/export/brick{1. .4}Add the following lines to /etc/fstab Auto-mount the The Bricks on system startup:/srv/disk1 /export/brick1 xfs loop,inode64,noatime,nodiratime 0 0/srv/disk2 /export/brick2 xfs loop,ino
For details about the cluster and configuration of the glusterfs file system, see glusterfs practices.
6 servers
1. Single-client Testing
Test 1: copy a file of about GB to glusterfs (all small files, with an average of 1 MB)
Test results: glusterfs: 1.8 m/s. The throughput of the six servers is 3.6 m/s.
Test 2: read
Installing and configuring GlusterFS on CentOS 6.4
I,GlusterFS Overview
GlusterFS is the core of the Scale-Out storage solution Gluster. It is an open-source Distributed File System with powerful horizontal scalability, through expansion, it can support several PB of storage capacity and process thousands of clients. GlusterF
Centos7 build GlusterFS
Lab requirements:
· Four machines are installed with GlusterFS to form a cluster
· The client stores docker registry in the file system
· The hard disk space of the four nodes is not integrated into one hard disk space. Each node must be stored in one copy to ensure data security.
Environment Planning
Server
Node1: 192.168.0.165 Host Name: glusterfs1
Node2: 192.168.0.157 Host Name: g
Glusterfs is an open source Distributed file system that was bought by Red Hat in 2011. It has high scalability, high performance, high availability, scalable elasticity, no meta data server design makes Glusterfs no single point of trouble, For more information, please check the official website: www.gluster.org.
Deployment environment:Os:centos Release 6.5 (Final) x64Server:c1:192.168.242.132c2:192.168.2
Document directory
Fuse installation:
Glusterfs installation:
I. System Requirements
Before installing glusterfs, make sure that your system meets the following minimum requirements:
1. Storage Server
Glusterfs supports most commercial x86-64bit hardware platforms. The storage can be attached directly to raid disks. the SATA, SAS, and FC disks are used as b
A large number of original posts can be seen in the following links, the original author Liu Ei you will continue to update:http://blog.csdn.net/liuaigui/article/details/17331557A link to the current version is provided below:[1] glusterfs cluster file system research [2] building high-performance clustered NAS systems based on open source software [3] A bug about gluster stability[4] Creating a glusterfs d
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.