Navigation : Top/Linux/GlusterFS

GlusterFS

概要

汎用分散ファイルシステム

  • 分類

構築

インストール

  • apt-get or yumで入れる。
    • apt-get install glusterfs-server
    • apt-get install glusterfs-geo-replication
  • nfsdも必要
  • glusterdを走らせればOK

サーバー側 (gluster01)

  • gluster02〜gluster03の各ノードをpeer登録
    # gluster peer probe gluster02
    # gluster peer probe gluster03
    # gluster peer probe gluster04
  • check
    # gluster peer status
  • ボリュームの作成
    • Distributed Volume「vol01」を作成
      # gluster vol create vol01 \
         gluster01:/data/data01 \
         gluster02:/data/data01 \
         gluster03:/data/data01 \
         gluster04:/data/data01
  • Start
    # gluster vol start vol01
  • ボリュームの構成情報を確認
    # gluster vol info
  • ボリュームの起動状況を確認
    # gluster vol status

クライアントからの接続

  • glusterfsのクライアント用パッケージを導入
    • apt-get install glusterfs
    • apt-get install glusterfs-fuse
  • /etc/hostsにエントリを追加
    192.168.1.1    client01
    192.168.2.1    gluster01
  • Mount
    # mkdir /mnt/vol01
    # mount -t nfs -o vers=3 gluster01:/vol01 /mnt/vol01
  • autofsでも利用可

運用

コマンド例

  • gluster vol info
  • gluster vol status

Link