This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.4.4.3. 使用 OpenShift CLI 工具调试 Velero 资源
					您可以使用 OpenShift CLI 工具检查 Velero 自定义资源(CR)和 Velero pod 日志来调试失败的备份或恢复。
				
Velero CR
					使用 oc describe 命令检索与 Backup 或 Restore CR 关联的警告和错误概述:
				
oc describe <velero_cr> <cr_name>
$ oc describe <velero_cr> <cr_name>
Velero pod 日志
					使用 oc logs 命令检索 Velero pod 日志:
				
oc logs pod/<velero>
$ oc logs pod/<velero>
Velero pod 调试日志
					您可以在 DataProtectionApplication 资源中指定 Velero 日志级别,如下例所示。
				
注意
从 OADP 1.0.3 开始使用这个选项。
					可用的 logLevel 值如下:
				
- 
							
trace - 
							
debug - 
							
info - 
							
warning - 
							
错误 - 
							
fatal - 
							
panic 
					建议您使用 debug 作为大多数日志。