resume drives
描述
恢复已挂起的驱动器。
语法
directpv resume drives [DRIVE ...] [flags]
参数
标志
标志 | 描述 |
---|---|
-n , --nodes <string> |
从指定的节点恢复驱动器。使用省略号扩展表示法,例如 node{1...10} 。 |
-d , --drives <string> |
通过给定的名称恢复驱动器。使用省略号扩展表示法,例如 sd{a...z} 。 |
--dry-run |
查看命令的结果,而无需对驱动器进行任何实际更改。 |
全局标志
标志 | 描述 |
---|---|
--kubeconfig <string> |
用于 CLI 请求的 kube.config 文件的路径 |
--quiet |
抑制打印错误消息 |
示例
恢复节点上的所有已挂起驱动器
kubectl directpv resume drives --nodes=node1
恢复特定节点上的特定驱动器
kubectl directpv resume drives --nodes=node1 --drives=sda
通过 DRIVE-ID 恢复已挂起驱动器
kubectl directpv resume drives af3b8b4c-73b4-4a74-84b7-1ec30492a6f0