glusterfs3
気を取り直して、glusterfs3のインストールと設定をする。
参考
http://www.insaneworks.co.jp/kota/glusterfs%E3%81%A7%E3%82%AF%E3%83%A9%E3%82%B9%E3%82%BFfs%E3%82%92%E4%BD%9C%E3%82%8B
http://nkjmkzk.net/?p=1691
http://dai_yamashita.bitbucket.org/glusterfs_ja/Configuring_Distributed_Replicated_Volumes.html
インストール
依存package
$ sudo rpm -Uvh http://pkgs.repoforge.org/rsync/rsync-3.0.8-1.el5.rfx.x86_64.rpm
$ sudo yum -y install python-ctypeslibreadlineの依存エラー
libreadline.so.5.()(64bit) is needed by glusterfs-core-3.2.3-1.x86_64
libreadline.so.6はあるので、--nodepsでインストールさせるlibreadline.so.6.0 の symlink として libreadline.so.5 を作成する
$ cd /lib64
$ sudo ln -s libreadline.so.6.0 libreadline.so.5install
$ sudo rpm --nodeps -ivh \
http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-core-3.2.3-1.x86_64.rpm \
http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-fuse-3.2.3-1.x86_64.rpm \
http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-geo-replication-3.2.3-1.x86_64.rpm \
http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-rdma-3.2.3-1.x86_64.rpm \
http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-debuginfo-3.2.3-1.x86_64.rpm
とりあえず起動とdaemon設定
$ sudo /etc/init.d/glusterd start
$ sudo chkconfig glusterd on
24007ポートを開ける
glusterコマンド
$ sudo gluster peer status
No peers present
$ sudo gluster peer probe ip-xxx-xxx-xxx-xxx
Probe successful$ sudo gluster peer status
Number of Peers: 1Hostname: ip-xxx-xxx-xxx-xxx
Uuid: 00000000-0000-0000-0000-000000000000
State: Establishing Connection (Connected)volume作成
$ sudo mkdir /export
$ sudo gluster volume create nginx replica 2 transport tcp ip-10-xxx-xxx-aaa.ap-northeast-1.compute.internal:/export ip-10-xxx-xxx-aaa.ap-northeast-1.compute.internal:/export
Creation of volume nginx has been successful. Please start the volume to access data.
$ sudo gluster volume start nginx
Starting volume nginx has been successful
$ sudo gluster volume set nginx auth.allow 10.*
Set volume successful
- 作者: アンドリュー・S.タネンバウム,マールテン・ファンスティーン,Andrew S. Tanenbaum,Maarten van Steen,水野忠則,東野輝夫,宮西洋太郎,鈴木健二,西山智,佐藤文明
- 出版社/メーカー: ピアソンエデュケーション
- 発売日: 2003/10
- メディア: 単行本
- クリック: 25回
- この商品を含むブログ (20件) を見る