触发卷对应Target的主备切换(集群版适用)
更新时间 2025-08-14 17:07:03
最近更新时间: 2025-08-14 17:07:03
本节主要介绍触发卷对应Target的主备切换的命令。
./stor lun { S | switch } { -n | --name } LUN_NAME &<1-n> ]
此命令用来触发卷对应Target的主备切换。
说明
执行此操作后,客户端不需要进行任何操作。
参数
参数 | 描述 |
---|---|
-n LUN_NAME 或 --name LUN_NAME | 指定卷名称。可以指定一个或者多个卷,以英文逗号分开。 说明 如果不指定卷名称,表示设置所有卷。 |
示例
示例1
触发卷对应Target的主备切换。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun S -n lun01a
Triggered the active and standby switchover on LUN lun01a successfully.
示例2
触发所有卷对应Target的主备切换。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun S
Triggered the active and standby switchover on LUN lun01a,lun02a,lun03a successfully.