diff options
author | Martin Schwenke <martin@meltin.net> | 2014-12-09 13:47:42 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2015-02-13 07:19:07 +0100 |
commit | d110fe231849d76ecb83378c934627dc64b74c72 (patch) | |
tree | 80f375abddf3d5506436e20046662078aba12ab0 /ctdb/doc | |
parent | a01744c08ff5b8aca4af99842acfc78a87af9297 (diff) | |
download | samba-d110fe231849d76ecb83378c934627dc64b74c72.tar.gz |
ctdb-daemon: Mark tunable VerifyRecoveryLock as obsolete
It is pointless having a recovery lock but not sanity checking that it
is working. Also, the logic that uses this tunable is confusing. In
some places the recovery lock is released unnecessarily because the
tunable isn't set.
Simplify the logic by assuming that if a recovery lock is specified
then it should be verified.
Update documentation that references this tunable.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/doc')
-rw-r--r-- | ctdb/doc/ctdb-tunables.7.xml | 9 | ||||
-rw-r--r-- | ctdb/doc/ctdb.1.xml | 34 |
2 files changed, 27 insertions, 16 deletions
diff --git a/ctdb/doc/ctdb-tunables.7.xml b/ctdb/doc/ctdb-tunables.7.xml index 456e856355c..b029fdb75a8 100644 --- a/ctdb/doc/ctdb-tunables.7.xml +++ b/ctdb/doc/ctdb-tunables.7.xml @@ -448,15 +448,6 @@ </refsect2> <refsect2> - <title>VerifyRecoveryLock</title> - <para>Default: 1</para> - <para> - Should we take a fcntl() lock on the reclock file to verify that we are the - sole recovery master node on the cluster or not. - </para> - </refsect2> - - <refsect2> <title>VacuumInterval</title> <para>Default: 10</para> <para> diff --git a/ctdb/doc/ctdb.1.xml b/ctdb/doc/ctdb.1.xml index 07df43bd761..1a1ae40fbec 100644 --- a/ctdb/doc/ctdb.1.xml +++ b/ctdb/doc/ctdb.1.xml @@ -682,7 +682,6 @@ RecdFailCount = 10 LogLatencyMs = 0 RecLockLatencyMs = 1000 RecoveryDropAllIPs = 120 -VerifyRecoveryLock = 1 VacuumInterval = 10 VacuumMaxRunTime = 30 RepackLimit = 10000 @@ -883,30 +882,51 @@ DB Statistics: locking.tdb <refsect2> <title>getreclock</title> <para> - This command is used to show the filename of the reclock file that is used. + Show the name of the recovery lock file, if any. </para> <para> Example output: </para> <screen> - Reclock file:/gpfs/.ctdb/shared + Reclock file:/clusterfs/.ctdb/recovery.lock </screen> </refsect2> <refsect2> - <title>setreclock [filename]</title> + <title> + setreclock <optional><parameter>FILE</parameter></optional> + </title> + <para> - This command is used to modify, or clear, the file that is used as the reclock file at runtime. When this command is used, the reclock file checks are disabled. To re-enable the checks the administrator needs to activate the "VerifyRecoveryLock" tunable using "ctdb setvar". + FILE specifies the name of the recovery lock file. If the + recovery lock file is changed at run-time then this will cause + a recovery, which in turn causes the recovery lock to be + retaken. </para> <para> - If run with no parameter this will remove the reclock file completely. If run with a parameter the parameter specifies the new filename to use for the recovery lock. + If no FILE is specified then a recovery lock file will no + longer be used. </para> <para> - This command only affects the runtime settings of a ctdb node and will be lost when ctdb is restarted. For persistent changes to the reclock file setting you must edit /etc/sysconfig/ctdb. + This command only affects the run-time setting of a single + CTDB node. This setting <emphasis>must</emphasis> be changed + on all nodes simultaneously by specifying <option>-n + all</option> (or similar). For information about configuring + the recovery lock file please see the + <citetitle>CTDB_RECOVERY_LOCK</citetitle> entry in + <citerefentry><refentrytitle>ctdbd.conf</refentrytitle> + <manvolnum>5</manvolnum></citerefentry> and the + <citetitle>--reclock</citetitle> entry in + <citerefentry><refentrytitle>ctdbd</refentrytitle> + <manvolnum>1</manvolnum></citerefentry>. For information + about the recovery lock please see the <citetitle>RECOVERY + LOCK</citetitle> section in + <citerefentry><refentrytitle>ctdb</refentrytitle> + <manvolnum>7</manvolnum></citerefentry>. </para> </refsect2> |