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

Linux MFS distributed file system

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

Share

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

Master 192.168.1.101

Logserver 192.168.1.102

Storage node 192.168.1.103

Storage node 192.168.1.104

Test client 192.168.1.10

Hostnamectl set-hostname

Su

-build Master server-

# turn off the firewall

Systemctl stop firewalld.service

Yum-y install zlib-devel gcc gcc-c++

# get compressed package

Wget http://123.56.134.27/pub/package/mfs/mfs-1.6.27-5.tar.gz

Useradd mfs-s / sbin/nologin

Tar zxvf mfs-1.6.27-5.tar.gz

Cd mfs-1.6.27/

. / configure\

-- prefix=/usr/local/mfs\

-- with-default-user=mfs\

-- with-default-group=mfs\

-- disable-mfschunkserver\

-- disable-mfsmount

# the above is to turn off node service function and client function

Make-J8 & & make install

Cd / usr/local/mfs/etc/mfs/

Cp mfsmaster.cfg.dist mfsmaster.cfg # main profile

Cp mfsexports.cfg.dist mfsexports.cfg # profile for permission settings

Configuration file for cp mfsmetalogger.cfg.dist mfsmetalogger.cfg # Lo

Cd / usr/local/mfs/var/mfs/

Cp metadata.mfs.empty metadata.mfs # source data file, which needs to be open

/ usr/local/mfs/sbin/mfsmaster start # start the mfs service

Ps-ef | grep mfs

/ usr/local/mfs/sbin/mfsmaster start-s # shut down the mfs service

-build MetaLogger server-

JnxmbCLT66C- Dcc

The default is 24 hours, that is, every other day-download from the metadata server MASTER-a metadata.

When the metadata server shuts down or fails, the matedata.mfs.back file disappears

Then to recover the entire mfs, you need to get the file from the metalogger server.

Please pay special attention to this file, it is associated with the log file one. Rise

To recover the entire corrupted distributed file system.

Useradd mfs-s / sbin/nologin

Yum-y install zlib-devel gcc gcc-c++

# get compressed package

Wget http://123.56.134.27/pub/package/mfs/mfs-1.6.27-5.tar.gz

Tar zxvf mfs-1.6.27-5.tar.gz

Cd mfs-1.6.27/

. / configure\

-- prefix=/usr/local/mfs\

-- with-default-user=mfs\

-- with-default-group=mfs\

-- disable-mfschunkserver\

-- disable-mfsmount

Make-J8 & & make install

Cd / usr/local/mfs/etc/mfs/

Cp mfsmetalogger.cfg.dist mfsmetalogger.cfg

Cd / usr/local/mfs/etc/mfs/

Vim mfsmetalogger.cfg

15 MASTER_HOST = 192.168.1.101

/ usr/local/mfs/sbin/mfsmetalogger start

Ps-ef | grep mfs

-set up storage node chunkserver- Note: the same operation on both machines

Systemctl stop firewalld.service

Setenforce 0

Yum-y install zlib-devel gcc gcc-c++

Useradd mfs-s / sbin/nologin

Wget http://123.56.134.27/pub/package/mfs/mfs-1.6.27-5.tar.gz

Tar zxvf mfs-1.6.27-5.tar.gz

Cd mfs-1.6.27/

. / configure\

-- prefix=/usr/local/mfs\

-- with-default-user=mfs\

-- with-default-group=mfs\

-- disable-mfsmaster\

-- disable-mfsmount

Make-j16 & & make install

Cd / usr/local/mfs/etc/mfs/

Cp mfschunkserver.cfg.dist mfschunkserver.cfg

Cp mfshdd.cfg.dist mfshdd.cfg

Vim mfschunkserver.cfg

12 MASTER_HOST = 192.168.1.101

Vim mfshdd.cfg

6 / data

Mkdir / data

Chown-R mfs:mfs / data/

/ usr/local/mfs/sbin/mfschunkserver start

-client configuration-

Systemctl stop firewalld.service

Setenforce 0

Yum-y install zlib-devel gcc gcc-c++

Wget http://123.56.134.27/pub/package/mfs/fuse-2.9.2.tar.gz

Tar zxvf fuse-2.9.2.tar.gz

Cd fuse-2.9.2/

. / configure

Make & & make install

Vim / etc/profile

Export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PAG_CONFIG_PATH

Source / etc/profile

# # installing mfs client

Useradd mfs-s / sbin/nologin

Wget http://123.56.134.27/pub/package/mfs/mfs-1.6.27-5.tar.gz

Tar zxvf mfs-1.6.27-5.tar.gz

Cd mfs-1.6.27/

. / configure\

-- prefix=/usr/local/mfs\

-- with-default-user=mfs\

-- with-default-group=mfs\

-- disable-mfsmaster\

-- disable-mfschunkserver\

-- enable-mfsmount

Make-J4 & & make install

Mkdir / mnt/mfs

Modprobe fuse

/ usr/local/mfs/bin/mfsmount / mnt/mfs-H 192.168.1.101

Df-hT

Umont / mnt/mfs

# optimize client #

Vim / etc/profile

Export PATH=/usr/local/mfs/bin:$PATH

Source / etc/profile

Mfsgetgoal-r / mnt/mfs/ make a copy

/ mnt/mfs/:

Directories with goal 1: 1

-MASTER-server--- starts monitoring program--

Deploy on master

/ usr/local/mfs/sbin/mfscgiserv

Http://192.168.1.101:9425/ views the monitoring of nodes

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