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.12.3. 使用事件和条件诊断数据卷
使用 oc describe
命令分析并帮助解决数据卷的问题。
12.3.1. 关于条件和事件 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
通过检查命令生成的 Conditions
和 Events
部分的输出结果来诊断数据卷的问题:
oc describe dv <DataVolume>
$ oc describe dv <DataVolume>
在 Conditions
部分会有 3 个 Types
:
-
Bound
-
Running
-
Ready
Events
部分提供以下额外信息:
-
事件
类型
-
日志
原因
-
事件
源
-
包含其他诊断信息的
消息
。
oc describe
的输出并不总是包含 Events
。
当 Status
、Reason
或 Message
改变时会产生一个事件。条件和事件均响应数据卷状态的变化。
例如,在导入操作中错误拼写了 URL,则导入会生成 404 信息。该消息的更改会生成一个带有原因的事件。Conditions
部分中的输出也会更新。