
Ubuntu 12.04 上の Gluster (3.2.5) を使用して 2 台のサーバー間でミラーを設定しようと 1 日ほど試みていますが、何が間違っているのかわかりません。
2つのVPSの間にOpenVPNトンネルがあります
現在、openvpnインターフェースにはiptablesルールはありません。
次のコマンドを使用して初期ボリュームをセットアップしました。
gluster volume create vmail replica 2 transport tcp gserver1:/var/export/vmail gserver2:/var/export/vmail
次のコマンドを使用してマウントしました:
mount.glusterfs gserver1:/vmail /var/vmail
次のエラーが発生します:
~# df -h
df: `/var/vmail': Transport endpoint is not connected
ブリック ログ ファイルに次のエラーが見つかりました。Google で検索しましたが、正直言って、あまり役に立ちそうなものは見つかりませんでした。
I [glusterfsd.c:1493:main] 0-/usr/sbin/glusterfsd: Started running /usr/sbin/glusterfsd version 3.2.5
W [socket.c:419:__socket_keepalive] 0-socket: failed to set keep idle on socket 8
W [socket.c:1846:socket_server_event_handler] 0-socket.glusterfsd: Failed to set keep-alive: Operation not supported
W [graph.c:291:gf_add_cmdline_options] 0-vmail-server: adding option 'listen-port' for volume 'vmail-server' with value '24009'
W [rpc-transport.c:447:validate_volume_options] 0-tcp.vmail-server: option 'listen-port' is deprecated, preferred is 'transport.socket.listen-port', continuing with correction
C [posix.c:4723:init] 0-vmail-posix: Extended attribute not supported, exiting.
E [xlator.c:1447:xlator_init] 0-vmail-posix: Initialization of volume 'vmail-posix' failed, review your volfile again
E [graph.c:348:glusterfs_graph_init] 0-vmail-posix: initializing translator failed
E [graph.c:526:glusterfs_graph_activate] 0-graph: init failed
W [glusterfsd.c:727:cleanup_and_exit] (-->/usr/lib/libgfrpc.so.0(rpc_clnt_handle_reply+0xa5) [0x7f5c1ebaeec5] (-->/usr/sbin/glusterfsd(mgmt_getspec_cbk+0xc7) [0x7f5c1f246c07] (-->/usr/sbin/glusterfsd(glusterfs_process_volfp+0x192) [0x7f5c1f244b52]))) 0-: received signum (0), shutting down
誰かこれを修正するのを手伝ってくれませんか? 私が欲しいのは、これら 2 つのサーバー間での双方向レプリケーション (HA) だけです。
答え1
アップデートに興味のある方へ:
それ以来、いくつかのテスト仮想ボックスインスタンスでテストを行ってきました。
実際の設定と同じように、2つの間に OpenVPN を設定しました。
Gluster ボリュームを同じ方法で設定しましたが、すべて正常に動作します。
実際の環境で正確な手順を再現しようとしましたが、再現できませんでした。
これは OpenVZ コンテナーのチューニングの問題のようです。別の投稿で見つけた特定のチューニング パラメーターを要求するサポート チケットをいくつか開きました。
そのチューニングが機能するかどうかを確認したら、このスレッドを更新します。
J