public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/scripts lvm2_lvmetad_init_red_hat.in lvm2 ...
@ 2012-03-16 15:12 prajnoha
0 siblings, 0 replies; only message in thread
From: prajnoha @ 2012-03-16 15:12 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha@sourceware.org 2012-03-16 15:12:04
Modified files:
scripts : lvm2_lvmetad_init_red_hat.in
lvm2_lvmetad_systemd_red_hat.service.in
Log message:
Use pvscan --cache instead of vgscan in lvmetad init script and systemd unit.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm2_lvmetad_init_red_hat.in.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm2_lvmetad_systemd_red_hat.service.in.diff?cvsroot=lvm2&r1=1.5&r2=1.6
--- LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/27 08:56:46 1.4
+++ LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/03/16 15:12:04 1.5
@@ -38,7 +38,7 @@
exec_prefix=@exec_prefix@
sbindir=@sbindir@
-lvm_vgscan=${sbindir}/vgscan
+lvm_pvscan="${sbindir}/lvm pvscan --cache"
LOCK_FILE="/var/lock/subsys/$DAEMON"
PID_FILE="@DEFAULT_RUN_DIR@/${DAEMON}.pid"
@@ -55,7 +55,7 @@
start()
{
ret=0
- action "Starting LVM metadata daemon:" $DAEMON && ${lvm_vgscan} || ret=$?
+ action "Starting LVM metadata daemon:" $DAEMON && ${lvm_pvscan} > /dev/null || ret=$?
return $ret
}
--- LVM2/scripts/lvm2_lvmetad_systemd_red_hat.service.in 2012/03/14 15:51:52 1.5
+++ LVM2/scripts/lvm2_lvmetad_systemd_red_hat.service.in 2012/03/16 15:12:04 1.6
@@ -9,7 +9,7 @@
Type=forking
NonBlocking=true
ExecStart=@sbindir@/lvmetad
-ExecStartPost=@sbindir@/vgscan
+ExecStartPost=@sbindir@/lvm pvscan --cache
ExecReload=@sbindir@/lvmetad -R
Environment=SD_ACTIVATION=1
Restart=on-abort
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-16 15:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16 15:12 LVM2/scripts lvm2_lvmetad_init_red_hat.in lvm2 prajnoha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).