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/
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
Full storage OS stack (complete Storage Operating system stack)Glusterfs not only provides a distributed file system, but also provides many other important distributed functions, such as distributed memory management, I/O scheduling, soft raid, and self-healing. Glusterfs draws lessons from the micro-kernel architecture, draws on the design idea of gnu/hurd operating system, and realizes the complete stor
/server2.example.com:
Glusterfs is available as a package for Ubuntu 9.10, therefore we can install it as follows:
Aptitude install glusterfs-Server
The command
Glusterfs -- version
Shocould now show the glusterfs version that yo
############################################ Network Architecture ########################################Two servers M1 M2M1 is Glusterfs master server, IP is 192.168.1.138M2 for Glusterfs hot standby server, IP is 192.168.1.139M1 is also the client clients(i) IP settingsSlightly######################################## # # # Service Environment Installation # # ########################################(i) F
GlusterFSGlusterfs is an open-source, scale-out file system. These examples provide information about how to allow containers to use glusterfs volumes.The example assumes that you have set up the Glusterfs server cluster and is ready to use the running Glusterfs volume in the container.PrerequisiteThe Kubernetes cluster has been built.Installation of the
-L$(GLFS_LIB) -lglusterfs -lpthread$(TARGET): $(OBJECTS) $(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -o $(TARGET)install: $(TARGET) cp $(TARGET) $(GLFS_LIB)/glusterfs/$(GLFS_VERS)/xlator/nullclean: rm -f $(TARGET) $(OBJECTS)
Set makefile to a compilation environment that matches your own, and then directly make to generate the null. So dynamic library. make
[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
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: glu
Use GlusterFS to create a shared file system between two servers
The problem is that you want to make the files in a directory of the two servers consistent. I have read a method, such as using Rsync to synchronize directories and NFS shared directories. The following describes how to use GlusterFS. I have created several CentOS 7 virtual machines locally.
Virtual Machine
Balancer: 192.168.33.60
Web1: 19
XfsprogsOfficial documentation Quick Configuration stepsInstalling GlusterFS-a Quick Start guidepurpose of ThisDocumentthis Document isIntended to give, step by step guide, setting up GlusterFS forThe first time. For ThisTutorial, we'll assume you isusingFedora +(or later)VirtualMachines (Other distributions and methods can be foundinchTheNewUser Guide, below. We Also DoNot explain the stepsinchDetail here,
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
.el6Error:package:glusterfs-server-3.4.7-1.el6.x86_64 (Glusterfs)Requires:glusterfs = 3.4.7-1.el6Available:glusterfs-3.4.7-1.el6.x86_64 (Glusterfs)Glusterfs = 3.4.7-1.el6Installing:glusterfs-3.7.5-19.el6.x86_64 (Base)Glusterfs = 3.7.5-19.el6You could try using--skip-broken to work around the problemYou could try Runnin
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.