Skip to content

Commit a993af9

Browse files
Merge branch 'PCSM-283-Skip-sharding-operations-for-replica-set' of https://github.com/percona/pcsm-docs into PCSM-283-Skip-sharding-operations-for-replica-set
2 parents 2d56962 + 6cd6e66 commit a993af9

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

docs/sharded-source-to-replica-set-target.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ PCSM then continues with the standard clone and replication workflow. No additio
8585

8686
Output:
8787

88-
```json
88+
```{.text .no-copy}
8989
2026-08-25T07:56:21.508Z ERR Data Clone has failed: 0 B in 0s error="copy: clone_shard_test_db.sharded_coll: shard collection: shard collection: (CommandNotFound) no such command: 'shardCollection'" elapsed_secs=0.114 s=clone
9090
2026-08-25T07:56:21.508Z ERR Cluster Replication has failed error="clone: copy: clone_shard_test_db.sharded_coll: shard collection: shard collection: (CommandNotFound) no such command: 'shardCollection'" s=pcsm
9191
```
@@ -101,12 +101,12 @@ PCSM then continues with the standard clone and replication workflow. No additio
101101
Follow these steps:
102102
{.power-number}
103103

104-
1. Create two clusters, one sharded (source) and the other replicaset (destination).
104+
1. Create two clusters, one sharded (source) and the other replica set (destination).
105105

106106
2. Create two collections on the sharded cluster:
107107

108-
1. Sharded_collection (sharded)
109-
2. Plain_collection (non-sharded)
108+
1. `sharded_coll` (sharded)
109+
2. `plain_collection` (unsharded)
110110

111111
3. Add documents to both the collections.
112112

@@ -117,7 +117,7 @@ PCSM then continues with the standard clone and replication workflow. No additio
117117
```
118118
5. Check the replication status. `clonedSizeBytes` matches `estimatedCloneSizeBytes`, and the state is `running`:
119119

120-
```json
120+
```{.text .no-copy}
121121
pcsm status
122122
{
123123
"ok": true,
@@ -186,11 +186,11 @@ PCSM then continues with the standard clone and replication workflow. No additio
186186
}
187187
```
188188

189-
8. Check the logs and confirm that no errors were recorded.
189+
9. Check the logs from the replication run and confirm that no errors were recorded.
190190

191-
`pcsm start 2> pcsm.log`
191+
Review the `pcsm.log` file created when you started replication.
192192

193-
9. Confirm that the documents for both `plain_collection` and `sharded_collection` got copied to the destination cluster.
193+
10. Confirm that the documents for both `plain_collection` and `sharded_coll` got copied to the destination cluster.
194194

195195
To learn how MongoDB uses shard keys to distribute documents across shards, see [Shard Keys octicons-link-external-16:](https://www.mongodb.com/docs/manual/core/sharding-shard-key/){:target="_blank"} in the MongoDB documentation.
196196

@@ -209,3 +209,5 @@ To learn how MongoDB uses shard keys to distribute documents across shards, see
209209

210210

211211

212+
213+

0 commit comments

Comments
 (0)