2010-06-17 16:14:43 +04:00
.TH DMEVENTD 8 "DM TOOLS #VERSION#" "Red Hat Inc" \" -*- nroff -*-
2015-10-12 12:35:53 +03:00
.
2010-06-17 16:14:43 +04:00
.SH NAME
2015-10-12 12:35:53 +03:00
.
2017-03-27 17:45:48 +03:00
dmeventd \(em Device-mapper event daemon
2015-10-12 12:35:53 +03:00
.
2010-06-17 16:14:43 +04:00
.SH SYNOPSIS
2015-10-12 12:35:53 +03:00
.
2010-06-17 16:14:43 +04:00
.B dmeventd
2017-03-27 17:45:48 +03:00
.RB [ -d
.RB [ -d
.RB [ -d ]]]
.RB [ -f ]
.RB [ -h ]
2023-09-25 12:49:14 +03:00
.RB [ -i ]
2017-03-27 17:45:48 +03:00
.RB [ -l ]
.RB [ -R ]
.RB [ -V ]
.RB [ -? ]
2015-10-12 12:35:53 +03:00
.
2010-06-17 16:14:43 +04:00
.SH DESCRIPTION
2015-10-12 12:35:53 +03:00
.
2017-03-27 17:45:48 +03:00
dmeventd is the event monitoring daemon for device-mapper devices.
2010-06-21 19:56:57 +04:00
Library plugins can register and carry out actions triggered when
particular events occur.
2015-10-12 12:35:53 +03:00
.
2010-06-17 16:14:43 +04:00
.SH OPTIONS
2015-10-12 12:35:53 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
.B -d
Repeat from 1 to 3 times
.RB ( -d ,
2017-03-27 17:45:48 +03:00
.BR -dd ,
2021-04-13 16:26:54 +03:00
.BR -ddd )
to increase the detail of
2010-06-17 16:14:43 +04:00
debug messages sent to syslog.
Each extra d adds more debugging information.
2015-10-12 12:35:53 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
.B -f
2010-06-17 16:14:43 +04:00
Don't fork, run in the foreground.
2015-10-12 12:35:53 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
.B -h
2011-12-22 19:50:38 +04:00
Show help information.
2015-10-12 12:35:53 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2023-09-25 12:49:14 +03:00
.B -i
Query the running daemon instance for the status informations. The format is
internal and unstable and it is targeted for developers.
Format may change between versions.
.
.TP
2021-04-13 16:26:54 +03:00
.B -l
2015-10-13 16:14:11 +03:00
Log through stdout and stderr instead of syslog.
2017-03-27 17:45:48 +03:00
This option works only with option -f, otherwise it is ignored.
2015-10-13 16:14:11 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
.B -?
2015-10-12 12:35:53 +03:00
Show help information on stderr.
.
2021-04-13 16:26:54 +03:00
.TP
.B -R
2011-03-02 15:49:13 +03:00
Replace a running dmeventd instance. The running dmeventd must be version
2.02.77 or newer. The new dmeventd instance will obtain a list of devices and
events to monitor from the currently running daemon.
2015-10-12 12:35:53 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
.B -V
2010-06-21 19:56:57 +04:00
Show version of dmeventd.
2015-10-12 12:35:53 +03:00
.
2017-02-19 17:50:19 +03:00
.SH LVM PLUGINS
.
2021-04-13 16:26:54 +03:00
.TP
.B Mirror
Attempts to handle device failure automatically.
2017-02-19 17:50:19 +03:00
.br
2021-04-13 16:26:54 +03:00
See
2017-02-19 17:50:19 +03:00
.BR lvm.conf (5).
.
2021-04-13 16:26:54 +03:00
.TP
.B Raid
Attempts to handle device failure automatically.
2017-02-19 17:50:19 +03:00
.br
2021-04-13 16:26:54 +03:00
See
2017-02-19 17:50:19 +03:00
.BR lvm.conf (5).
.
2021-04-13 16:26:54 +03:00
.TP
.B Snapshot
2017-02-19 17:50:19 +03:00
Monitors how full a snapshot is becoming and emits a warning to
syslog when it exceeds 80% full.
The warning is repeated when 85%, 90% and 95% of the snapshot is filled.
See
.BR lvm.conf (5).
Snapshot which runs out of space gets invalid and when it is mounted,
it gets umounted if possible.
.
2021-04-13 16:26:54 +03:00
.TP
.B Thin
2017-02-19 17:50:19 +03:00
Monitors how full a thin pool data and metadata is becoming and emits
a warning to syslog when it exceeds 80% full.
The warning is repeated when more then 85%, 90% and 95%
of the thin pool is filled. See
.BR lvm.conf (5).
When a thin pool fills over 50% (data or metadata) thin plugin calls
2021-04-15 14:16:41 +03:00
configured \fBdmeventd/thin_command\fP with every 5% increase.
2017-02-19 17:50:19 +03:00
With default setting it calls internal
2017-03-27 17:45:48 +03:00
\fBlvm lvextend --use-policies\fP to resize thin pool
2017-02-19 17:50:19 +03:00
when it's been filled above configured threshold
2021-04-15 14:16:41 +03:00
\fBactivation/thin_pool_autoextend_threshold\fP.
2017-02-19 17:50:19 +03:00
If the command fails, dmeventd thin plugin will keep
retrying execution with increasing time delay between
2022-12-30 14:52:49 +03:00
retries up to 42 minutes.
2017-02-19 17:50:19 +03:00
User may also configure external command to support more advanced
maintenance operations of a thin pool.
Such external command can e.g. remove some unneeded snapshots,
use \fBfstrim\fP(8) to free recover space in a thin pool,
2017-03-27 17:45:48 +03:00
but also can use \fBlvextend --use-policies\fP if other actions
2017-02-19 17:50:19 +03:00
have not released enough space.
Command is executed with environmental variable
\fBLVM_RUN_BY_DMEVENTD=1\fP so any lvm2 command executed
in this environment will not try to interact with dmeventd.
To see the fullness of a thin pool command may check these
two environmental variables
2021-04-13 16:26:54 +03:00
\fBDMEVENTD_THIN_POOL_DATA\fP and \fBDMEVENTD_THIN_POOL_\:METADATA\fP.
2017-02-19 17:50:19 +03:00
Command can also read status with tools like \fBlvs\fP(8).
2021-04-13 16:26:54 +03:00
.
.TP
.B Vdo
2019-01-24 00:51:00 +03:00
Monitors how full a VDO pool data is becoming and emits
a warning to syslog when it exceeds 80% full.
The warning is repeated when more then 85%, 90% and 95%
of the VDO pool is filled. See
.BR lvm.conf (5).
When a VDO pool fills over 50% vdo plugin calls
2021-04-15 14:16:41 +03:00
configured \fBdmeventd/vdo_command\fP with every 5% increase.
2019-01-24 00:51:00 +03:00
With default setting it calls internal
\fBlvm lvextend --use-policies\fP to resize VDO pool
when it's been filled above the configured threshold
2021-04-15 14:16:41 +03:00
\fBactivation/vdo_pool_autoextend_threshold\fP.
2019-01-24 00:51:00 +03:00
If the command fails, dmeventd vdo plugin will keep
retrying execution with increasing time delay between
2022-12-30 14:52:49 +03:00
retries up to 42 minutes.
2019-01-24 00:51:00 +03:00
User may also configure external command to support more advanced
maintenance operations of a VDO pool.
Such external command can e.g. remove some unneeded space
with \fBfstrim\fP(8),
but also can use \fBlvextend --use-policies\fP if other actions
have not released enough space.
Command is executed with environmental variable
\fBLVM_RUN_BY_DMEVENTD=1\fP so any lvm2 command executed
in this environment will not try to interact with dmeventd.
To see the fullness of a VDO pool command may check this
environmental variable \fBDMEVENTD_VDO_POOL\fP.
Command can also read status with tools like \fBlvs\fP(8).
2017-02-19 17:50:19 +03:00
.
.SH ENVIRONMENT VARIABLES
.
.TP
.B DMEVENTD_THIN_POOL_DATA
Variable is set by thin plugin and is available to executed program. Value present
actual usage of thin pool data volume. Variable is not set when error event
is processed.
.TP
2018-05-23 20:45:53 +03:00
.B DMEVENTD_THIN_POOL_METADATA
2017-02-19 17:50:19 +03:00
Variable is set by thin plugin and is available to executed program. Value present
actual usage of thin pool metadata volume. Variable is not set when error event
is processed.
.TP
2019-01-24 00:51:00 +03:00
.B DMEVENTD_VDO_POOL
Variable is set by vdo plugin and is available to executed program. Value present
actual usage of VDO pool data volume. Variable is not set when error event
is processed.
.TP
2017-02-19 17:50:19 +03:00
.B LVM_RUN_BY_DMEVENTD
2022-12-30 14:52:49 +03:00
Variable is set by thin and vdo plugin to prohibit recursive interaction
2017-02-19 17:50:19 +03:00
with dmeventd by any executed lvm2 command from
2019-01-24 00:51:00 +03:00
a thin_command, vdo_command environment.
2017-02-19 17:50:19 +03:00
.
2010-06-17 16:14:43 +04:00
.SH SEE ALSO
2015-10-12 12:35:53 +03:00
.
2010-06-17 16:14:43 +04:00
.BR lvm (8),
2021-04-15 14:16:41 +03:00
.BR lvm.conf (5),
.BR lvextend (8),
.br
.BR fstrim (8)