dbginfo.sh: addtional timeout and omitting a report

running mpio data disks with offline paths might cause dbginfo
to hang up on the command "blockdev --report" -> we remove
it to ensure a non blocking data collection.
In addition we add a second kill step with the same timeout
value to retry stopping a command

Signed-off-by: Joern Siglen <siglen@de.ibm.com>
Reviewed-by: Mario Held <mario.held@de.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Joern Siglen
2021-11-03 10:05:00 +01:00
committed by Jan Höppner
parent 10518da618
commit a80c14d72c
2 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,9 @@ Release history for s390-tools (MIT version)
Bug Fixes:
Changes of existing tools:
- dbginfo.sh: retry for timeout and remove possible blocking "blockdev --report"
* __v2.18.0 (2021-10-01)__
For Linux kernel version: 5.14

View File

@@ -55,7 +55,7 @@ readonly ZDEV_CONF=$(lszdev --configured 2>/dev/null | wc -l)
readonly ZDEV_OFF=$(lszdev --offline 2>/dev/null | wc -l)
readonly ZDEV_ONL=$(lszdev --online 2>/dev/null | wc -l)
paramWORKDIR_BASE="/tmp/" # initial default path
paramWORKDIR_BASE="/tmp" # initial default path
########################################
# print dbginfo.sh version info
@@ -412,7 +412,6 @@ CMDS="uname -a\
:timedatectl\
:runlevel\
:ulimit -a\
:blockdev --report\
:env\
:df -h\
:df -i\
@@ -1071,7 +1070,7 @@ call_run_command() {
# check if calling command and timeout exist
if which "${raw_cmd}" >/dev/null 2>&1 && which timeout >/dev/null 2>&1; then
eval timeout ${TOS} "${cmd}" >> ${logfile} 2>&1
eval timeout -k ${TOS} ${TOS} "${cmd}" >> ${logfile} 2>&1
rc=$?
# check if command is a builtin (no use of timeout possible)
elif command -v "${raw_cmd}" >/dev/null 2>&1; then