Skip to content

Commit 3fd00eb

Browse files
committed
doc: update current_syncing_snap in peer status
Fixes: https://tracker.ceph.com/issues/67251 Signed-off-by: Jos Collin <[email protected]>
1 parent 7c32d15 commit 3fd00eb

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

doc/cephfs/cephfs-mirroring.rst

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,31 @@ A directory can be in one of the following states::
359359
- `syncing`: The directory is currently being synchronized
360360
- `failed`: The directory has hit upper limit of consecutive failures
361361

362+
When a directory is currently being synchronized, the mirror daemon marks it as `syncing` and
363+
`fs mirror peer status` shows the snapshot being synchronized under the `current_syncing_snap`::
364+
365+
$ ceph --admin-daemon /var/run/ceph/cephfs-mirror.asok fs mirror peer status cephfs@360 a2dc7784-e7a1-4723-b103-03ee8d8768f8
366+
{
367+
"/d0": {
368+
"state": "syncing",
369+
"current_syncing_snap": {
370+
"id": 121,
371+
"name": "snap2"
372+
},
373+
"last_synced_snap": {
374+
"id": 120,
375+
"name": "snap1",
376+
"sync_duration": 0.079997898999999997,
377+
"sync_time_stamp": "274900.558797s"
378+
},
379+
"snaps_synced": 2,
380+
"snaps_deleted": 0,
381+
"snaps_renamed": 0
382+
}
383+
}
384+
385+
The mirror daemon marks it back to `idle`, when the syncing completes.
386+
362387
When a directory experiences a configured number of consecutive synchronization failures, the
363388
mirror daemon marks it as `failed`. Synchronization for these directories is retried.
364389
By default, the number of consecutive failures before a directory is marked as failed
@@ -374,12 +399,12 @@ E.g., adding a regular file for synchronization would result in failed status::
374399
"/d0": {
375400
"state": "idle",
376401
"last_synced_snap": {
377-
"id": 120,
378-
"name": "snap1",
379-
"sync_duration": 0.079997898999999997,
380-
"sync_time_stamp": "274900.558797s"
402+
"id": 121,
403+
"name": "snap2",
404+
"sync_duration": 300,
405+
"sync_time_stamp": "500900.600797s"
381406
},
382-
"snaps_synced": 2,
407+
"snaps_synced": 3,
383408
"snaps_deleted": 0,
384409
"snaps_renamed": 0
385410
},

0 commit comments

Comments
 (0)