* [PATCH][meta-oe] lvm2: enable lvmetad
@ 2015-09-01 7:54 rongqing.li
2015-09-01 8:00 ` Rongqing Li
0 siblings, 1 reply; 2+ messages in thread
From: rongqing.li @ 2015-09-01 7:54 UTC (permalink / raw)
To: openembedded-core
From: Roy Li <rongqing.li@windriver.com>
the systemd unit file of lvm2-monitor requires lvm2-lvmetad.socket which
asks to enable lvmetad, lvmetad is a metadata caching daemon for LVM. so
this fixed the below error:
# systemctl start lvm2-monitor
Failed to start lvm2-monitor.service: Unit lvm2-lvmetad.socket failed to load: No such file or directory.
#
replace the installation of system unit file by make install_systemd_units
Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
meta-oe/recipes-support/lvm2/lvm2.inc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 099164c..2b2d8ed 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -24,6 +24,7 @@ EXTRA_OECONF = "--with-user= \
--enable-udev_rules \
--enable-pkgconfig \
--enable-dmeventd \
+ --enable-lvmetad \
--with-udev-prefix= \
--with-usrlibdir=${libdir} \
"
@@ -38,14 +39,13 @@ do_install_append() {
# Install machine specific configuration file
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service
- install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.socket ${D}${systemd_unitdir}/system/dm-event.socket
- install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.service ${D}${systemd_unitdir}/system/dm-event.service
+ oe_runmake 'DESTDIR=${D}' install install_systemd_units
+ sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_unitdir}/system/blk-availability.service
}
SYSTEMD_PACKAGES = "${PN}"
-SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service"
+SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service lvm2-lvmetad.socket \
+ lvm2-pvscan@.service blk-availability.service"
SYSTEMD_AUTO_ENABLE = "disable"
TARGET_CC_ARCH += "${LDFLAGS}"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][meta-oe] lvm2: enable lvmetad
2015-09-01 7:54 [PATCH][meta-oe] lvm2: enable lvmetad rongqing.li
@ 2015-09-01 8:00 ` Rongqing Li
0 siblings, 0 replies; 2+ messages in thread
From: Rongqing Li @ 2015-09-01 8:00 UTC (permalink / raw)
To: openembedded-core
please drop it, send to wrong mail
sorry for the noise
-Roy
On 2015年09月01日 15:54, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
>
> the systemd unit file of lvm2-monitor requires lvm2-lvmetad.socket which
> asks to enable lvmetad, lvmetad is a metadata caching daemon for LVM. so
> this fixed the below error:
> # systemctl start lvm2-monitor
> Failed to start lvm2-monitor.service: Unit lvm2-lvmetad.socket failed to load: No such file or directory.
> #
>
> replace the installation of system unit file by make install_systemd_units
>
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
> meta-oe/recipes-support/lvm2/lvm2.inc | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
> index 099164c..2b2d8ed 100644
> --- a/meta-oe/recipes-support/lvm2/lvm2.inc
> +++ b/meta-oe/recipes-support/lvm2/lvm2.inc
> @@ -24,6 +24,7 @@ EXTRA_OECONF = "--with-user= \
> --enable-udev_rules \
> --enable-pkgconfig \
> --enable-dmeventd \
> + --enable-lvmetad \
> --with-udev-prefix= \
> --with-usrlibdir=${libdir} \
> "
> @@ -38,14 +39,13 @@ do_install_append() {
> # Install machine specific configuration file
> install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
> sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
> - install -d ${D}${systemd_unitdir}/system
> - install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service
> - install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.socket ${D}${systemd_unitdir}/system/dm-event.socket
> - install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.service ${D}${systemd_unitdir}/system/dm-event.service
> + oe_runmake 'DESTDIR=${D}' install install_systemd_units
> + sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_unitdir}/system/blk-availability.service
> }
>
> SYSTEMD_PACKAGES = "${PN}"
> -SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service"
> +SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service lvm2-lvmetad.socket \
> + lvm2-pvscan@.service blk-availability.service"
> SYSTEMD_AUTO_ENABLE = "disable"
>
> TARGET_CC_ARCH += "${LDFLAGS}"
>
--
Best Reagrds,
Roy | RongQing Li
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-01 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 7:54 [PATCH][meta-oe] lvm2: enable lvmetad rongqing.li
2015-09-01 8:00 ` Rongqing Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox