2008-10-08 16:50:13 +04:00
.TH CLVMD 8 "LVM TOOLS #VERSION#" "Red Hat Inc" \" -*- nroff -*-
2015-09-23 12:28:54 +03:00
.
2004-08-23 12:42:53 +04:00
.SH NAME
2015-09-23 12:28:54 +03:00
.
2014-06-11 13:06:30 +04:00
clvmd \(em cluster LVM daemon
2015-09-23 12:28:54 +03:00
.
2004-08-23 12:42:53 +04:00
.SH SYNOPSIS
2015-09-23 12:28:54 +03:00
.
.ad l
2004-08-23 12:42:53 +04:00
.B clvmd
2017-03-27 17:45:48 +03:00
.RB [ -C ]
.RB [ -d
2015-09-21 23:45:47 +03:00
.RI [ value ]]
2017-03-27 17:45:48 +03:00
.RB [ -E
2015-09-23 12:28:54 +03:00
.IR lock_uuid ]
2017-03-27 17:45:48 +03:00
.RB [ -f ]
.RB [ -h ]
.RB [ -I
2015-09-23 12:28:54 +03:00
.IR cluster_manager ]
2017-03-27 17:45:48 +03:00
.RB [ -R ]
.RB [ -S ]
.RB [ -t
2015-09-21 23:45:47 +03:00
.IR timeout ]
2017-03-27 17:45:48 +03:00
.RB [ -T
2015-09-23 12:28:54 +03:00
.IR start_timeout ]
2017-03-27 17:45:48 +03:00
.RB [ -V ]
2015-09-23 12:28:54 +03:00
.ad b
.
2004-08-23 12:42:53 +04:00
.SH DESCRIPTION
2015-09-23 12:28:54 +03:00
.
2004-09-02 18:16:54 +04:00
clvmd is the daemon that distributes LVM metadata updates around a cluster.
2012-04-11 16:42:10 +04:00
It must be running on all nodes in the cluster and will give an error
2004-09-02 18:16:54 +04:00
if a node in the cluster does not have this daemon running.
2015-09-23 12:28:54 +03:00
.
2004-08-23 12:42:53 +04:00
.SH OPTIONS
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -C
2015-09-23 12:28:54 +03:00
.br
2017-03-27 17:45:48 +03:00
Only valid if \fB-d\fP is also specified.
2015-09-23 12:28:54 +03:00
Tells all clvmds in a cluster to enable/disable debug logging.
Without this switch, only the local clvmd will change its debug level to that
2017-03-27 17:45:48 +03:00
given with \fB-d\fP.
2015-09-23 12:28:54 +03:00
.br
2017-03-27 17:45:48 +03:00
This does not work correctly if specified on the command-line that starts clvmd.
2015-09-23 12:28:54 +03:00
If you want to start clvmd \fBand\fP
2017-03-27 17:45:48 +03:00
enable cluster-wide logging then the command needs to be issued twice, eg:
2015-09-23 12:28:54 +03:00
.br
.BR clvmd
.br
2017-03-27 17:45:48 +03:00
.BR clvmd\ -d2
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -d
2015-09-23 12:28:54 +03:00
.RI [ value ]
.br
2015-09-21 23:45:47 +03:00
Set debug logging level.
2017-03-27 17:45:48 +03:00
If \fB-d\fP is specified without a \fIvalue\fP
2014-11-19 00:07:58 +03:00
then 1 is assumed. \fIValue\fP can be:
2015-09-21 23:45:47 +03:00
.PD 0
.IP
2015-09-23 12:28:54 +03:00
.BR 0
2015-09-21 23:45:47 +03:00
\(em Disabled
.IP
2015-09-23 12:28:54 +03:00
.BR 1
2017-03-27 17:45:48 +03:00
\(em Sends debug logs to stderr (implies \fB-f\fP)
2015-09-21 23:45:47 +03:00
.IP
2015-09-23 12:28:54 +03:00
.BR 2
2015-09-21 23:45:47 +03:00
\(em Sends debug logs to \fBsyslog\fP(3)
.PD
2012-04-11 16:42:10 +04:00
.
2015-09-23 12:28:54 +03:00
.HP
2017-03-27 17:45:48 +03:00
.BR -E
2015-09-23 12:28:54 +03:00
.IR lock_uuid
2008-02-05 12:38:04 +03:00
.br
2015-09-23 12:28:54 +03:00
Pass lock uuid to be reacquired exclusively when clvmd is restarted.
.
.HP
2017-03-27 17:45:48 +03:00
.BR -f
2008-02-05 12:38:04 +03:00
.br
2012-04-11 16:42:10 +04:00
Don't fork, run in the foreground.
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -h
2015-09-23 12:28:54 +03:00
.br
2012-04-11 16:42:10 +04:00
Show help information.
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -I
2015-09-23 12:28:54 +03:00
.IR cluster_manager
.br
Selects the cluster manager to use for locking and internal
2014-11-19 03:04:24 +03:00
communications. As it is quite possible to have multiple managers available on
the same system you might have to manually specify this option to override the
search.
2017-03-27 17:45:48 +03:00
By default, omit \fB-I\fP is equivalent to \fB-Iauto\fP.
2015-09-23 12:28:54 +03:00
Clvmd will use the first cluster manager that succeeds,
and it checks them in a predefined order
.BR cman ,
.BR corosync ,
.BR openais .
2014-11-19 03:04:24 +03:00
The available managers will be listed by order as part of the
2017-03-27 17:45:48 +03:00
\fBclvmd -h\fP output.
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -R
2015-09-23 12:28:54 +03:00
.br
2014-11-19 03:04:24 +03:00
Tells all the running instance of \fBclvmd\fP in the cluster to reload their device cache and
2017-03-27 17:45:48 +03:00
re-read the lvm configuration file \fBlvm.conf\fP(5). This command should be run whenever the
2006-10-04 12:28:17 +04:00
devices on a cluster system are changed.
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -S
2015-09-23 12:28:54 +03:00
.br
2014-11-19 03:04:24 +03:00
Tells the running \fBclvmd\fP to exit and reexecute itself, for example at the
end of a package upgrade. The new instance is instructed to reacquire
any locks in the same state as they were previously held. (Alternative
2010-04-30 18:49:42 +04:00
methods of restarting the daemon have the side effect of changing
exclusive LV locks into shared locks.)
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -t
2015-09-23 12:28:54 +03:00
.IR timeout
.br
2014-11-19 03:04:24 +03:00
Specifies the \fItimeout\fP for commands to run around the cluster. This should not
2012-04-11 16:42:10 +04:00
be so small that commands with many disk updates to do will fail, so you
may need to increase this on systems with very large disk farms.
2014-11-19 03:04:24 +03:00
The default is 60 seconds.
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -T
2015-09-23 12:28:54 +03:00
.IR start_timeout
.br
Specifies the start timeout for \fBclvmd\fP daemon startup. If the
2014-11-19 03:04:24 +03:00
daemon does not report that it has started up within this time then the parent
command will exit with status of 5. This does NOT mean that \fBclvmd\fP has
not started! What it means is that the startup has been delayed for some
reason; the most likely cause of this is an inquorate cluster though it
could be due to locking latencies on a cluster with large numbers of logical
volumes. If you get the return code of 5 it is usually not necessary to
2015-09-23 12:28:54 +03:00
restart \fBclvmd\fP it will start as soon as that blockage has cleared.
2014-11-19 03:04:24 +03:00
This flag is to allow startup scripts to exit in a timely fashion even if the
cluster is stalled for some reason.
2015-09-23 12:28:54 +03:00
The default is \fB0\fP (no timeout) and the value is in seconds. Don't set this too
2012-04-11 16:42:10 +04:00
small or you will experience spurious errors. 10 or 20 seconds might be
sensible.
2014-11-19 03:04:24 +03:00
2017-03-27 17:45:48 +03:00
This timeout will be ignored if you start \fBclvmd\fP with the \fB-d\fP.
2015-09-23 12:28:54 +03:00
.
.HP
2017-03-27 17:45:48 +03:00
.BR -V
2015-09-23 12:28:54 +03:00
.br
2004-09-02 18:16:54 +04:00
Display the version of the cluster LVM daemon.
2015-09-23 12:28:54 +03:00
.
2017-02-11 01:20:19 +03:00
.SH NOTES
.
.SS Activation
.
In a clustered VG, clvmd is used for activation, and the following values are
possible with \fBlvchange/vgchange -a\fP:
.IP \fBy\fP|\fBsy\fP
clvmd activates the LV in shared mode (with a shared lock),
allowing multiple nodes to activate the LV concurrently.
If the LV type prohibits shared access, such as an LV with a snapshot,
an exclusive lock is automatically used instead.
clvmd attempts to activate the LV concurrently on all nodes.
.IP \fBey\fP
clvmd activates the LV in exclusive mode (with an exclusive lock),
allowing a single node to activate the LV.
clvmd attempts to activate the LV concurrently on all nodes, but only
one will succeed.
.IP \fBly\fP
clvmd attempts to activate the LV only on the local node.
If the LV type allows concurrent access, then shared mode is used,
otherwise exclusive.
.IP \fBn\fP
2017-03-14 18:17:46 +03:00
clvmd attempts to deactivate the LV on all nodes.
2017-02-11 01:20:19 +03:00
.IP \fBln\fP
2017-03-14 18:17:46 +03:00
clvmd attempts to deactivate the LV on the local node.
2017-02-11 01:20:19 +03:00
.
2011-09-25 00:50:35 +04:00
.SH ENVIRONMENT VARIABLES
.TP
.B LVM_CLVMD_BINARY
2015-04-28 19:00:37 +03:00
The CLVMD binary to use when \fBclvmd\fP restart is requested.
2015-09-21 23:45:47 +03:00
Defaults to \fI#CLVMD_PATH#\fP.
2011-09-25 00:50:35 +04:00
.TP
.B LVM_BINARY
2014-11-19 03:04:24 +03:00
The LVM2 binary to use.
2015-09-21 23:45:47 +03:00
Defaults to \fI#LVM_PATH#\fP.
2015-09-23 12:28:54 +03:00
.SH FILES
.I #CLVMD_PATH#
.br
.I #LVM_PATH#
2004-08-23 12:42:53 +04:00
.SH SEE ALSO
2014-11-19 03:04:24 +03:00
.BR syslog (3),
.BR lvm.conf (5),
2004-08-23 12:42:53 +04:00
.BR lvm (8)