Skip to content

Commit ce10e5e

Browse files
committed
doc: mention the peer status failed when snapshot created on the remote filesystem.
* Update the docs for the failed status, when the snapshot is created on the remote fs. * Mention the read-only restrictions of the remote fs. Fixes: https://tracker.ceph.com/issues/65317 Signed-off-by: Jos Collin <[email protected]>
1 parent db65867 commit ce10e5e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

doc/cephfs/cephfs-mirroring.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,44 @@ This allows a user to add a non-existent directory for synchronization. The mirr
423423
will mark such a directory as failed and retry (less frequently). When the directory is
424424
created, the mirror daemon will clear the failed state upon successful synchronization.
425425

426+
Adding a new snapshot or a new directory manually in the .snap directory of the
427+
remote filesystem will result in failed status of the corresponding configured directory.
428+
In the remote filesystem::
429+
430+
$ ceph fs subvolume snapshot create cephfs subvol1 snap2 group1
431+
or
432+
$ mkdir /d0/.snap/snap2
433+
434+
$ ceph --admin-daemon /var/run/ceph/cephfs-mirror.asok fs mirror peer status cephfs@360 a2dc7784-e7a1-4723-b103-03ee8d8768f8
435+
{
436+
"/d0": {
437+
"state": "failed",
438+
"failure_reason": "snapshot 'snap2' has invalid metadata",
439+
"last_synced_snap": {
440+
"id": 120,
441+
"name": "snap1",
442+
"sync_duration": 0.079997898999999997,
443+
"sync_time_stamp": "274900.558797s"
444+
},
445+
"snaps_synced": 2,
446+
"snaps_deleted": 0,
447+
"snaps_renamed": 0
448+
},
449+
"/f0": {
450+
"state": "failed",
451+
"snaps_synced": 0,
452+
"snaps_deleted": 0,
453+
"snaps_renamed": 0
454+
}
455+
}
456+
457+
When the snapshot or the directory is removed from the remote filesystem, the mirror daemon will
458+
clear the failed state upon successful synchronization of the pending snapshots, if any.
459+
460+
.. note:: Treat the remote filesystem as read-only. Nothing is inherently enforced by CephFS.
461+
But with the right mds caps, users would not be able to snapshot directories in the
462+
remote file system.
463+
426464
When mirroring is disabled, the respective `fs mirror status` command for the file system
427465
will not show up in command help.
428466

0 commit comments

Comments
 (0)