move chunk
Moves a listed set of chunks from one shard to another shard or multiple shards.
Syntax
move chunk -chunk {chunk_id_list | ALL}
-source shard_name
[-target shard_name]
[-timeout]
[-verbose]
[-copy]Options
Table 2-66 GDSCTL move chunk Options
| Option | Description |
|---|---|
-chunk {chunk_id_list | ALL} |
Specify a comma-separated list of chunk IDs. If |
-copy |
Copy the chunk instead of moving (OGG only). |
-source shard_name |
Specify the name of the source shard. |
-target shard_name |
Specify the name of the target shard. |
-timeout |
Specify a connection retention time-out for the interval between when FAN is sent to the clients and a chunk going into read-only mode or down. |
-verbose |
Enable verbose output mode. |
Usage Notes
Chunks cannot be moved between shards that belong to different shardgroups.
If -chunk ALL is specified without the -target option, all of the chunks are removed from the source shard and distributed to all of the remaining shards in a round-robin manner.
Examples
Move chunks 3 and 4 from SALE1 to SALE3.
GDSCTL> move chunk -chunk 3,4 –source sale1 –target sale3
Move all chunks from sale1 and distribute evenly among the remaining shards.
GDSCTL> move chunk -chunk ALL -source sale1