ceph
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ceph [19.01.2023 12:59] – thooge | ceph [10.02.2023 06:38] (aktuell) – [Konfigurationsarbeiten] thooge | ||
|---|---|---|---|
| Zeile 14: | Zeile 14: | ||
| TODO Link! | TODO Link! | ||
| + | Ceph-Keyring nach '' | ||
| ===== Konfigurationsarbeiten ===== | ===== Konfigurationsarbeiten ===== | ||
| Zeile 23: | Zeile 24: | ||
| - Verschieben an die gewünschte Position< | - Verschieben an die gewünschte Position< | ||
| ceph osd crush move ceph-05 root=default | ceph osd crush move ceph-05 root=default | ||
| + | </ | ||
| + | - Monitoren mit [[Zabbix]]< | ||
| + | ceph mgr module enable zabbix | ||
| + | ceph zabbix config-set zabbix_host zabbix.localdomain | ||
| + | ceph zabbix config-set identifier ceph.local | ||
| + | |||
| + | ceph zabbix config-show | ||
| </ | </ | ||
| Zeile 49: | Zeile 57: | ||
| < | < | ||
| ceph-volume lvm create --no-systemd --bluestore --data /dev/sdb --block.db=/ | ceph-volume lvm create --no-systemd --bluestore --data /dev/sdb --block.db=/ | ||
| - | |||
| - | ceph auth add osd.2 osd 'allow *' mon 'allow rwx' -i / | ||
| - | ceph osd crush add osd.2 | ||
| - | ceph osd crush reweight osd.2 1.8 | ||
| </ | </ | ||
| + | Die Angabe des Block-DB-Gerätes mit einfachem Gerätenamen funktioniert ist jedoch ggf. | ||
| + | unschön. Besser den Gerätenamen aus ''/ | ||
| + | '' | ||
| - | OSD starten | + | Anschließend die OSD-UUID ermitteln und einen Eintrag in der '' |
| + | vornehmen. | ||
| + | cat / | ||
| + | |||
| + | <file conf ceph.conf> | ||
| + | [osd.26] | ||
| + | host = ceph-02 | ||
| + | public addr = 192.168.5.2 | ||
| + | cluster addr = 192.168.6.2 | ||
| + | osd_uuid = 8ac32f08-b63b-4593-b05f-bfdee6deec83 | ||
| + | </ | ||
| + | |||
| + | |||
| + | OSD starten, die neue Platte sollte sich unter dem Host einsortieren | ||
| + | / | ||
| Prüfe mit | Prüfe mit | ||
| Zeile 71: | Zeile 92: | ||
| </ | </ | ||
| + | ===== Tips und Kommandos ===== | ||
| + | |||
| + | < | ||
| + | ceph auth add osd.2 osd 'allow *' mon 'allow rwx' -i / | ||
| + | ceph osd crush add osd.2 | ||
| + | ceph osd crush reweight osd.2 1.8 | ||
| + | </ | ||
| + | |||
| + | ===== Failure-Domain / Buckets ===== | ||
| + | |||
| + | < | ||
| + | ceph osd crush add-bucket raum1 room | ||
| + | ceph osd crush add-bucket raum2 room | ||
| + | ceph osd crush add-bucket maum3 room | ||
| + | |||
| + | ceph osd crush move raum1 root=default | ||
| + | ceph osd crush move raum2 root=default | ||
| + | ceph osd crush move rau,3 root=default | ||
| + | |||
| + | ceph osd crush move osd.0 room=raum1 | ||
| + | </ | ||
ceph.1674133188.txt.gz · Zuletzt geändert: von thooge
