mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Remove pvscan --cache from lvm2-lvmetad init script.
This is not needed anymore as the scan is called transparently within the first LVM command that queries lvmetad.
This commit is contained in:
parent
08ba1b4472
commit
4dace48f51
@ -26,6 +26,7 @@ Version 2.02.98 -
|
|||||||
Allow non power of 2 thin chunk sizes if thin pool driver supports that.
|
Allow non power of 2 thin chunk sizes if thin pool driver supports that.
|
||||||
Allow limited metadata changes when PVs are missing via [vg|lv]change.
|
Allow limited metadata changes when PVs are missing via [vg|lv]change.
|
||||||
Do not start dmeventd for lvchange --resync when monitoring is off.
|
Do not start dmeventd for lvchange --resync when monitoring is off.
|
||||||
|
Remove pvscan --cache from lvm2-lvmetad init script.
|
||||||
Remove ExecStartPost with pvscan --cache from lvm2-lvmetad.service.
|
Remove ExecStartPost with pvscan --cache from lvm2-lvmetad.service.
|
||||||
Report invalid percentage for property snap_percent of non-snaphot LVs.
|
Report invalid percentage for property snap_percent of non-snaphot LVs.
|
||||||
Disallow convertion of thins to mirrors.
|
Disallow convertion of thins to mirrors.
|
||||||
|
@ -38,12 +38,9 @@ DAEMON=lvmetad
|
|||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
|
|
||||||
lvm_pvscan="${sbindir}/lvm pvscan --cache"
|
|
||||||
|
|
||||||
LOCK_FILE="/var/lock/subsys/$DAEMON"
|
LOCK_FILE="/var/lock/subsys/$DAEMON"
|
||||||
PID_FILE="@LVMETAD_PIDFILE@"
|
PID_FILE="@LVMETAD_PIDFILE@"
|
||||||
|
|
||||||
|
|
||||||
rh_status() {
|
rh_status() {
|
||||||
status -p $PID_FILE $DAEMON
|
status -p $PID_FILE $DAEMON
|
||||||
}
|
}
|
||||||
@ -55,7 +52,7 @@ rh_status_q() {
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
ret=0
|
ret=0
|
||||||
action "Starting LVM metadata daemon:" $DAEMON && ${lvm_pvscan} > /dev/null || ret=$?
|
action "Starting LVM metadata daemon:" $DAEMON || ret=$?
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user