迁移iSCSI target(集群版适用) 请求示例 迁移target01。 plaintext PUT /rest/v1/block/target/target01/migrate?forcetrue HTTP/1.1 Date: Thu, 4 Jul 2024 03: 23: 39 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 95 Host: 192.168.0.192: 1443 { "server": [ { "source": "hblock1", "dest": "hblock2" } ] } 响应示例 plaintext HTTP/1.1 200 OK xhblockrequestid: 4e88a225b1114c4ca3f2611e336ac431 Connection: keepalive ContentType: application/json; charsetutf8 ContentLength: 282 Date: Thu, 4 Jul 2024 03: 23: 39 GMT Server: HBlock { "data": { "luns": [ { "lunName": "lun01a", "iSCSITargets": [ { "iqn": "iqn.201208.cn.ctyunapi.oos:target01.1", "status": "Active", "ips": [ { "ip": "192.168.0.102", "port": 3260 } ] }, { "iqn": "iqn.201208.cn.ctyunapi.oos:target01.2", "status": "Unavailable", "ips": [ { "ip": "192.168.0.192", "port": 3260 } ] } ] } ] } 说明 卷关联的iSCSI target处于Unavailable状态,表示iSCSI target正在从一个服务器迁移到集群其他服务器上,迁移过程,该iSCSI target处于Unavailable状态。迁移完成后,iSCSI target将变为Active或者Standby状态。