迁移服务器上的基础服务(集群版适用) 请求语法 plaintext PUT /rest/v1/system/server/serverId/migrate HTTP/1.1 Date: date ContentType: application/json; charsetutf8 ContentLength: length Host: ip:port Authorization: authorization { "destServerId": serverId, "service": service, "metaDir": path } 请求参数 参数 类型 说明 是否必须 serverId String 源HBlock服务器的ID。 是 destServerId String 目的服务器ID。 是 service String 需要迁移的基础服务。 取值: mdm:元数据管理服务。 ls:日志服务。 cs:协调服务。 是 metaDir String 迁移服务的数据目录,用于存储基础服务的相关数据信息。 说明 为了提升读写性能,建议各基础服务的数据目录、安装目录、存储数据的数据目录相互独立。 取值:只能包含字母、数字、汉字和特殊字符(~ ! @ $ ( ) + ; . :)。默认目录为安装目录。 否 请求示例 将mdm服务从服务器hblock3迁移至服务器hblock1。 plaintext PUT /rest/v1/system/server/hblock3/migrate HTTP/1.1 Date: Mon, 22 Jun 2026 09:58:44 GMT ContentType: application/json Authorization: HBlock userName:signature Connection: keepalive ContentLength: 59 Host: 192.168.0.65:1443 { "destServerId": "hblock1", "service": "mdm" } 响应示例 plaintext HTTP/1.1 202 Accepted xhblockrequestid: 6130422f6b7c47e9b835cd34c751aaa1 Connection: keepalive ContentLength: 178 Date: Mon, 22 Jun 2026 09:58:45 GMT ContentType: application/json;charsetutf8 Server: HBlock { "data": { "message": "Due to topology changes or service adjustments across the entire cluster, please restart the services on the following servers:nhblock1: psnhblock3: ps" } }