<form id="hz9zz"></form>
  • <form id="hz9zz"></form>

      <nobr id="hz9zz"></nobr>

      <form id="hz9zz"></form>

    1. 明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

      CentOS 6.4怎么安裝及設置GlusterFS

      [摘要]GlusterFS因有很好的擴展性,使用的用戶很多,使用GlusterFS能夠解決網絡存儲、冗余備份等問題,那么在Linux下要如何安裝GlusterFS呢?今天小編以CentOS6.4為例,給大家...

        GlusterFS因有很好的擴展性,使用的用戶很多,使用GlusterFS能夠解決網絡存儲、冗余備份等問題,那么在Linux下要如何安裝GlusterFS呢?今天小編以CentOS6.4為例,給大家介紹下CentOS6.4安裝配置GlusterFS的方法。

      CentOS 6.4如何安裝及設置GlusterFS

        環境介紹:

        OS: CentOS 6.4 x86_64 Minimal

        Servers: sc2-log1,sc2-log2,sc2-log3,sc2-log4

        Client: sc2-ads15

        具體步驟:

        1. 在sc2-log{1-4}上安裝GlusterFS軟件包:

        代碼如下

        # wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo

        # yum install -y glusterfs-3.4.2-1.el6 glusterfs-server-3.4.2-1.el6 glusterfs-fuse-3.4.2-1.el6

        # /etc/init.d/glusterd start

        # chkconfig glusterfsd on

        2. 在sc2-log1上配置整個GlusterFS集群:

        代碼如下

       。踨oot@sc2-log1 ~]# gluster peer probe sc2-log1

        1 peer probe: success: on localhost not needed

        [root@sc2-log1 ~]# gluster peer probe sc2-log2

        1 peer probe: success

       。踨oot@sc2-log1 ~]# gluster peer probe sc2-log3

        1 peer probe: success

       。踨oot@sc2-log1 ~]# gluster peer probe sc2-log4

        1 peer probe: success

       。踨oot@sc2-log1 ~]# gluster peer status

        01 Number of Peers: 3

        02

        03 Hostname: sc2-log2

        04 Port: 24007

        05 Uuid: 399973af-bae9-4326-9cbd-b5b05e5d2927

        06 State: Peer in Cluster (Connected)

        07

        08 Hostname: sc2-log3

        09 Port: 24007

        10 Uuid: 833a7b8d-e3b3-4099-baf9-416ee7213337

        11 State: Peer in Cluster (Connected)

        12

        13 Hostname: sc2-log4

        14 Port: 24007

        15 Uuid: 54bf115a-0119-4021-af80-7a6bca137fd9

        16 State: Peer in Cluster (Connected)

        3. 在sc2-log{1-4}上創建數據存放目錄:

        代碼如下

        # mkdir -p /usr/local/share/{models,geoip,wurfl}

        # ls -l /usr/local/share/

        1 total 24

        2 drwxr-xr-x 2 root root 4096 Apr 1 12:19 geoip

        3 drwxr-xr-x 2 root root 4096 Apr 1 12:19 models

        4 drwxr-xr-x 2 root root 4096 Apr 1 12:19 wurfl


      Linux是一套免費使用和自由傳播的類Unix操作系統




      日韩精品一区二区三区高清