docs: translate README and documentation to English
Also document the snapshot cleanup: older round snapshots are removed during sync, and `cephmig cleanup` removes the rest after the cutover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
907d400765
commit
b7d2a0687e
6 files changed
+655
-628
No files matched your search
+89
-86
@@ -1,107 +1,110 @@
|
||||
# Direkter RADOS-Transfer eines einzelnen Subvolumes
|
||||
# Direct RADOS transfer of a single subvolume
|
||||
|
||||
Geprüft am 05.11.2026 für die Anforderung: genau ein CephFS-Subvolume zwischen
|
||||
unabhängigen Clustern migrieren, während andere Subvolumes weiterlaufen.
|
||||
Native Snapshot-IDs und Geburtszeitpunkte dürfen dabei abweichen.
|
||||
Evaluated on 2026-11-05 against the requirement: migrate exactly one CephFS
|
||||
subvolume between independent clusters while other subvolumes keep running.
|
||||
Native snapshot IDs and birth times may differ.
|
||||
|
||||
## Ergebnis
|
||||
## Result
|
||||
|
||||
Ein roher Import von RADOS-Daten- und Metadatenobjekten ist unter diesen
|
||||
Bedingungen kein geprüfter Ersatz für den vorhandenen Transport. Der aktuelle
|
||||
Code wurde deshalb nicht auf einen solchen Import umgestellt.
|
||||
Under these conditions, a raw import of RADOS data and metadata objects is
|
||||
not a verified replacement for the existing transport. The code was
|
||||
therefore not switched to such an import.
|
||||
|
||||
RADOS kann Objektinhalt, xattrs und OMAP lesen und schreiben. Damit ist jedoch
|
||||
noch kein separat einhängbares CephFS-Subvolume übertragen:
|
||||
RADOS can read and write object contents, xattrs and OMAP. That alone does
|
||||
not transfer a separately mountable CephFS subvolume:
|
||||
|
||||
- Der MDS-Metadatenpool enthält die Hierarchie und dateisystemweite Zustände,
|
||||
etwa Journale, Inode-/Snapshot-Verwaltung und Clientsitzungen.
|
||||
- Ein Subvolume hat keinen unabhängigen MDS-Metadatenpool. Ein separater
|
||||
Daten-Namespace würde nur bei der Zuordnung von Datenobjekten helfen.
|
||||
- Dateilayouts und Metadaten beziehen sich auf Inodes, Pools und Snapshots der
|
||||
Quelle. Sie dürfen nicht unverändert in ein laufendes, anders aufgebautes
|
||||
Ziel-Dateisystem importiert werden.
|
||||
- Der untersuchte RADOS-Pool-Export schreibt ausdrücklich nur HEAD-Objekte.
|
||||
Historische RADOS-Snapshot-Versionen sind damit nicht als vollständige
|
||||
CephFS-Snapshot-Historie migriert.
|
||||
- Die dokumentierte Pool-Migration beschreibt Migration zwischen Pools
|
||||
innerhalb desselben Clusters. Sie ist keine Subvolume-Replikation zwischen
|
||||
unabhängigen Clustern.
|
||||
- The MDS metadata pool holds the hierarchy and file-system-wide state, such
|
||||
as journals, inode and snapshot management and client sessions.
|
||||
- A subvolume has no metadata pool of its own. A separate data namespace
|
||||
would only help to map data objects.
|
||||
- File layouts and metadata refer to the inodes, pools and snapshots of the
|
||||
source. They must not be imported unchanged into a running target file
|
||||
system with a different structure.
|
||||
- The examined RADOS pool export explicitly writes only HEAD objects.
|
||||
Historical RADOS snapshot versions are therefore not migrated as a complete
|
||||
CephFS snapshot history.
|
||||
- The documented pool migration covers migration between pools within the
|
||||
same cluster. It is not subvolume replication between independent
|
||||
clusters.
|
||||
|
||||
Die Schlussfolgerung folgt aus diesen Verwaltungs- und Konsistenzabhängigkeiten:
|
||||
Ein eigener Raw-Kopierer müsste zusätzlich eine konsistente Teilmenge der
|
||||
CephFS-Metadaten exportieren, auf die Zielidentitäten abbilden und mit dessen
|
||||
laufendem MDS koordinieren. Ein gewöhnlicher Objektkopierer leistet das nicht.
|
||||
Auch ein Objekttransfer muss die erforderlichen Nutzdaten zum Ziel bewegen.
|
||||
The conclusion follows from these management and consistency dependencies:
|
||||
a raw copier of its own would additionally have to export a consistent
|
||||
subset of the CephFS metadata, map it to the target identities and
|
||||
coordinate with the target's running MDS. An ordinary object copier does not
|
||||
do that. An object transfer, too, has to move the required payload to the
|
||||
target.
|
||||
|
||||
## Geprüfte native Alternative
|
||||
## Verified native alternative
|
||||
|
||||
Der Go-Transport `backend: native` verwendet libcephfs ohne rsync und ohne
|
||||
Kernel-/FUSE-Mount. Metadatenoperationen erfolgen über den Ziel-MDS;
|
||||
Daten-I/O übernimmt der native Ceph-Client direkt gegen RADOS. Ein roher Import
|
||||
des gemeinsamen MDS-Metadatenpools ist weiterhin nicht Bestandteil der Migration.
|
||||
The Go transport `backend: native` uses libcephfs without rsync and without a
|
||||
kernel or FUSE mount. Metadata operations go through the target MDS; data
|
||||
I/O is handled by the native Ceph client directly against RADOS. A raw import
|
||||
of the shared MDS metadata pool remains outside the migration.
|
||||
|
||||
In der tatsächlich laufenden Bibliothek des Labors wurden folgende Symbole
|
||||
geprüft:
|
||||
The following symbols were checked in the library actually running in the
|
||||
lab:
|
||||
|
||||
| Schnittstelle | Vorhanden |
|
||||
| Interface | Present |
|
||||
| --- | --- |
|
||||
| ceph_open_snapdiff | ja |
|
||||
| ceph_open_snapdiff2 | nein |
|
||||
| ceph_readdir_snapdiff2 | nein |
|
||||
| ceph_file_blockdiff_init | ja |
|
||||
| ceph_file_blockdiff | ja |
|
||||
| ceph_file_blockdiff_finish | ja |
|
||||
| ceph_open_snapdiff | yes |
|
||||
| ceph_open_snapdiff2 | no |
|
||||
| ceph_readdir_snapdiff2 | no |
|
||||
| ceph_file_blockdiff_init | yes |
|
||||
| ceph_file_blockdiff | yes |
|
||||
| ceph_file_blockdiff_finish | yes |
|
||||
|
||||
Die installierte Ceph-21.2.0-Konfiguration kennt
|
||||
`cephfs_mirror_blockdiff_min_file_size` mit Standardwert 16 MiB.
|
||||
The installed Ceph 21.2.0 configuration knows
|
||||
`cephfs_mirror_blockdiff_min_file_size` with a default of 16 MiB.
|
||||
|
||||
Implementierter Ablauf:
|
||||
Implemented workflow:
|
||||
|
||||
1. Initialer nativer Transfer des Snapshotstands.
|
||||
2. Snapdiff zum Ermitteln geänderter Verzeichniseinträge.
|
||||
3. Blockdiff für geeignete geänderte Dateien; notwendige Datenbereiche übertragen.
|
||||
4. Hardlink-Zuordnungen, ACLs, xattrs, Quotas und Journal weiterhin explizit verwalten.
|
||||
5. Gezielte Verifikation der Änderungen und ein finaler Abgleich beim Schreibstopp.
|
||||
1. Initial native transfer of the snapshot state.
|
||||
2. Snapdiff to find changed directory entries.
|
||||
3. Blockdiff for suitable changed files; transfer of the required data
|
||||
ranges.
|
||||
4. Hardlink mappings, ACLs, xattrs, quotas and the journal are still managed
|
||||
explicitly.
|
||||
5. Targeted verification of the changes and a final round at the write stop.
|
||||
|
||||
Der Backendpfad liegt in `internal/migration/native_*.go`, die schmale CGO-Anbindung
|
||||
an öffentliche Ceph-Schnittstellen in `internal/cephfsnative`. Aktivierung:
|
||||
`go build -tags ceph` mit CGO, C-Compiler und passenden libcephfs-Headern.
|
||||
`make dev-native-test` baut diese Abhängigkeiten im Container und prüft den
|
||||
Transport zwischen den unabhängigen Laborclustern.
|
||||
The backend lives in `internal/migration/native_*.go`, the thin CGO binding
|
||||
to public Ceph interfaces in `internal/cephfsnative`. Activation:
|
||||
`go build -tags ceph` with CGO, a C compiler and matching libcephfs headers.
|
||||
`make dev-native-test` builds these dependencies in a container and checks
|
||||
the transport between the independent lab clusters.
|
||||
|
||||
Snapdiff markiert geänderte Inodes; zusätzlich verhindert der Vergleich der
|
||||
Ceph-Inode-Version, dass Datenänderungen mit gleicher Größe und mtime entgehen.
|
||||
Blockdiff wird ab 16 MiB verwendet, sofern eine bestätigte Basis mit passenden
|
||||
Quell-/Ziel-Inodes vorliegt. Bei nicht verfügbaren Diff-Schnittstellen wird
|
||||
nativ vollständig rekonstruiert. Es gibt keinen stillen rsync-Fallback.
|
||||
Snapdiff marks changed inodes; in addition, comparing the Ceph inode version
|
||||
ensures that data changes with the same size and mtime are not missed.
|
||||
Blockdiff is used from 16 MiB on, provided a confirmed base with matching
|
||||
source and target inodes exists. If the diff interfaces are unavailable, the
|
||||
state is reconstructed fully and natively. There is no silent rsync fallback.
|
||||
|
||||
Die Implementierung scannt derzeit trotzdem alle Metadaten und prüft die
|
||||
Hardlink-Topologie jedes Standes vollständig. Snapdiff ersetzt diese Scans noch
|
||||
nicht. Datenprüfung liest beim ersten Stand alle Bytes, bei bestätigten
|
||||
Folgeständen nur kopierte Bereiche. Unveränderte Bereiche werden aus der zuvor
|
||||
verifizierten Basis übernommen. Das Ziel muss exklusiv dem Migrationsjob gehören;
|
||||
fremde Änderungen an unveränderten Bereichen werden damit nicht umfassend erkannt.
|
||||
Ein Index auf lokalem Datenträger bindet die Basis an Cluster, Datenpfade und
|
||||
Journal. Vor jeder Änderung wird ihre Gültigkeit im Journal entzogen. Ein Abbruch
|
||||
erzwingt im nächsten Prozess eine vollständige Rekonstruktion des offenen Standes.
|
||||
The implementation nevertheless still scans all metadata and checks the full
|
||||
hardlink topology of every state. Snapdiff does not yet replace these scans.
|
||||
Data verification reads all bytes for the first state and only the copied
|
||||
ranges for confirmed later states. Unchanged ranges are taken from the
|
||||
previously verified base. The target must belong exclusively to the
|
||||
migration job; foreign changes to unchanged ranges are not fully detected
|
||||
this way.
|
||||
An index on local disk binds the base to clusters, data paths and journal.
|
||||
Before every change its validity is withdrawn in the journal. An
|
||||
interruption forces a full reconstruction of the open state in the next
|
||||
process.
|
||||
|
||||
Ein Laufzeit- oder Durchsatznachweis für 200 TB / 200 Millionen Dateien fehlt.
|
||||
Auch nach einem Abbruch kann die vollständige Rekonstruktion entsprechend lange
|
||||
dauern. Die Zahl der durch die Anwendung geänderten Bytes ist keine feste
|
||||
Obergrenze für die vom OSD gemeldeten geänderten Bereiche.
|
||||
Evidence of runtime or throughput for 200 TB / 200 million files is missing.
|
||||
After an interruption, too, the full reconstruction can take correspondingly
|
||||
long. The number of bytes changed by the application is not a fixed upper
|
||||
bound for the changed ranges reported by the OSD.
|
||||
|
||||
Das fertige cephfs-mirror verwendet native Replikation, unterstützt laut
|
||||
Dokumentation aber keine Erhaltung gemeinsamer Hardlink-Inodes. Es würde
|
||||
Hardlink-Dateien als getrennte Dateien synchronisieren. Deshalb wäre ein
|
||||
ungeprüfter Wechsel auf cephfs-mirror kein Ersatz für die vereinbarten
|
||||
Link-Anforderungen.
|
||||
The ready-made cephfs-mirror uses native replication but, according to its
|
||||
documentation, does not preserve shared hardlink inodes. It would synchronize
|
||||
hardlinked files as separate files. An unverified switch to cephfs-mirror
|
||||
would therefore not satisfy the agreed link requirements.
|
||||
|
||||
## Primärquellen
|
||||
|
||||
- [MDS-Metadatenpool und Journale](https://docs.ceph.com/en/latest/cephfs/mds-journaling/)
|
||||
- [CephFS-Architektur und direkter RADOS-Datenzugriff](https://docs.ceph.com/en/latest/cephfs/index.html)
|
||||
- [PoolDump: Export nur des HEAD-Zustands](https://github.com/ceph/ceph/blob/main/src/tools/rados/PoolDump.cc)
|
||||
- [Pool-Migration innerhalb desselben Clusters](https://docs.ceph.com/en/latest/dev/pool-migration-design/)
|
||||
- [libcephfs: Snapdiff und Blockdiff](https://github.com/ceph/ceph/blob/main/src/include/cephfs/libcephfs.h)
|
||||
- [CephFS-Mirroring: Blockdiff und Hardlink-Grenzen](https://docs.ceph.com/en/latest/cephfs/cephfs-mirroring/)
|
||||
## Primary sources
|
||||
|
||||
- [MDS metadata pool and journals](https://docs.ceph.com/en/latest/cephfs/mds-journaling/)
|
||||
- [CephFS architecture and direct RADOS data access](https://docs.ceph.com/en/latest/cephfs/index.html)
|
||||
- [PoolDump: export of the HEAD state only](https://github.com/ceph/ceph/blob/main/src/tools/rados/PoolDump.cc)
|
||||
- [Pool migration within the same cluster](https://docs.ceph.com/en/latest/dev/pool-migration-design/)
|
||||
- [libcephfs: snapdiff and blockdiff](https://github.com/ceph/ceph/blob/main/src/include/cephfs/libcephfs.h)
|
||||
- [CephFS mirroring: blockdiff and hardlink limits](https://docs.ceph.com/en/latest/cephfs/cephfs-mirroring/)
|
||||
Reference in new issue
Block a user