跳到主要内容

存储故障转移修改命令的变体对自动交还有何影响

自动交还操作取决于您如何配置 storage failover modify 命令的参数。

适用于非紧急情况的自动交还参数组合的影响

下表列出了适用于不是由紧急情况导致的接管事件的 storage failover modify 命令参数:

参数默认设置
-auto-giveback true|falsetrue
-delay-seconds integer(秒)600
-onreboot true|falsetrue

下表介绍 -onreboot-auto-giveback 参数的组合对非紧急情况导致的接管事件的自动交还有何影响:

使用了 storage failover modify 参数接管原因是否进行自动交还?
-onreboot true

-auto-giveback true

reboot 命令
halt 命令,或从服务处理器发出的关闭再打开电源操作
-onreboot true

-auto-giveback false

reboot 命令
halt 命令,或从服务处理器发出的关闭再打开电源操作
-onreboot false

-auto-giveback true

reboot 命令
halt 命令,或从服务处理器发出的关闭再打开电源操作
-onreboot false

-auto-giveback false

reboot 命令
halt 命令,或从服务处理器发出的关闭再打开电源操作
如果 -onreboot 参数设置为 true,并且重新启动导致了接管,则无论 -auto-giveback 参数是否设置为 true,均始终执行自动交还。

如果 -onreboot 参数设置为 false,则在重新启动节点时,不会进行接管。因此,无论 -auto-giveback 参数是否设置为 true,均不会进行自动交还。将中断客户端。

适用于紧急情况的自动交还参数组合的影响

下表列出了适用于紧急情况的 storage failover modify 命令参数:

参数默认设置
-onpanic true|falsetrue
-auto-giveback-after-panic true|false

(权限:高级)

true
-auto-giveback true|falsetrue

下表介绍了 storage failover modify 命令的参数组合对紧急情况下的自动交还有何影响:

使用了 storage failover 参数紧急情况后是否进行自动交还?
-onpanic true

-auto-giveback-after-panic true

-onpanic true

-auto-giveback-after-panic false -auto-giveback false

-onpanic false

-auto-giveback-after-panic true

-onpanic false

-auto-giveback-after-panic false

-onpanic true

-auto-giveback true

-auto-giveback-after-panic true

-onpanic true

-auto-giveback true

-auto-giveback-after-panic false

-onpanic true

-auto-giveback false

-auto-giveback-after-panic true

-onpanic true

-auto-giveback false

-auto-giveback-after-panic false

-onpanic false

如果 -onpanic 设置为 false,则无论 -auto-giveback-auto-giveback-after-panic 的值为何,都不会进行接管或交还

如果 -onpanic 参数和 -auto-giveback 及/或 -auto-giveback-after-panic 设置为 true,则在发生紧急情况时始终进行自动交还。

如果 -onpanic 参数设置为 false,则不进行交还。因此,即使 ‑auto‑giveback‑after‑panic 参数或 auto-giveback 参数设置为 true,也不能进行自动交还。将中断客户端。