Navigation : Top/Linux/GlusterFS

  • 追加された行はこの色です。
  • 削除された行はこの色です。
* 概要 [#z6495163]

[[汎用分散ファイルシステム:http://ja.wikipedia.org/wiki/GlusterFS]]
- 分類
-- 


* 構築 [#h9295e8e]
** インストール [#cf45a19a]
apt-get or yumで入れる。
glusterdを走らせればOK
- apt-get or yumで入れる。
-- apt-get install glusterfs-server 
-- apt-get install glusterfs-geo-replication
- nfsdも必要
- glusterdを走らせればOK

** サーバー側 (gluster01) [#j37e7530]
- 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

** クライアントからの接続 [#b4b9148b]
- 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でも利用可


* 運用 [#u36764d9]
** コマンド例 [#wfc56ae1]
- gluster vol info
- gluster vol status




* Link [#j268288b]
- http://www.gluster.org/
- http://itpro.nikkeibp.co.jp/article/COLUMN/20130104/447701/
- https://sites.google.com/site/glusterfstech/install