Commit fe08b55d by liyapeng

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

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