Zum Inhalt

Konfiguration

Rook-Ressourcen anzeigen

Befehl Aktion
kubectl -n rook-ceph get cephcluster -o yaml CephCluster-Ressource als YAML anzeigen
kubectl -n rook-ceph get cephblockpool -o yaml Alle CephBlockPool-Ressourcen als YAML anzeigen

Konfiguration ändern

Befehl Aktion
kubectl -n rook-ceph edit cephcluster <NAME> CephCluster-Ressource interaktiv bearbeiten
kubectl -n rook-ceph edit cephblockpool <POOL> CephBlockPool-Ressource interaktiv bearbeiten

Rook-Toolbox und Live-Beobachtung

Befehl Aktion
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- bash Shell in der Rook-Toolbox öffnen
ceph -w / watch ceph status Clusterzustand live beobachten
ceph status Aktuellen Clusterzustand anzeigen
ceph osd pool ls detail Pools inkl. Replikation/Failure Domain anzeigen
ceph df Kapazität von Cluster und Pools anzeigen

Auswirkungen einer Änderung prüfen

Befehl Aktion
kubectl -n rook-ceph get pods -l app=rook-ceph-mgr MGR-Pods nach einer Konfigurationsänderung prüfen
kubectl exec <POD> -- ls -lh <FILE> Prüfen, ob Testdaten unverändert vorhanden sind
kubectl exec <POD> -- dd if=/dev/urandom of=<FILE> bs=1M count=<N> Testdaten auf ein Volume schreiben