Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Glusterfs on CentOS 7 notes

Repos and packages to install.

sudo yum -y --enablerepo=extras install centos-release-gluster ;
sudo yum -y install glusterfs-server

Or just the client packages.

sudo yum -y --enablerepo=extras install centos-release-gluster ;
sudo yum -y install glusterfs-fuse glusterfs

If you encounter this error in the glusterfs log, nominally /var/log/glusterfs/$MNTNAME.log, it means the client version does not match the server version.

[2019-11-08 21:26:53.707738] I [MSGID: 100030] [glusterfsd.c:2646:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.12.2 (args: /usr/sbin/glusterfs --volfile-server=c7-03a --volfile-id=/gv1 /mnt/gv1)
[2019-11-08 21:26:53.814029] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-glusterfs: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction
[2019-11-08 21:26:53.830793] I [MSGID: 101190] [event-epoll.c:676:event_dispatch_epoll_worker] 0-epoll: Started thread with index 0
[2019-11-08 21:26:53.830902] I [MSGID: 101190] [event-epoll.c:676:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2019-11-08 21:26:53.890326] W [MSGID: 101095] [xlator.c:213:xlator_dynload] 0-xlator: /usr/lib64/glusterfs/3.12.2/xlator/features/utime.so: cannot open shared object file: No such file or directory
[2019-11-08 21:26:53.890369] E [MSGID: 101002] [graph.y:213:volume_type] 0-parser: Volume 'gv1-utime', line 61: type 'features/utime' is not valid or not found on this machine
[2019-11-08 21:26:53.890415] E [MSGID: 101019] [graph.y:321:volume_end] 0-parser: "type" not specified for volume gv1-utime
[2019-11-08 21:26:53.899127] E [MSGID: 100026] [glusterfsd.c:2473:glusterfs_process_volfp] 0-: failed to construct the graph
[2019-11-08 21:26:53.899488] W [glusterfsd.c:1462:cleanup_and_exit] (-->/usr/sbin/glusterfs(mgmt_getspec_cbk+0x532) [0x55c73804bb02] -->/usr/sbin/glusterfs(glusterfs_process_volfp+0x193) [0x55c738045633] -->/usr/sbin/glusterfs(cleanup_and_exit+0x6b) [0x55c738044b2b] ) 0-: received signum (-1), shutting down
[2019-11-08 21:26:53.899536] I [fuse-bridge.c:6611:fini] 0-fuse: Unmounting '/mnt/gv1'.
[2019-11-08 21:26:53.908659] I [fuse-bridge.c:6616:fini] 0-fuse: Closing fuse connection to '/mnt/gv1'.
[2019-11-08 21:26:53.908857] W [glusterfsd.c:1462:cleanup_and_exit] (-->/lib64/libpthread.so.0(+0x7e65) [0x7f9f96227e65] -->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xe5) [0x55c738044cc5] -->/usr/sbin/glusterfs(cleanup_and_exit+0x6b) [0x55c738044b2b] ) 0-: received signum (15), shutting down

To fix, use the same client version.

Comments