Commit fe08b55d by liyapeng

nvidia-bug-report.sh执行模式改为增加--safe-mode,避免卡死,执行失败

1 parent c2a5d2e2
Showing with 2 additions and 3 deletions
......@@ -66,7 +66,7 @@ GPULogCollect() {
if [ -f /usr/bin/nvidia-bug-report.sh ] && [ $gpuInstanceState -gt 0 ]; then
mkdir -p ${LOG_FILE_PATH}/GPULogCollect
echo "Start to collect gpu log for instance $(hostname) by nvidia-bug-report.sh"
nvidia-bug-report.sh --output-file ${LOG_FILE_PATH}/GPULogCollect/nvidia-bug-report.log.gz.gz
nvidia-bug-report.sh --safe-mode --output-file ${LOG_FILE_PATH}/GPULogCollect/nvidia-bug-report.log.gz.gz
timeout 30 nvidia-smi >${LOG_FILE_PATH}/GPULogCollect/nvidia-smi.log
nvidia-smi topo -m >>${LOG_FILE_PATH}/GPULogCollect/nvidia-smi.log
lspci -d 10de: | egrep "VGA|3D" >${LOG_FILE_PATH}/GPULogCollect/lspci-nvidia.log
......@@ -110,4 +110,4 @@ main() {
rm -r ${LOG_FILE_PATH}
}
main
\ No newline at end of file
main
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!