ceph learn brook 2024-09-09 ceph learn deploycephadm12345# step1 monitorcephadm bootstrap --mon-ip *<mon-ip>*# ceph shellsudo ./cephadm shell service12345# check all vaild serviceceph orch ls# check all vaild/invaild serviceceph orch ps health1ceph df host123456789101112131415# list hostceph orch host ls --detail# add hostssh-copy-id -f -i /etc/ceph/ceph.pub root@*<new-host>*ceph orch host add *<newhost>* [*<ip>*] [*<label1> ...*]# e.g. ceph orch host add host2 10.10.0.102 --labels _admin# remove hostceph orch host drain *<host>*ceph orch ps <host> # daemons on the hostceph orch host rm <host> # remove the host from the cluster after all daemons have been removed# add storageceph orch apply osd --all-available-devices osd12345678910# listceph orch device ls# Creating New OSDsceph orch apply osd --all-available-devices# orceph orch daemon add osd *<host>*:*<device-path>*# e.g.ceph orch daemon add osd host1:/dev/sdbceph orch daemon add osd host1:data_devices=/dev/sda,/dev/sdb,db_devices=/dev/sdc,osds_per_device=2 RGW radosgw 123456789101112# enable rgwceph mgr module enable rgw# config rgw name e.g. fooceph orch apply rgw foo# lable host ceph orch host label add gwhost1 rgw # the 'rgw' label can be anythingceph orch host label add gwhost2 rgw# applyceph orch apply rgw foo '--placement=label:rgw count-per-host:2' --port=8000 Ceph Object Gateway