集群文件系统:GlusterFS部署实录
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了集群文件系统:GlusterFS部署实录相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# yum install -y centos-release-gluster [[email protected] ~]# yum install -y glusterfs-server [[email protected] ~]# /etc/init.d/glusterd start Starting glusterd: [ OK ] [[email protected] ~]# netstat -tunlp|grep gluster tcp 0 0 0.0.0.0:24007 0.0.0.0:* LISTEN 2054/glusterd
[[email protected] ~]# gluster peer probe king02 peer probe: success. [[email protected] ~]# gluster peer status Number of Peers: 1 Hostname: 192.168.1.202 Uuid: d1ad7030-a994-4cc2-aac5-2d5e7a190070 State: Peer in Cluster (Connected)
[[email protected] ~]# mkdir -p /usr/local/tomcat7 [[email protected] ~]# gluster volume create tomcat-volume replica 2 king01:/usr/local/tomcat7 king02:/usr/local/tomcat7 volume create: tomcat-volume: success: please start the volume to access data [[email protected] ~]# gluster volume start tomcat-volume volume start: tomcat-volume: success
[[email protected] ~]# 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: king01:/usr/local/tomcat7 Brick2: king02:/usr/local/tomcat7 Options Reconfigured: transport.address-family: inet performance.readdir-ahead: on nfs.disable: on
以上是关于集群文件系统:GlusterFS部署实录的主要内容,如果未能解决你的问题,请参考以下文章