[Samba] ctdb + gluster9 = not working
Martin Schwenke
martin at meltin.net
Sat Dec 28 23:25:36 UTC 2024
Hi Anton,
On Fri, 27 Dec 2024 20:04:07 +0500, Anton Shevtsov via samba
<samba at lists.samba.org> wrote:
> Hi, i tried make a samba cluster (ctdb) with gluster9 (do not use vfs
> module)
>
> But i get an errors.
>
> [root at samba1 ctdb]# rpm -q samba samba-ctdb
> samba-4.19.9-alt3.x86_64
> samba-ctdb-4.19.9-alt3.x86_64
>
> [root at samba1 ctdb]# grep -v '^#' /etc/ctdb/ctdb.conf
> [cluster]
> recovery lock = "/mnt/gluster/ctdb/.ctdb.lock"
[...]
> дек 27 19:46:54 samba1 systemd[1]: Starting CTDB...
> дек 27 19:46:54 samba1 ctdbd[25430]: CTDB logging to location
> file:/var/log/log.ctdb
> дек 27 19:46:54 samba1 systemd[1]: Started CTDB.
>
> [root at samba1 ctdb]# tail -f /var/log/log.ctdb
> [...]
> 2024-12-27T19:47:24.597406+05:00 samba1 ctdb-recoverd[25443]: Start election
> 2024-12-27T19:47:24.598139+05:00 samba1 ctdb-recoverd[25443]: Attempting to take cluster lock ("/mnt/gluster/ctdb/.ctdb.lock")
> 2024-12-27T19:47:24.611930+05:00 samba1 ctdbd[25431]: ctdb_mutex_fcntl_helper: Unable to open "/mnt/gluster/ctdb/.ctdb.lock" - (No such file or directory)
> 2024-12-27T19:47:24.612311+05:00 samba1 ctdb-recoverd[25443]: Unable to take cluster lock - unknown error
> [...]
> Why?
Good question! This took me a few guesses... because it certainly isn't
obvious! :-)
You don't need the double-quotes around the recovery lock setting.
They are not inserted by the log messages, so must be maintained from
ctdb.conf and not stripped. Samba (and CTDB) log files can handle
values containing whitespace, so quoting isn't required.
If your Linux distribution included the quotes in the sample
configuration file then you should report a bug because the example is
misleading. If not, you're just unlucky because you did something sane
but it didn't work.
peace & happiness,
martin
More information about the samba
mailing list