- create the application snapshot "changed" after the mutation
- record durations of every step and prefix engine log lines with
UTC time and phase time
- verify only snapshots that were not removed, then run cleanup and
check that only application snapshots remain
- accept any RUN_LABEL and pass FILES and RUN_LABEL through Compose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cleanup now deletes the claim file under .cephmig/claims as its last
step, if it holds the job's own ID, and removes the claim directories
when they are empty. A cleaned-up job is finished: cleanup and finalize
do nothing and do not claim the target again, and sync is refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Intermediate cephmig round snapshots skip a subdirectory whose inode,
inode version and ceph.dir.rctime equal those in the base snapshot. The
index carries the subtree's entries over from the base and marks them
carried; carried entries never serve as base for a block delta.
Snapdiff, copy, pruning and verification leave skipped subtrees out.
Application snapshots and finalize always scan everything, so a change
missed because of delayed rctime propagation or a lagging client clock
costs extra work but cannot reach the final state. The config option
full_scan disables the shortcut; the journal reports skipped_subtrees.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Users of a subvolume should not see traces of the migration. Each sync
round now deletes the older cephmig-* round snapshots at source and
target and keeps only the newest one as base for the next round. The new
command `cephmig cleanup` deletes the remaining one after the cutover.
Application snapshots are never touched.
The journal marks a snapshot as removed before deleting it, so an
interrupted run finishes the deletion instead of reporting a vanished
snapshot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MDS takes an inode's ctime from the time stamp the client sends with
each request. The native backend overrides clock_gettime per thread and
per libcephfs call: modifying calls run at 1970-01-01T00:00:01Z, and the
last change to each entry creates and removes the xattr
user.cephmig.ctime stamped with the source ctime. Link, unlink, rename
and xattr requests set ctime = max(stamp, mtime), also backwards.
- write xattrs and quotas before SetAttr, which must come last
- always restamp directories after their children and hardlinks after
linking or pruning, since the writer's cache may be stale
- verify through a separate, freshly mounted target client
- name the differing attributes in metadata mismatch errors
- compare ctime of every entry, the root included, in the lab fixture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read atime and btime with statx and set them together with owner,
mode and mtime. Verification compares both, so a published snapshot
must match the source in all three times. The integration fixture
compares the times through libcephfs, since ceph-fuse does not expose
the birth time.
The ctime cannot be preserved: Ceph 21.2.0 accepts CEPH_SETATTR_CTIME
but stores the time of the call. The rsync backend still preserves
only the mtime.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The native build pinned golang-1.26.10-1.el10_2, which is no longer
available in the Rocky Linux 10 repositories, so make dev-native-build
and make dev-up failed. Copy Go 1.26.11 from the official golang image,
pinned by digest, and set GOTOOLCHAIN=local so the build does not
download another toolchain.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the repository path git.zb-server.de/Sebi/CephfsMig as module
path instead of the non-importable name CephMig, and move the cephmig
entry point from the repository root to cmd/cephmig next to
cmd/nativeprobe. Makefile and Dockerfile.native build the new path.
BREAKING CHANGE: import paths change from CephMig/... to
git.zb-server.de/Sebi/CephfsMig/..., and the binary is now built from
./cmd/cephmig instead of the module root.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Initial import of the existing CephFS subvolume migration prototype,
including the native libcephfs transport, rsync backend, local Ceph
lab environment and integration tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>