The trepctl shard command provides and interface to the replicator shard system definition system.
trepctl shard [
-delete shard ] [
-insert shard ] [
-list ] [
-update shard ]
Table 8.40. trepctl shard Command Options
The replicator shard system is used during multi-site replication configurations to control where information is replicated.
For more information, see Section 3.2, “Deploying Multisite/Multimaster Clusters”Section 3.3, “Deploying a Composite (SOR) Cluster”.
To obtain a list of the currently configured shards:
trepctl shard -listshard_id master critical alpha sales true
The shard map information can also be captured and then edited to update existing configurations:
trepctl shard -list>shard.map
To add a new shard map definition, either enter the information interactively:
trepctl shard -insertReading from standard input ... 1 new shard inserted
Or import from a file:
trepctl shard -insert < shard.mapReading from standard input 1 new shard inserted
To update a definition:
trepctl shard -update < shard.mapReading from standard input 1 shard updated