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
-87
@@ -1,108 +1,110 @@
|
||||
# Lokale Laborumgebung
|
||||
# Local lab
|
||||
|
||||
Diese Seite beschreibt die Docker-Compose-Umgebung unter `dev/` mit zwei
|
||||
unabhängigen Ceph-Clustern. Einstieg und Kurzüberblick: [README](../README.md).
|
||||
This page describes the Docker Compose environment under `dev/` with two
|
||||
independent Ceph clusters. Introduction and overview: [README](../README.md).
|
||||
|
||||
## Aufbau und Dienste
|
||||
## Layout and services
|
||||
|
||||
Der Dienst `native` läuft ohne privilegierten Modus, ohne `/dev/fuse` und ohne
|
||||
CephFS-Mounts. Der separate privilegierte `client` dient als unabhängiger
|
||||
Anwendungsclient und für den rsync-Vergleichstest.
|
||||
The service `native` runs without privileged mode, without `/dev/fuse` and
|
||||
without CephFS mounts. The separate privileged `client` serves as an
|
||||
independent application client and for the rsync comparison test.
|
||||
|
||||
`make dev-smallfiles-test` prüft standardmäßig 10.000 Dateien mit jeweils
|
||||
128 Byte Inhalt, zusätzlich Hardlinks und Symlinks. Die Hälfte der Dateien
|
||||
liegt in einem großen Verzeichnis, die andere verteilt auf 50 Unterverzeichnisse.
|
||||
Der Test misst Erstübertragung, Änderungsabgleich und finalen Abgleich einschließlich
|
||||
Prüfung. Ein separater Anwendungsclient vergleicht danach alle Inhalte, Metadaten
|
||||
und Snapshot-Stände. Berichte liegen unter `/tmp/cephmig-smallfiles-report`;
|
||||
erfolgreiche Testdaten und Snapshots werden entfernt. Die Dateianzahl lässt sich
|
||||
beispielsweise mit `FILES=2000 make dev-smallfiles-test` begrenzen.
|
||||
Ein dokumentierter lokaler Lauf einschließlich Vorher-/Nachher-Zählern für
|
||||
MDS-Anfragen steht in [docs/smallfiles-local.md](smallfiles-local.md).
|
||||
Der getrennte Test mit einer Million Dateien und vier Snapshot-Ständen wird
|
||||
mit `make dev-million-start` gestartet; Speicherbedarf, Status und Bereinigung
|
||||
stehen in [docs/million-local.md](million-local.md).
|
||||
VCS-Stamping ist im Build deaktiviert, damit auch ein
|
||||
Quellverzeichnis ohne nutzbare Git-Metadaten gebaut werden kann.
|
||||
`make dev-smallfiles-test` checks 10,000 files of 128 bytes each by default,
|
||||
plus hardlinks and symlinks. Half of the files are in one large directory,
|
||||
the other half spread over 50 subdirectories. The test measures the initial
|
||||
transfer, the catch-up round and the final round including verification. A
|
||||
separate application client then compares all contents, metadata and
|
||||
snapshot states. Reports are written to `/tmp/cephmig-smallfiles-report`;
|
||||
test data and snapshots of a successful run are removed. The number of files
|
||||
can be limited, for example with `FILES=2000 make dev-smallfiles-test`.
|
||||
A documented local run including before/after counters of MDS requests is in
|
||||
[docs/smallfiles-local.md](smallfiles-local.md).
|
||||
The separate test with one million files and four snapshot states is started
|
||||
with `make dev-million-start`; disk requirements, status and cleanup are
|
||||
described in [docs/million-local.md](million-local.md).
|
||||
VCS stamping is disabled in the build, so that a source directory without
|
||||
usable Git metadata can also be built.
|
||||
|
||||
Der Smoke-Test erstellt einen Subvolume-Snapshot, verändert danach die Quelle
|
||||
und kopiert den unveränderten Snapshot zum Ziel. Er prüft Inhalte, Dateirechte,
|
||||
POSIX-ACLs, ein Benutzer-xattr, Hardlinks, Symlinks, Quota-Operationen und die
|
||||
Isolation der beiden Cluster. `make dev-restart-check` startet das Labor neu
|
||||
und prüft, dass FSIDs und Daten beider Subvolumes erhalten bleiben.
|
||||
Die Sparse-Testdatei wird auf ihren Inhalt geprüft; die physische Platzbelegung
|
||||
ist keine Zusicherung dieses Tests.
|
||||
The smoke test creates a subvolume snapshot, then changes the source and
|
||||
copies the unchanged snapshot to the target. It checks contents, file modes,
|
||||
POSIX ACLs, a user xattr, hardlinks, symlinks, quota operations and the
|
||||
isolation of the two clusters. `make dev-restart-check` restarts the lab and
|
||||
checks that the FSIDs and the data of both subvolumes are preserved. The
|
||||
sparse test file is checked for its content; physical space usage is not
|
||||
asserted by this test.
|
||||
|
||||
`source` und `target` sind unabhängige Ceph-Cluster mit unterschiedlichen FSIDs
|
||||
und Schlüsseln. Jeder enthält MON, MGR, OSD und MDS sowie das Dateisystem
|
||||
`cephfs`, die Subvolume-Gruppe `migration` und das Subvolume `demo`.
|
||||
Der Client mountet diese Subvolumes unter `/mnt/source` und `/mnt/target`.
|
||||
Für die von der Ceph-API gelieferten Snapshotpfade ist das Quelldateisystem
|
||||
zusätzlich unter `/mnt/source-fs` und das Ziel unter `/mnt/target-fs` gemountet;
|
||||
Subvolume-Snapshots liegen außerhalb
|
||||
des aktuellen Daten-UUID-Verzeichnisses.
|
||||
Es werden keine Host-Geräte formatiert und keine Ports am Host veröffentlicht.
|
||||
Die OSD-Daten liegen in Docker-Volumes. Die Replikationszahl 1 und die
|
||||
Administratorschlüssel im Testclient dienen ausschließlich dem lokalen Labor.
|
||||
Der Client ergänzt das feste Ceph-Basisimage um die festgeschriebene
|
||||
rsync-Paketversion. Das Journal kann unter `/state` in einem eigenen
|
||||
Docker-Volume dauerhaft gespeichert werden.
|
||||
`source` and `target` are independent Ceph clusters with different FSIDs and
|
||||
keys. Each contains a MON, MGR, OSD and MDS as well as the file system
|
||||
`cephfs`, the subvolume group `migration` and the subvolume `demo`. The
|
||||
client mounts these subvolumes at `/mnt/source` and `/mnt/target`. For the
|
||||
snapshot paths returned by the Ceph API, the source file system is also
|
||||
mounted at `/mnt/source-fs` and the target at `/mnt/target-fs`; subvolume
|
||||
snapshots live outside the current data UUID directory.
|
||||
No host devices are formatted and no ports are published on the host. The
|
||||
OSD data lives in Docker volumes. The replication factor 1 and the
|
||||
administrator keys in the test client are for the local lab only. The client
|
||||
extends the pinned Ceph base image with a pinned rsync package version. The
|
||||
journal can be stored permanently under `/state` in a dedicated Docker
|
||||
volume.
|
||||
|
||||
```sh
|
||||
# Status und Logs
|
||||
# Status and logs
|
||||
docker compose -f dev/compose.yaml logs --tail 100 source target client
|
||||
|
||||
# Ceph CLI gegen den Quellcluster
|
||||
# Ceph CLI against the source cluster
|
||||
docker compose -f dev/compose.yaml exec source ceph fs subvolume info cephfs demo --group_name migration
|
||||
|
||||
# Stoppen; die Daten bleiben für den nächsten Start erhalten
|
||||
# Stop; the data is kept for the next start
|
||||
make dev-down
|
||||
```
|
||||
|
||||
Für einen vollständig frischen Testlauf löscht
|
||||
`docker compose -f dev/compose.yaml down --volumes` **alle Labordaten**.
|
||||
Das Basisimage lässt sich mit `CEPH_IMAGE=quay.io/ceph/ceph:<version>` ändern.
|
||||
Die Dockerfiles enthalten Paket- und SDK-Pins für Ceph 21.2.0 / EL10; bei einem
|
||||
Versionswechsel müssen diese passend angepasst werden.
|
||||
Die Baseline ist Ceph Umbrella 21.2.0 gemäß der
|
||||
[offiziellen Releaseübersicht](https://docs.ceph.com/en/latest/releases/),
|
||||
geprüft am 05.11.2026.
|
||||
Das veröffentlichte Containerimage trägt intern den Versionszusatz `dev`;
|
||||
für die Reproduzierbarkeit ist zusätzlich der Image-Digest festgeschrieben.
|
||||
Der Bootstrap legt die Pools mit expliziten PG-Zahlen an, da das Standardkommando
|
||||
`fs volume create` in diesem Image mit `EINVAL` scheiterte.
|
||||
For a completely fresh test run,
|
||||
`docker compose -f dev/compose.yaml down --volumes` deletes **all lab data**.
|
||||
The base image can be changed with `CEPH_IMAGE=quay.io/ceph/ceph:<version>`.
|
||||
The Dockerfiles contain package and SDK pins for Ceph 21.2.0 / EL10; they
|
||||
must be adjusted when the version changes. The Go toolchain of the native
|
||||
image comes from a pinned `golang` image.
|
||||
The baseline is Ceph Umbrella 21.2.0 according to the
|
||||
[official release overview](https://docs.ceph.com/en/latest/releases/),
|
||||
checked on 2026-11-05.
|
||||
The published container image internally carries the version suffix `dev`;
|
||||
for reproducibility, the image digest is pinned as well.
|
||||
The bootstrap creates the pools with explicit PG counts, because the default
|
||||
command `fs volume create` failed with `EINVAL` in this image.
|
||||
|
||||
`ceph health detail` kann im Labor `POOL_NO_REDUNDANCY` (ein OSD) und
|
||||
`MON_DISK_LOW` (weniger als 30 % freier Platz im Host-Dateisystem) melden.
|
||||
Diese Meldungen werden nicht unterdrückt. Container-Healthchecks prüfen die
|
||||
Nutzbarkeit des Subvolumes; sie ersetzen keine Produktions-Healthchecks.
|
||||
`ceph health detail` can report `POOL_NO_REDUNDANCY` (one OSD) and
|
||||
`MON_DISK_LOW` (less than 30 % free space in the host file system) in the
|
||||
lab. These messages are not suppressed. Container health checks verify that
|
||||
the subvolume is usable; they do not replace production health checks.
|
||||
|
||||
## Zielgröße und Grenzen
|
||||
## Target size and limits
|
||||
|
||||
Zielgröße: bis zu 200 TB und mehr als 200 Millionen Dateien, einschließlich
|
||||
vorhandener Snapshots, POSIX-ACLs, xattrs und Quotas. Pro Node stehen zwei
|
||||
25-Gbit/s-Verbindungen zur Verfügung; effektiver Durchsatz und eine feste
|
||||
Obergrenze für den Schreibstopp werden später bestimmt. Die lokale Umgebung prüft
|
||||
Funktionen, bildet diese Datenmenge jedoch nicht ab. Der native Kopierer verwendet
|
||||
begrenzte Worker und Puffer, einen dauerhaften Index auf lokalem Datenträger und
|
||||
optionale Bandbreitendrosselung. Vollständige Metadatenscans bleiben erforderlich.
|
||||
Ein Nachweis für Speicher, Indexgröße, Laufzeit und finalen Schreibstopp fehlt.
|
||||
Target size: up to 200 TB and more than 200 million files, including existing
|
||||
snapshots, POSIX ACLs, xattrs and quotas. Each node has two 25 Gbit/s links;
|
||||
effective throughput and a fixed upper bound for the write stop will be
|
||||
determined later. The local environment verifies functionality but does not
|
||||
reproduce this amount of data. The native copier uses bounded workers and
|
||||
buffers, a persistent index on local disk and optional bandwidth limiting.
|
||||
Full metadata scans remain necessary. Evidence for memory, index size,
|
||||
runtime and the final write stop is missing.
|
||||
|
||||
1. Quelle, Ziel, Berechtigungen, Kapazität und benötigte Metadaten prüfen.
|
||||
2. Konsistenten Quellsnapshot erstellen und initial bei laufender Anwendung kopieren.
|
||||
3. Änderungen mit weiteren Snapshots und Abgleichen nachziehen.
|
||||
4. Alle schreibenden Anwendungen anhalten, offene Schreibvorgänge abschließen,
|
||||
letzten Snapshot übertragen und Daten sowie Metadaten verifizieren.
|
||||
5. Clients auf das Ziel ummounten und Anwendungen freigeben.
|
||||
1. Check source, target, permissions, capacity and required metadata.
|
||||
2. Create a consistent source snapshot and make the initial copy while the
|
||||
application keeps running.
|
||||
3. Catch up with changes through further snapshots and rounds.
|
||||
4. Stop all writing applications, complete pending writes, transfer the last
|
||||
snapshot and verify data and metadata.
|
||||
5. Remount the clients on the target and release the applications.
|
||||
6. Remove the migration snapshots with `cephmig cleanup`.
|
||||
|
||||
Ein Dateisystemsnapshot allein stellt keine Anwendungskonsistenz für Datenbanken
|
||||
her. Der finale Schreibstopp muss alle Clients umfassen. Ein Umhängen eines
|
||||
Mounts übernimmt keine bereits offenen Dateideskriptoren. Nach ersten
|
||||
Schreibzugriffen am Ziel benötigt ein Rückwechsel einen erneuten Abgleich.
|
||||
Die derzeit implementierte Datenübertragung ist im Labormodus prüfbar;
|
||||
produktive Umschaltung und Lastnachweise für die Zielgröße sind noch offen.
|
||||
A file system snapshot alone does not make databases application-consistent.
|
||||
The final write stop must cover all clients. Moving a mount does not carry
|
||||
over file descriptors that are already open. After the first writes to the
|
||||
target, switching back requires another round.
|
||||
The data transfer implemented so far can be verified in lab mode; a
|
||||
production cutover and load tests at the target size are still open.
|
||||
|
||||
Die Umgebung folgt dem
|
||||
[manuellen Ceph-Bootstrap](https://docs.ceph.com/en/latest/install/manual-deployment/).
|
||||
Die Einordnung des direkten RADOS-Objektimports und die Grenzen der nativen
|
||||
Implementierung stehen in [docs/raw-transfer.md](raw-transfer.md).
|
||||
The environment follows the
|
||||
[manual Ceph bootstrap](https://docs.ceph.com/en/latest/install/manual-deployment/).
|
||||
The assessment of a direct RADOS object import and the limits of the native
|
||||
implementation are in [docs/raw-transfer.md](raw-transfer.md).
|
||||
Reference in new issue
Block a user