GlusterFS has a lot of users and can use GlusterFS to solve problems such as network storage and redundant backup. How to install GlusterFS under Linux? Today, Xiaobian uses CentOS6.4 as an example to introduce the method of installing and configuring GlusterFS on CentOS6.4.
Environment Introduction:
OS: CentOS 6.4 x86_64 Minimal
Servers: sc2-log1, sc2-log2, sc2-log3, sc2-log4
Client: sc2-ads15
Specific steps:
1. Install the GlusterFS package on sc2-log{1-4}:
The code is as follows
>
# wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo
# yum install -y glusterfs-3.4.2-1.el6 glusterfs-server-3.4.2-1.el6 glusterfs-fuse-3.4.2-1.el6
# /etc/init.d/glusterd start< Br>
# chkconfig glusterfsd on
2. Configure the entire GlusterFS cluster on sc2-log1:
The code is as follows
[root@sc2-log1 ~]# Gluster peer probe sc2-log1
1 peer probe: success: on localhost not needed
[root@sc2-log1 ~]# gluster peer probe sc2-log2
1 Peer probe: success
[root@sc2-log1 ~]# gluster peer probe sc2-log3
1 peer probe: success
[root@sc2-log1 ~]# gluster peer probe sc2-log4
1 peer probe: success
[root@sc2-log1 ~ ]# gluster peer status
01 Number of Peers: 3
02
03 Hostname: sc2-log2
04 Port: 24007
05 Uuid: 399973af-bae9-4326-9cbd-b5b05e5d2927
06 State: Peer in Cluster (Connected)
07
08 Hostname: sc2-log3
09 Port: 24007
10 Uuid: 833a7b8d-e3b3-4099-baf9-416ee7213337
11 State: Peer in Cluster (Connected)
12
13 Hostname: sc2-log4
14 Port: 24007
15 Uuid: 54bf115a-0119-4021-af80-7a6bca137fd9
16 State: Peer in Cluster (Connected)
3. Create a data storage directory on sc2-log{1-4}:
The code is as follows
# mkdir -p /usr/local/share /{models,geoip,wurfl}
# ls -l /u Sr/local/share/
1 total 24
2 drwxr-xr-x 2 root root 4096 Apr 1 12:19 geoip
3 drwxr-xr-x 2 Root root 4096 Apr 1 12:19 models
4 drwxr-xr-x 2 root root 4096 Apr 1 12:19 wurfl
Previous123Next page Total 3 pages
In Linux, commands can be used to form dialog boxes. The dialog box formed by Linux command line is
The Ubuntu system cannot mount the USB flash drive. The error is: mount: unknown fi
The fork() function is a fork function. An existing process can call the fork() fun
texmaker is an editing tool with a latex editing environment, and after installing texlive, how to i
Detailed examples of the use of rz commands under Linux
How to create a video DVD in a Linux desktop environment
Ubuntu disables the shutdown confirmation box step
How to solve the problem that Centos can't start
Linux changes the capacity of VirtualBox disk
How to configure and install Node.js in Ubuntu development environment
How can Ubuntu users not use the sudo command?
Essential skills for Linux end users
What should I do if the Linux system Git cannot exit completely (exit code 128 or 1)?
How to install Nvidia Quadro graphics driver for Ubuntu system
Linux to increase the resolution of VirtualBox
Under the CentOS pure-ftpd server error 530 login authentication how to do?
How to open the auto play function of win7 computer?
What changes will Windows 7 bring to users and the market?
System automatic upgrade win10 is how to solve the automatic update win10 shutdown method
How does the Win7 system clear the right mouse button?
What should I do if the desktop screen flickers? How to respond to Win7 computer screen flashing
How to turn off the built-in network mapping function of Win7 system
How to solve WIN7 below IE8 no response to force step
Teach you a trick Solve the problem of the drive letter disappeared under XP system