mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dbginfo.sh: update/add additional DASD collection
We changed lscss for more detailed output. Adding use of dasdview for a detailed view on DASD storage. This data will be collected in a separate file, as many DASDs might flood the runtime.out Also updated man pages as a new step is added Reviewed-by: Stefan Hberland <sth@linux.ibm.com> Signed-off-by: Joern Siglen <siglen@de.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
f8d5b4b341
commit
96084339f5
@@ -259,6 +259,7 @@ readonly LOGFILE="${WORKPATH}dbginfo.log"
|
||||
readonly OUTPUT_FILE_BRIDGE="${WORKPATH}network.out"
|
||||
readonly OUTPUT_FILE_CMD="${WORKPATH}runtime.out"
|
||||
readonly OUTPUT_FILE_COREDUMPCTL="${WORKPATH}coredump.out" # separate file needed
|
||||
readonly OUTPUT_FILE_DASD="${WORKPATH}dasd.out"
|
||||
readonly OUTPUT_FILE_DOCKER="${WORKPATH}docker_runtime.out"
|
||||
readonly OUTPUT_FILE_ETHTOOL="${WORKPATH}network.out"
|
||||
readonly OUTPUT_FILE_HYPTOP="${WORKPATH}runtime.out"
|
||||
@@ -296,6 +297,7 @@ ALL_STEPS="\
|
||||
collect_kvm\
|
||||
collect_container\
|
||||
collect_nvme\
|
||||
collect_dasd\
|
||||
collect_logfiles\
|
||||
post_processing\
|
||||
create_package\
|
||||
@@ -491,7 +493,7 @@ CMDS="uname -a\
|
||||
# Z device subsystem commands (first commands in non alphabetical order)
|
||||
CMDS="${CMDS}\
|
||||
:lschp\
|
||||
:lscss\
|
||||
:lscss --vpm\
|
||||
:lszdev\
|
||||
:find /dev -print0 | sort -z | xargs -0 -n 10 ls -ld\
|
||||
:lspci -t\
|
||||
@@ -1233,6 +1235,26 @@ collect_nvme() {
|
||||
fi
|
||||
}
|
||||
|
||||
########################################
|
||||
collect_dasd() {
|
||||
local device
|
||||
|
||||
if type dasdview >/dev/null; then
|
||||
pr_collect_output "DASD storage"
|
||||
call_run_command "lsdasd" "${OUTPUT_FILE_DASD}" # duplicate as file header
|
||||
for device in /dev/dasd*; do
|
||||
if [ -b $device ]; then
|
||||
call_run_command "dasdview -i $device" "${OUTPUT_FILE_DASD}"
|
||||
call_run_command "dasdview -t info $device" "${OUTPUT_FILE_DASD}"
|
||||
else
|
||||
echo "$device is no block device" >> ${OUTPUT_FILE_DASD}
|
||||
fi
|
||||
done
|
||||
else
|
||||
pr_skip "dasdview: not available"
|
||||
fi
|
||||
}
|
||||
|
||||
########################################
|
||||
collect_kvm() {
|
||||
local cmd
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.TH DBGINFO.SH 8 "01 2024" "s390-tools"
|
||||
.TH DBGINFO.SH 8 "07 2024" "s390-tools"
|
||||
|
||||
.SH NAME
|
||||
dbginfo.sh \- collect runtime, configuration and trace information
|
||||
@@ -65,57 +65,59 @@ Hardware platform = s390x
|
||||
.br
|
||||
Runtime environment = z/VM - DPM: NO
|
||||
.br
|
||||
Kernel version = 5.14.0 (5.14.0-162.6.1.el9_1.s390x)
|
||||
Kernel version = 5.14.0 (5.14.0-427.13.1.el9_4.s390x)
|
||||
.br
|
||||
OS version / distro = Red Hat Enterprise Linux 9.1 (Plow)
|
||||
OS version / distro = Red Hat Enterprise Linux 9.4 (Plow)
|
||||
.br
|
||||
Date and time of info = 2023-12-22-11-43-08
|
||||
Date and time of info = 2024-07-11-11-11-11
|
||||
.PP
|
||||
1 of 19: Collecting sysfs
|
||||
1 of 20: Collecting sysfs
|
||||
.PP
|
||||
2 of 19: Collecting procfs
|
||||
2 of 20: Collecting procfs
|
||||
.PP
|
||||
3 of 19: Collecting config files
|
||||
3 of 20: Collecting config files
|
||||
.PP
|
||||
4 of 19: Collecting initrd config files
|
||||
4 of 20: Collecting initrd config files
|
||||
.PP
|
||||
5 of 19: Collecting command output
|
||||
5 of 20: Collecting command output
|
||||
.PP
|
||||
6 of 19: Collecting hyptop for z/VM - 5s output
|
||||
6 of 20: Collecting hyptop for z/VM - 5s output
|
||||
.PP
|
||||
7 of 19: Collecting z/VM output
|
||||
7 of 20: Collecting z/VM output
|
||||
.PP
|
||||
8 of 19: Collecting network output
|
||||
8 of 20: Collecting network output
|
||||
.PP
|
||||
9 of 19: Collecting osa oat output
|
||||
9 of 20: Collecting osa oat output
|
||||
.PP
|
||||
10 of 19: Collecting ethtool output
|
||||
10 of 20: Collecting ethtool output
|
||||
.PP
|
||||
11 of 19: Collecting Trafic Control output
|
||||
11 of 20: Collecting Trafic Control output
|
||||
.PP
|
||||
12 of 19: Collecting bridge output
|
||||
12 of 20: Collecting bridge output
|
||||
.PP
|
||||
13 of 19: Skip OpenVSwitch: ovs-vsctl not available
|
||||
13 of 20: Skip OpenVSwitch: ovs-vsctl not available
|
||||
.PP
|
||||
14 of 19: Skip KVM: no virsh command
|
||||
14 of 20: Skip KVM: no virsh command
|
||||
.PP
|
||||
15 of 19: Collecting container host output
|
||||
15 of 20: Collecting container host output
|
||||
.PP
|
||||
Kubernetes ...
|
||||
.br
|
||||
16 of 19: Collecting NVME storage output
|
||||
16 of 20: Collecting NVME storage output
|
||||
.PP
|
||||
17 of 19: Collecting log files
|
||||
17 of 20: Collecting DASD storage output
|
||||
.PP
|
||||
18 of 20: Collecting log files
|
||||
.PP
|
||||
0 logfiles over 50 MB
|
||||
.PP
|
||||
18 of 19: Postprocessing
|
||||
19 of 20: Postprocessing
|
||||
.PP
|
||||
19 of 19: Finalizing: Creating archive with collected data
|
||||
20 of 20: Finalizing: Creating archive with collected data
|
||||
.PP
|
||||
Collected data was saved to:
|
||||
.br
|
||||
>> /data\-collection/DBGINFO\-2023\-12\-22\-11\-43\-08\-host\-012345.tgz <<
|
||||
>> /data\-collection/DBGINFO\-2024\-07\-11\-11\-11\-11\-host\-012345.tgz <<
|
||||
.br
|
||||
Please review all collected data before sending to your service organization.
|
||||
.SH HINTS
|
||||
|
||||
Reference in New Issue
Block a user