relocate chunk
This command moves a list of chunks in all the replicas of the specified source RU to all the replicas in the target ru.
Syntax
relocate chunk -chunk {chunk_id_list | all} -sourceru ru_id
[-targetru ru_id]
[-timeout timeout]
Options
Table 2-69 GDSCTL relocate chunk Options
| Option | Description |
|---|---|
-chunk |
List of numeric chunk identifiers or
|
-sourceru |
Source replication unit ID |
-targetru |
Target replication unit ID |
-timeout |
Timeout of connection retention between FAN is sent to clients and chunk going read-only/down (seconds). |
-verbose |
Enable verbose mode |
Usage Notes
The source and target replication unit must be colocated in the same shard.
leaders on the same shard and followers on the same shards. if not use
SWITCHOVER to move the leader and MOVE RU
to move the followers to colocated shards.
The specified chunks must be in the same source replication unit. If target ru is not specified, an empty target replication unit will be created.
Examples
GDSCTL> relocate chunk -chunk 3,4 -sourceru 1 -targetru 2