mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
Use pvscan --cache instead of vgscan in lvmetad init script and systemd unit.
This commit is contained in:
parent
6bf324c4fd
commit
d837eebdcc
@ -38,7 +38,7 @@ DAEMON=lvmetad
|
|||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
|
|
||||||
lvm_vgscan=${sbindir}/vgscan
|
lvm_pvscan="${sbindir}/lvm pvscan --cache"
|
||||||
|
|
||||||
LOCK_FILE="/var/lock/subsys/$DAEMON"
|
LOCK_FILE="/var/lock/subsys/$DAEMON"
|
||||||
PID_FILE="@DEFAULT_RUN_DIR@/${DAEMON}.pid"
|
PID_FILE="@DEFAULT_RUN_DIR@/${DAEMON}.pid"
|
||||||
@ -55,7 +55,7 @@ rh_status_q() {
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
ret=0
|
ret=0
|
||||||
action "Starting LVM metadata daemon:" $DAEMON && ${lvm_vgscan} || ret=$?
|
action "Starting LVM metadata daemon:" $DAEMON && ${lvm_pvscan} > /dev/null || ret=$?
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Conflicts=shutdown.target
|
|||||||
Type=forking
|
Type=forking
|
||||||
NonBlocking=true
|
NonBlocking=true
|
||||||
ExecStart=@sbindir@/lvmetad
|
ExecStart=@sbindir@/lvmetad
|
||||||
ExecStartPost=@sbindir@/vgscan
|
ExecStartPost=@sbindir@/lvm pvscan --cache
|
||||||
ExecReload=@sbindir@/lvmetad -R
|
ExecReload=@sbindir@/lvmetad -R
|
||||||
Environment=SD_ACTIVATION=1
|
Environment=SD_ACTIVATION=1
|
||||||
Restart=on-abort
|
Restart=on-abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user