diff options
| author | Zhixiong Chi <zhixiong.chi@windriver.com> | 2015-07-21 11:13:55 +0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-07-30 21:03:27 +0200 |
| commit | f110de50801c14483c05ebb594491d3361c0d337 (patch) | |
| tree | 4b290475212fa91554b605959fe59f5d012bc8a6 /meta-oe | |
| parent | cfe72b6070fab0b57603eb26193caa58c6d9a206 (diff) | |
| download | meta-openembedded-f110de50801c14483c05ebb594491d3361c0d337.tar.gz | |
lvm2: fix shared object file dlopen failed
Add the variable snapshot_library into config file(lvm.conf), so it
can link the correct shared object files with correct path.
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2/lvm.conf | 34 |
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 | |||
| 37 | do_install_append() { | 37 | do_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 | # | ||
| 294 | dmeventd { | ||
| 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 | ||
