
나는 하루 정도 우분투 12.04에서 Gluster(3.2.5)를 사용하여 2개의 서버에 미러를 설정하려고 시도했지만 내가 뭘 잘못하고 있는지 알 수 없습니다.
두 VPN 사이에 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
내가 검색한 브릭 로그 파일에 다음 오류가 표시되지만 솔직히 말해서 매우 유용해 보이는 항목을 찾을 수 없습니다.
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
누군가 이 문제를 해결하도록 도와줄 수 있나요? 내가 원하는 것은 이 두 서버에 걸친 양방향 복제(HA)입니다.
답변1
업데이트에 관심이 있는 사람:
이후 몇 가지 테스트 가상 박스 인스턴스에 대해 몇 가지 테스트를 수행했습니다.
실제 설정과 동일하게 둘 사이에 OpenVPN을 설정했습니다.
동일한 방식으로 Gluster 볼륨을 설정했는데 모두 작동합니다.
실제 환경에서 정확한 단계를 복제하려고 시도했지만 그렇지 않았습니다.
이는 OpenVZ 컨테이너의 튜닝 문제인 것 같습니다. 다른 게시물에서 찾은 특정 튜닝 매개변수를 요청하는 지원 티켓 두 개를 열었습니다.
해당 튜닝이 작동하는지 여부를 확인한 후 이 스레드를 업데이트하겠습니다.
제이