- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我使用 SSL/TLS 加密的 GlusterFS 存储集群有问题。
我已经在很多方面尝试了好几天。我希望有人能帮助我。
首先,我启用了 GlusterFS 的 SSL 并在每个对等节点中重新启动了 glusterd。
然后,GlusterFS 本地客户端将启用 GlusterFS 卷 afr_vol_1 的 SSL 并将其挂载到/mnt/gluster。
通常情况下,如果我的挂载目录中只有子文件,我可以重复读取或写入。
但是,如果我的挂载目录中的子目录被重复读取或写入一段时间,我的挂载目录就会出错。
在这里,我使用了命令“find”。重现它。
错误信息如下:
find: ‘./gluster’: Transport endpoint is not connected
最后,如果我禁用 SSL 并重新启动 glusterd,一切都会好的。
那么,我的 SSL 配置有什么问题吗?
我的操作系统是 CentOS 7.2。
GlusterFS版本是glusterfs-3.13.1(也试过glusterfs-4.0.0rc1)
OpenSSL版本为OpenSSL 1.0.1e-fips(也试过OpenSSL 1.1.0g)。
我创建了 glusterfs.pem 和 gluster.ca 并将它们复制到其他对等节点:
# cd /etc/ssl/
# sudo openssl genrsa -out glusterfs.key 2048
# sudo openssl req -new -x509 -key glusterfs.key –days 3650 -subj "/CN=glusterfs" -out glusterfs.pem
# cat /etc/ssl/glusterfs.pem > glusterfs.ca
我启用了 GlusterFS 的 SSL 并在每个对等节点中重新启动了 glusterd:
# sudo touch /var/lib/glusterd/secure-access
# systemctl restart glusterd.service
我启用了 GlusterFS 卷 afr_vol_1 的 SSL:
# gluster volume set afr_vol_1 server.ssl on
# gluster volume set afr_vol_1 client.ssl on
# gluster volume set afr_vol_1 auth.ssl-allow '*'
# gluster volume set afr_vol_1 ssl.cipher-list 'ALL'
# gluster volume stop afr_vol_1
# gluster volume start afr_vol_1
GlusterFS 卷 afr_vol_1 由 GlusterFS native 客户端安装在/mnt/gluster 上:
# mount -t glusterfs localhost:/afr_vol_1 /mnt/gluster/
mnt-gluster.log如下:
[2018-03-05 06:18:13.440850] W [rpc-clnt.c:1739:rpc_clnt_submit] 0-afr_vol_1-client-2: error returned while attempting to connect to host:(null), port:0
[2018-03-05 06:18:13.441577] E [socket.c:2167:__socket_read_frag] 0-rpc: wrong MSG-TYPE (20538) received from 192.168.8.99:24007
[2018-03-05 06:18:13.442245] E [rpc-clnt.c:350:saved_frames_unwind] (--> /usr/local/lib/libglusterfs.so.0(_gf_log_callingfn+0x12a)[0x7f1584f4e43a] (--> /usr/local/lib/libgfrpc.so.0(+0xc452)[0x7f1584d1b452] (--> /usr/local/lib/libgfrpc.so.0(+0xc55e)[0x7f1584d1b55e] (--> /usr/local/lib/libgfrpc.so.0(rpc_clnt_connection_cleanup+0x8d)[0x7f1584d1caed] (--> /usr/local/lib/libgfrpc.so.0(+0xe638)[0x7f1584d1d638] ))))) 0-afr_vol_1-client-2: forced unwinding frame type(GF-DUMP) op(DUMP(1)) called at 2018-03-05 06:18:13.441030 (xid=0x505d)
[2018-03-05 06:18:14.454846] W [rpc-clnt.c:1739:rpc_clnt_submit] 0-afr_vol_1-client-1: error returned while attempting to connect to host:(null), port:0
[2018-03-05 06:18:14.455487] E [socket.c:2167:__socket_read_frag] 0-rpc: wrong MSG-TYPE (13199) received from 192.168.8.98:24007
[2018-03-05 06:18:14.456464] E [rpc-clnt.c:350:saved_frames_unwind] (--> /usr/local/lib/libglusterfs.so.0(_gf_log_callingfn+0x12a)[0x7f1584f4e43a] (--> /usr/local/lib/libgfrpc.so.0(+0xc452)[0x7f1584d1b452] (--> /usr/local/lib/libgfrpc.so.0(+0xc55e)[0x7f1584d1b55e] (--> /usr/local/lib/libgfrpc.so.0(rpc_clnt_connection_cleanup+0x8d)[0x7f1584d1caed] (--> /usr/local/lib/libgfrpc.so.0(+0xe638)[0x7f1584d1d638] ))))) 0-afr_vol_1-client-1: forced unwinding frame type(GF-DUMP) op(DUMP(1)) called at 2018-03-05 06:18:14.455147 (xid=0x33ac)
[2018-03-05 06:18:15.043577] W [socket.c:592:__socket_rwv] 0-afr_vol_1-client-1: writev on 192.168.8.98:49152 failed (No data available)
[2018-03-05 06:18:15.043944] E [socket.c:2777:socket_poller] 0-afr_vol_1-client-1: poll error on socket
[2018-03-05 06:18:15.044065] I [MSGID: 114018] [client.c:2227:client_rpc_notify] 0-afr_vol_1-client-1: disconnected from afr_vol_1-client-1. Client process will keep trying to connect to glusterd until brick's port is available
[2018-03-05 06:18:15.044103] W [MSGID: 108001] [afr-common.c:5383:afr_notify] 0-afr_vol_1-replicate-0: Client-quorum is not met
[2018-03-05 06:18:15.044856] E [rpc-clnt.c:350:saved_frames_unwind] (--> /usr/local/lib/libglusterfs.so.0(_gf_log_callingfn+0x12a)[0x7f17d9c7644a] (--> /usr/local/lib/libgfrpc.so.0(+0xc452)[0x7f17d9a43452] (--> /usr/local/lib/libgfrpc.so.0(+0xc55e)[0x7f17d9a4355e] (--> /usr/local/lib/libgfrpc.so.0(rpc_clnt_connection_cleanup+0x8d)[0x7f17d9a44aed] (--> /usr/local/lib/libgfrpc.so.0(+0xe638)[0x7f17d9a45638] ))))) 0-afr_vol_1-client-1: forced unwinding frame type(GlusterFS 3.3) op(RELEASEDIR(42)) called at 2018-03-05 06:18:15.043227 (xid=0x2ddf)
[2018-03-05 06:18:15.045142] E [rpc-clnt.c:350:saved_frames_unwind] (--> /usr/local/lib/libglusterfs.so.0(_gf_log_callingfn+0x12a)[0x7f17d9c7644a] (--> /usr/local/lib/libgfrpc.so.0(+0xc452)[0x7f17d9a43452] (--> /usr/local/lib/libgfrpc.so.0(+0xc55e)[0x7f17d9a4355e] (--> /usr/local/lib/libgfrpc.so.0(rpc_clnt_connection_cleanup+0x8d)[0x7f17d9a44aed] (--> /usr/local/lib/libgfrpc.so.0(+0xe638)[0x7f17d9a45638] ))))) 0-afr_vol_1-client-1: forced unwinding frame type(GlusterFS 3.3) op(RELEASEDIR(42)) called at 2018-03-05 06:18:15.043690 (xid=0x2de0)
[2018-03-05 06:18:15.105207] W [fuse-bridge.c:2922:fuse_readdirp_cbk] 0-glusterfs-fuse: 28837: READDIRP => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.161590] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.161676] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.161730] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28839: LOOKUP() / => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.162301] I [MSGID: 108031] [afr-common.c:2530:afr_local_discovery_cbk] 0-afr_vol_1-replicate-0: selecting local read_child afr_vol_1-client-0
[2018-03-05 06:18:15.163540] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.163619] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.163689] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28840: LOOKUP() / => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.230220] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.230331] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.230454] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28841: LOOKUP() / => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.231788] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.231870] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.231942] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28842: LOOKUP() / => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.295447] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.295537] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.295590] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28843: LOOKUP() / => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.296719] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.296777] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.296820] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28844: LOOKUP() / => -1 (Transport endpoint is not connected)
[2018-03-05 06:18:15.358443] W [MSGID: 108027] [afr-common.c:2255:afr_attempt_readsubvol_set] 0-afr_vol_1-replicate-0: no read subvols for /
[2018-03-05 06:18:15.358538] E [MSGID: 101046] [dht-common.c:1904:dht_revalidate_cbk] 0-afr_vol_1-dht: dict is null
[2018-03-05 06:18:15.358590] W [fuse-bridge.c:896:fuse_attr_cbk] 0-glusterfs-fuse: 28845: LOOKUP() / => -1 (Transport endpoint is not connected)
另一个peer节点的glusterd.log如下:
[2018-03-05 06:18:14.931907] E [socket.c:2777:socket_poller] 0-socket.management: poll error on socket
[2018-03-05 06:18:34.555460] E [socket.c:2785:socket_poller] 0-socket.management: socket_poller 192.168.8.97:49141 failed (Input/output error)
最佳答案
嗯,问题自己解决了...-_-b
如果您通过源代码安装GlusterFS,除非正确修改make configure,否则您会得到与上述相同的错误。
不过,如果你通过rpm安装GlusterFS就可以了!
谢谢。
关于ssl - Mount dir 在使用 SSL/TLS 加密的 GlusterFS 存储集群中出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49106047/
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 12 个月前关闭。 Improve
我已经设置了带有 3+1 个节点的 GlusterFS 小集群。 他们都在同一个局域网上。 有 3 台服务器和 1 台笔记本电脑(通过 Wifi),也是 GlusterFS 节点。 笔记本电脑经常与网
我的kafka使用glusterfs作为存储,当我应用kafka的yaml时,pod一直处于ContainerCreating的状态,然后查看pod的describe。我得到以下错误: Warning
我将一个卷配置为副本 3,现在我想使用仲裁器 1 将其转换为副本 3。 我似乎无法找到任何关于这是否可行或者我是否需要移动数据、销毁卷并重新创建它的信息。 我正在运行 glusterfs 4.1.4
我没有找到任何关于如何显示我的 glusterfs 客户端和服务器版本的信息。我认为这应该很容易。我试过“gluster 版本”,它不能工作。 最佳答案 glusterfs --version 和 g
我正在使用 GlusterFS 3.3.2。两台服务器,每台一块砖。卷是“ARCHIVE80” 我可以在 Server2 上挂载卷;如果我触摸一个新文件,它会出现在 Server1 的砖块内。 但是,
我有一个gluster节点,我确实测试了heketi,它正在使用cli创建卷。 这是我的存储类: kind: StorageClass apiVersion: storage.k8s.io/v1 me
说明 : 无法将新 PVC 绑定(bind)到已包含上一次运行的数据的现有 PV(并且是使用 gluster 存储类动态创建的)。 安装了一个 helm release,它创建了 PVC 并从 Glu
我已经在主客户端服务器上配置了 glusterfs,该服务器复制到从服务器到同一路由,glusterfs 是在两台服务器上使用 root 用户安装的。 ** 在两台服务器中我都有以下用户:** oma
我使用以下链接作为指南在 AWS EC2 的 2 个节点上创建了一个集群和复制的文件系统: http://www.gluster.org/category/aws-en/ 我在 AWS EC2 中使用
我已经在 GCP 服务器上将我的 glusterfs 集群设置为 Striped-Replicated,但是我在将文件复制到已安装的卷以及执行 git 操作(git pull、git clone 等)
我计划设置多个节点以使用 glusterfs 创建分布式复制卷 我使用主(也是唯一)分区上的目录在两个节点上创建了一个 gluster 复制卷。 gluster volume create vol_d
我需要设置一个可以存储PB级文件的数据存储(文件主要是小json,图像和csv文件,但其中一些可以是〜100MB二进制文件)。 我正在研究无主控且无单点故障的分布式数据存储。 我找到了Riak和Glu
我正在尝试在 Amazon Linux ami EC2 实例上安装 GlusterFS。我使用以下命令。 首先,我启用 repo: [root@ip-00-00-0-000 /]# wget -P /
如何从客户端测试 GlusterFS 统计信息?即我已在服务器 A 上安装了一个 GFS 卷,安装点为/mnt/volo1。有什么方法可以测试TPS、I/O读写速度等性能吗?有一个选项可以在 GFS
我有一个 glusterfs 设置有两个节点(Node1 和 Node2)。我看到在两个连接之间建立了连接。问题是当我在 Node1 上创建一些文件夹时,它不会在 Node2 上复制它。如果有人修复了
我在 pod 日志中看到以下错误: , the following error information was pulled from the glusterfs log to help diagno
FailedMount MountVolume.SetUp failed for volume "kubernetes.io/glusterfs/f8c3bcce-42010a80007d-glust
我最近遵循了官方指南在Kubernetes上设置Heketi。一切正常,除了每当我创建小于2GB的驱动器时,它都会自动创建2GB的PV。我找不到有关他行为的任何文档。谁能请我理解这种行为? 最佳答案
我需要为我们的一个 gluster 卷添加更多空间。卷是副本 2,位于 LVM 之上。文件系统是 XFS。当前大小为 4TB,我想调整为 6TB。 LVM 在两个副本服务器上都有足够的空闲 PE。
我是一名优秀的程序员,十分优秀!