Linux fs分布式存储,【Linux】开源分布式存储系统:GlusterFS

https://www.gluster.org

750cbf719ce91cb72424189dc3abf6da.png服务端

[root@wallet01 ~]# yum install -y centos-release-gluster

[root@wallet01 ~]# yum install -y glusterfs-server

[root@wallet01 ~]# /etc/init.d/glusterd start

Starting glusterd:                                         [  OK  ]

[root@wallet01 ~]# netstat -tunlp|grep gluster

tcp        0      0 0.0.0.0:24007               0.0.0.0:*                   LISTEN      2054/glusterd

[root@wallet02 ~]# yum install -y centos-release-gluster

[root@wallet02 ~]# yum install -y glusterfs-server

[root@wallet02 ~]# /etc/init.d/glusterd start

Starting glusterd:                                         [  OK  ]

[root@wallet02 ~]# netstat -tunlp|grep gluster

tcp        0      0 0.0.0.0:24007               0.0.0.0:*                   LISTEN      2038/glusterd

[root@wallet02 ~]# mkdir -p /usr/local/tomcat7

[root@wallet01 ~]# gluster peer probe wallet02

peer probe: success.

[root@wallet01 ~]# gluster peer status

Number of Peers: 1

Hostname: 192.168.1.202

Uuid: d1ad7030-a994-4cc2-aac5-2d5e7a190070

State: Peer in Cluster (Connected)

[root@wallet01 ~]# mkdir -p /usr/local/tomcat7

[root@wallet01 ~]# gluster volume create tomcat-volume replica 2 wallet01:/usr/local/tomcat7 wallet02:/usr/local/tomcat7

volume create: tomcat-volume: success: please start the volume to access data

[root@wallet01 ~]# gluster volume start tomcat-volume

volume start: tomcat-volume: success

[root@wallet01 ~]# gluster volume info tomcat-volume

Volume Name: tomcat-volume

Type: Replicate

Volume ID: 694ee9c4-f934-472c-8978-d9dd0b2aae07

Status: Started

Snapshot Count: 0

Number of Bricks: 1 x 2 = 2

Transport-type: tcp

Bricks:

Brick1: wallet01:/usr/local/tomcat7

Brick2: wallet02:/usr/local/tomcat7

Options Reconfigured:

transport.address-family: inet

performance.readdir-ahead: on

nfs.disable: on

客户端

[root@wallet03 ~]# yum install -y centos-release-gluster

[root@wallet03 ~]# yum install -y glusterfs glusterfs-fuse

[root@wallet03 ~]# mount -t glusterfs wallet01:/tomcat-volume /usr/local/tomcat7

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值