February 1, 2015

続: el7 用 samba-vfs-glusterfs の挙動が怪しい

el7 用 samba-vfs-glusterfs の挙動が怪しい の、何となく理由が分かったのでメモっておく。 なお、結論から言うと RHEL7.1 を待ちましょう。

まず始めに el7 系では、以下のような環境を使ってテストしていた。

[root@el7-gluster1 ~]# lsb_release -a
LSB Version:  :core-4.1-amd64:core-4.1-noarch
Distributor ID:  CentOS
Description:  CentOS Linux release 7.0.1406 (Core)
Release:  7.0.1406
Codename:  Core

[root@el7-gluster1 ~]# uname -a
Linux el7-gluster1 3.10.0-123.13.2.el7.x86_64 #1 SMP Thu Dec 18 14:09:13 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@el7-gluster1 ~]# rpm -qa |grep "samba\|gluster" |sort
glusterfs-3.6.1-1.el7.x86_64
glusterfs-api-3.6.1-1.el7.x86_64
glusterfs-cli-3.6.1-1.el7.x86_64
glusterfs-fuse-3.6.1-1.el7.x86_64
glusterfs-libs-3.6.1-1.el7.x86_64
glusterfs-server-3.6.1-1.el7.x86_64
samba-4.1.1-37.el7_0.x86_64
samba-client-4.1.1-37.el7_0.x86_64
samba-common-4.1.1-37.el7_0.x86_64
samba-libs-4.1.1-37.el7_0.x86_64
samba-vfs-glusterfs-4.1.1-37.el7_0.x86_64
samba-winbind-4.1.1-37.el7_0.x86_64
samba-winbind-clients-4.1.1-37.el7_0.x86_64
samba-winbind-modules-4.1.1-37.el7_0.x86_64

glusterfs は http://www.gluster.org/ から持ってきた。しかしながら samba-vfs-glusterfs は OS 付属のもの。

いろいろリビルドしたりしてて気がついたのだけども、もともと OS 付属(RHEL7.0/CentOS7.0)の samba-vfs-glusterfs は、glusterfs-3.4.0.XXrhs.el7.x86_64 (の -devel)を BuildRequires にコンパイルされてる。そんでもってこちらで用意した gluster は、upstream の 3.6 と。そもそもバージョン不一致があった。

そして、el6(samba4.1) で試したときは、gluster も samba も gluster.org から持ってきていたし、el6(samba3.6) は、おそらく RHS が最近 gluster 3.6 ベースになったら、それと同じタイミングであがったのじゃろう、といった塩梅。

el7 で試したときだけ、なんで gluster.org から samba も調達しなかったのかというと、答えは非常に簡単で、el7 用の samba は gluster.org で提供されていないから。これは恐らく samba-vfs-glusterfs が OS 同梱になったから、だろうけど、gluster 側との食い合わせというか、バイナリ作ったときのバージョン環境はよくよく調べてみないと危険ですね、という事か。

で。最近 el7 系も gluster3.6 が出てきているので、次出る RHEL7.1 ではそれ用に samba も調整してあるだろうと踏んで srpm からのリビルド祭りをしたところ、RHEL7.1beta の samba では gluster3.6 でイケることが確認できた。

[root@el7-gluster3 ~]# rpm -qa |grep "samba\|gluster" |sort
glusterfs-3.6.2-1.el7.x86_64
glusterfs-api-3.6.2-1.el7.x86_64
glusterfs-cli-3.6.2-1.el7.x86_64
glusterfs-fuse-3.6.2-1.el7.x86_64
glusterfs-libs-3.6.2-1.el7.x86_64
glusterfs-server-3.6.2-1.el7.x86_64
samba-4.1.12-12.el7.khara.x86_64
samba-client-4.1.12-12.el7.khara.x86_64
samba-common-4.1.12-12.el7.khara.x86_64
samba-libs-4.1.12-12.el7.khara.x86_64
samba-vfs-glusterfs-4.1.12-12.el7.khara.x86_64
samba-winbind-4.1.12-12.el7.khara.x86_64
samba-winbind-clients-4.1.12-12.el7.khara.x86_64
samba-winbind-krb5-locator-4.1.12-12.el7.khara.x86_64
samba-winbind-modules-4.1.12-12.el7.khara.x86_64

これでまともに容量の報告がされるようになった。

© Kazuhisa Hara 2014-2022