Linux "dmeventd" Command Line Options and Examples
Device-mapper event daemon

dmeventd is the event monitoring daemon for device-mapper devices. Library plugins can register and carry out actions triggered when particular events occur..


Usage:

dmeventd [-d [-d [-d]]] [-f] [-h] [-l] [-R] [-V] [-?]




Command Line Options:

-d
Repeat from 1 to 3 times ( -d, -dd, -ddd ) to increase the detail of debug messages sent to syslog. Each extra d adds moredebugging information.
dmeventd -d ...
-f
Don't fork, run in the foreground.
dmeventd -f ...
-h
Show help information.
dmeventd -h ...
-l
Log through stdout and stderr instead of syslog. This option works only with option -f, otherwise it is ignored.
dmeventd -l ...
-?
Show help information on stderr.
dmeventd -? ...
-R
Replace a running dmeventd instance. The running dmeventd must be version 2.02.77 or newer. The new dmeventd instance willobtain a list of devices and events to monitor from the currently running daemon.
dmeventd -R ...
-V
Show version of dmeventd.LVM PLUGINSMirrorAttempts to handle device failure automatically. See lvm.conf(5).RaidAttempts to handle device failure automatically. See lvm.conf(5).SnapshotMonitors how full a snapshot is becoming and emits a warning to syslog when it exceeds 80% full. The warning is repeated when85%, 90% and 95% of the snapshot is filled. See lvm.conf(5). Snapshot which runs out of space gets invalid and when it ismounted, it gets umounted if possible.ThinMonitors how full a thin pool data and metadata is becoming and emits a warning to syslog when it exceeds 80% full. The warn‐ing is repeated when more then 85%, 90% and 95% of the thin pool is filled. See lvm.conf(5). When a thin pool fills over 50%(data or metadata) thin plugin calls configured dmeventd/thin_command with every 5% increase. With default setting it callsinternal lvm lvextend --use-policies to resize thin pool when it's been filled above configured threshold activa‐tion/thin_pool_autoextend_threshold. If the command fails, dmeventd thin plugin will keep retrying execution with increasingtime delay between retries upto 42 minutes. User may also configure external command to support more advanced maintenanceoperations of a thin pool. Such external command can e.g. remove some unneeded snapshots, use fstrim(8) to free recover spacein a thin pool, but also can use lvextend --use-policies if other actions have not released enough space. Command is executedwith environmental variable LVM_RUN_BY_DMEVENTD=1 so any lvm2 command executed in this environment will not try to interactwith dmeventd. To see the fullness of a thin pool command may check these two environmental variables DMEVENTD_THIN_POOL_DATAand DMEVENTD_THIN_POOL_DATA. Command can also read status with tools like lvs(8).ENVIRONMENT VARIABLESDMEVENTD_THIN_POOL_DATAVariable 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.DMEVENTD_THIN_POOL_DATAVariable 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.LVM_RUN_BY_DMEVENTDVariable is set by thin plugin to prohibit recursive interation with dmeventd by any executed lvm2 command from a thin_commandenvironment.
dmeventd -V ...