Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and use of gluster

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install and use gluster". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install and use gluster.

Prepare at least two nodes

The following actions apply to centos/rhel

If the operation of the command is not specified, the corresponding command should be executed on all nodes

Note: in CentOS6/rehel6, you need to install the xfsprogs package before you can format the XFS file system

Yum install xfsprogs

Format the disk and mount the block

Mkfs.xfs / dev/vdb

Mkdir-p / data/brick1s

Echo'/ dev/vdb / data/brick1 xfs defaults 1 2'> > / etc/fstab

Mount-a & & mount

If there is no related source, configure the yum source first

Cat > / etc/yum.repos.d/gluster-3.11.repo/etc/hosts

Echo '192.168.215.111 gluster-server2' > > / etc/hosts

In gluster-server1

Gluster peer probe gluster-server2

In gluster-server2

Gluster peer probe gluster-server1

View connection status

Gluster peer status

Mkdir-p / data/brick1/gv0

You can execute it on any node:

Gluster volume create gv0 replica 2 gluster-server1:/data/brick1/gv0 gluster-server2:/data/brick1/gv0

Gluster volume start gv0

View volume information: gluster volume info

At this point, I believe you have a deeper understanding of "the installation and use of gluster". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report