1.安装fuse

yum install fuse fuse-devel

2.加载fuse模块

modprobe fuse

3.创建mfs用户

useradd mfs -s /sbin/nologin

4.下载mfs客户端源码包,对应mfs集群版本

解压编译

./configure --prefix=/opt/app/mfs --with-default-user=mfs --with-default-group=mfs --enable-mfsmount

make && make install

5.修改hosts 集群域名对应ip

如:

mfsmaster   10.0.0.1

mfsmeta     10.0.0.2

6.修改/opt/app/mfs/etc/mfs/mfsexports.cfg

这个文件赋权限给需要集群需要共享出去的目录

7.目录挂载

/opt/app/mfs/bin/mfsmount mfsmaster:9421:/test   /data/test

8.写入到/etc/rc.local,开机自动挂载

相关文章:

  • 2021-08-21
  • 2022-01-21
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-07-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-01-29
  • 2021-08-01
  • 2021-12-26
  • 2021-04-15
相关资源
相似解决方案