mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +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@
|
||||
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 @@ rh_status_q() {
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ Conflicts=shutdown.target
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user