summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.inc1
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/lvm.conf34
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index f518884e79..099164c2df 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -37,6 +37,7 @@ inherit autotools pkgconfig systemd
37do_install_append() { 37do_install_append() {
38 # Install machine specific configuration file 38 # Install machine specific configuration file
39 install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf 39 install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
40 sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
40 install -d ${D}${systemd_unitdir}/system 41 install -d ${D}${systemd_unitdir}/system
41 install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service 42 install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service
42 install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.socket ${D}${systemd_unitdir}/system/dm-event.socket 43 install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.socket ${D}${systemd_unitdir}/system/dm-event.socket
diff --git a/meta-oe/recipes-support/lvm2/lvm2/lvm.conf b/meta-oe/recipes-support/lvm2/lvm2/lvm.conf
index c44c6a7a09..9e3b5fe296 100644
--- a/meta-oe/recipes-support/lvm2/lvm2/lvm.conf
+++ b/meta-oe/recipes-support/lvm2/lvm2/lvm.conf
@@ -289,4 +289,38 @@ activation {
289 # dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ] 289 # dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ]
290#} 290#}
291 291
292# Event daemon
293#
294dmeventd {
295 # mirror_library is the library used when monitoring a mirror device.
296 #
297 # "libdevmapper-event-lvm2mirror.so" attempts to recover from
298 # failures. It removes failed devices from a volume group and
299 # reconfigures a mirror as necessary. If no mirror library is
300 # provided, mirrors are not monitored through dmeventd.
301
302 mirror_library = "@libdir@/device-mapper/libdevmapper-event-lvm2mirror.so"
303
304 # snapshot_library is the library used when monitoring a snapshot device.
305 #
306 # "libdevmapper-event-lvm2snapshot.so" monitors the filling of
307 # snapshots and emits a warning through syslog when the use of
308 # the snapshot exceeds 80%. The warning is repeated when 85%, 90% and
309 # 95% of the snapshot is filled.
310
311 snapshot_library = "@libdir@/device-mapper/libdevmapper-event-lvm2snapshot.so"
312
313 # thin_library is the library used when monitoring a thin device.
314 #
315 # "libdevmapper-event-lvm2thin.so" monitors the filling of
316 # pool and emits a warning through syslog when the use of
317 # the pool exceeds 80%. The warning is repeated when 85%, 90% and
318 # 95% of the pool is filled.
319
320 thin_library = "@libdir@/device-mapper/libdevmapper-event-lvm2thin.so"
321
322 # Full path of the dmeventd binary.
323 #
324 # executable = "@DMEVENTD_PATH@"
325}
292 326