2023-07-25 04:42:32 +03:00
<?xml version="1.0" encoding="UTF-8"?>
2016-12-01 16:22:45 +03:00
< !DOCTYPE refentry
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<refentry id= "ctdb_mutex_ceph_rados_helper.7" >
<refmeta >
<refentrytitle > Ceph RADOS Mutex</refentrytitle>
<manvolnum > 7</manvolnum>
<refmiscinfo class= "source" > ctdb</refmiscinfo>
<refmiscinfo class= "manual" > CTDB - clustered TDB database</refmiscinfo>
</refmeta>
<refnamediv >
<refname > ctdb_mutex_ceph_rados_helper</refname>
<refpurpose > Ceph RADOS cluster mutex helper</refpurpose>
</refnamediv>
<refsect1 >
<title > DESCRIPTION</title>
<para >
2022-01-10 11:18:14 +03:00
ctdb_mutex_ceph_rados_helper can be used as a cluster lock provider
2016-12-01 16:22:45 +03:00
for CTDB. When configured, split brain avoidance during CTDB recovery
will be handled using locks against an object located in a Ceph RADOS
pool.
2018-04-21 11:12:53 +03:00
To enable this functionality, include the following line in the
<literal > [cluster]</literal> section of
<citerefentry > <refentrytitle > ctdb.conf</refentrytitle>
<manvolnum > 5</manvolnum> </citerefentry> :
2016-12-01 16:22:45 +03:00
</para>
<screen format= "linespecific" >
2024-06-07 12:10:07 +03:00
cluster lock = !ctdb_mutex_ceph_rados_helper [Cluster] [User] [Pool] [Object] [Timeout] [-n Namespace]
2016-12-01 16:22:45 +03:00
Cluster: Ceph cluster name (e.g. ceph)
User: Ceph cluster user name (e.g. client.admin)
Pool: Ceph RADOS pool name
Object: Ceph RADOS object name
2024-06-07 12:10:07 +03:00
Timeout: Ceph RADOS lock duration in seconds (optional)
Namespace: Ceph RADOS pool namespace (optional)
2016-12-01 16:22:45 +03:00
</screen>
<para >
The Ceph cluster <parameter > Cluster</parameter> must be up and running,
with a configuration, and keyring file for <parameter > User</parameter>
located in a librados default search path (e.g. /etc/ceph/).
<parameter > Pool</parameter> must already exist.
</para>
2020-09-23 00:53:58 +03:00
<para >
For informational purposes, ctdb_mutex_ceph_rados_helper will also
2022-01-10 11:18:14 +03:00
register the cluster lock holder in Ceph Manager's service map.
2020-09-23 00:53:58 +03:00
</para>
2016-12-01 16:22:45 +03:00
</refsect1>
<refsect1 >
<title > SEE ALSO</title>
<para >
<citerefentry > <refentrytitle > ctdb</refentrytitle>
<manvolnum > 7</manvolnum> </citerefentry> ,
<citerefentry > <refentrytitle > ctdbd</refentrytitle>
<manvolnum > 1</manvolnum> </citerefentry> ,
<ulink url= "http://ctdb.samba.org/" />
</para>
</refsect1>
<refentryinfo >
<author >
<contrib >
This documentation was written by David Disseldorp
</contrib>
</author>
<copyright >
<year > 2016</year>
<holder > David Disseldorp</holder>
</copyright>
<legalnotice >
<para >
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of
the License, or (at your option) any later version.
</para>
<para >
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
</para>
<para >
You should have received a copy of the GNU General Public
License along with this program; if not, see
<ulink url= "http://www.gnu.org/licenses" /> .
</para>
</legalnotice>
</refentryinfo>
</refentry>