You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: docs/sharded-source-to-replica-set-target.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ PCSM then continues with the standard clone and replication workflow. No additio
85
85
86
86
Output:
87
87
88
-
```json
88
+
```{.text .no-copy}
89
89
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
90
90
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
91
91
```
@@ -101,12 +101,12 @@ PCSM then continues with the standard clone and replication workflow. No additio
101
101
Follow these steps:
102
102
{.power-number}
103
103
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).
105
105
106
106
2. Create two collections on the sharded cluster:
107
107
108
-
1. Sharded_collection (sharded)
109
-
2. Plain_collection (non-sharded)
108
+
1. `sharded_coll` (sharded)
109
+
2. `plain_collection` (unsharded)
110
110
111
111
3. Add documents to both the collections.
112
112
@@ -117,7 +117,7 @@ PCSM then continues with the standard clone and replication workflow. No additio
117
117
```
118
118
5. Check the replication status. `clonedSizeBytes` matches `estimatedCloneSizeBytes`, and the state is `running`:
119
119
120
-
```json
120
+
```{.text .no-copy}
121
121
pcsm status
122
122
{
123
123
"ok": true,
@@ -186,11 +186,11 @@ PCSM then continues with the standard clone and replication workflow. No additio
186
186
}
187
187
```
188
188
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.
190
190
191
-
`pcsm start 2> pcsm.log`
191
+
Review the `pcsm.log` file created when you started replication.
192
192
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.
194
194
195
195
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.
196
196
@@ -209,3 +209,5 @@ To learn how MongoDB uses shard keys to distribute documents across shards, see
0 commit comments