lvm.conf should be check modified if lvm2 thinp enabled
lvm2 relies on /etc/lvm/lvm.conf to determine its behaviour. The important configs such as thin_pool_autoextend_threshold and thin_pool_autoextend_percent will be used during kdump in 2nd kernel. So if the file is modified, the initramfs should be rebuild to include the latest. Signed-off-by: Tao Liu <ltao@redhat.com> Reviewed-by: Philipp Rudo <prudo@redhat.com>
This commit is contained in:
parent
0a5b71d123
commit
10ca970940
@ -8,6 +8,7 @@ DEFAULT_SSHKEY="/root/.ssh/kdump_id_rsa"
|
|||||||
KDUMP_CONFIG_FILE="/etc/kdump.conf"
|
KDUMP_CONFIG_FILE="/etc/kdump.conf"
|
||||||
FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"
|
FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"
|
||||||
FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send"
|
FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send"
|
||||||
|
LVM_CONF="/etc/lvm/lvm.conf"
|
||||||
|
|
||||||
# Read kdump config in well formated style
|
# Read kdump config in well formated style
|
||||||
kdump_read_conf()
|
kdump_read_conf()
|
||||||
|
1
kdumpctl
1
kdumpctl
@ -390,6 +390,7 @@ check_files_modified()
|
|||||||
|
|
||||||
# HOOKS is mandatory and need to check the modification time
|
# HOOKS is mandatory and need to check the modification time
|
||||||
files="$files $HOOKS"
|
files="$files $HOOKS"
|
||||||
|
is_lvm2_thinp_dump_target && files="$files $LVM_CONF"
|
||||||
check_exist "$files" && check_executable "$EXTRA_BINS" || return 2
|
check_exist "$files" && check_executable "$EXTRA_BINS" || return 2
|
||||||
|
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user