public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: prajnoha@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2/scripts lvm2_lvmetad_init_red_hat.in lvm2 ...
Date: Fri, 16 Mar 2012 15:12:00 -0000	[thread overview]
Message-ID: <20120316151205.12667.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2012-03-16 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120316151205.12667.qmail@sourceware.org \
    --to=prajnoha@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).