使用--daemon_type=DAEMON选筛选特定守护进程 ceph orch ps --daemon_type=osd NAME HOST PORTS STATUS REFRESHED AGE MEM USE MEM LIM VERSION IMAGE ID CONTAINER ID osd.0 cephadm-3 running (13d) 118s ago 13d 649M 4096M 17.2.8 259b35566514 1f95dbaebbee osd.1 cephadm-3 running (13d) 118s ago 13d 719M 4096M 17.2.8 259b35566514 362323dddb54 osd.2 cephadm-3 running (13d) 118s ago 13d 692M 4096M 17.2.8 259b35566514 3b0b783bb7de osd.3 cephadm-2 running (13d) 117s ago 13d 618M 4096M 17.2.8 259b35566514 b264677293a3 osd.4 cephadm-1 running (13d) 118s ago 13d 599M 4096M 17.2.8 259b35566514 bcc1be4e4d72 osd.5 cephadm-2 running (13d) 117s ago 13d 717M 4096M 17.2.8 259b35566514 7bb8614175a4 osd.6 cephadm-1 running (13d) 118s ago 13d 602M 4096M 17.2.8 259b35566514 4defe8190a41 osd.7 cephadm-2 running (13d) 117s ago 13d 722M 4096M 17.2.8 259b35566514 13b444da41b6 osd.8 cephadm-1 running (13d) 118s ago 13d 879M 4096M 17.2.8 259b35566514 746950dd7060
使用systemctl重启ceph进程 直接在主机上使用systemctl管理: systemctl list-units 'ceph*' UNIT LOAD ACTIVE SUB DESCRIPTION ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@crash.cephadm-1.service loaded active running Ceph crash.> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@iscsi.iscsi.cephadm-1.spcmkp.service loaded active runnin> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@mds.ws-cephfs.cephadm-1.cvcevd.service loaded active runn> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@mgr.cephadm-1.cedioe.service loaded active running Ceph m> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@mon.cephadm-1.service loaded active running Ceph mon.ceph> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@nfs.cephfs-nfs.0.0.cephadm-1.tbqbkw.service loaded active> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@node-exporter.cephadm-1.service loaded active running Cep> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@osd.4.service loaded active running Ceph osd.4 for 8b2788> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@osd.6.service loaded active running Ceph osd.6 for 8b2788> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@osd.8.service loaded active running Ceph osd.8 for 8b2788> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113@rgw.realm.zone.cephadm-1.caxyqu.service loaded active run> ceph-8b27889e-52af-11f0-bedb-bc2411f9a113.target loaded active active Ceph cluster 8b27889e-52a> ceph.target loaded active active All Ceph clusters and ser>
systemctl restart ceph.target
使用ceph orch重启ceph进程 orch ls NAME PORTS RUNNING REFRESHED AGE PLACEMENT alertmanager ?:9093,9094 1/1 8m ago 2w count:1 crash 4/4 8m ago 2w * grafana ?:3000 1/1 8m ago 2w count:1 iscsi.iscsi ?:5000 3/3 6m ago 20h cephadm-1;cephadm-2;cephadm-3 mds.ws-cephfs 3/3 6m ago 15h cephadm-1;cephadm-2;cephadm-3 mgr 4/4 8m ago 20h ansible;cephadm-1;cephadm-2;cephadm-3 mon 3/3 6m ago 20h cephadm-1;cephadm-2;cephadm-3 nfs.cephfs-nfs ?:2049 3/3 6m ago 22h cephadm-1;cephadm-2;cephadm-3 node-exporter ?:9100 4/4 8m ago 2w * osd.default_drive_group 9 6m ago 20h count:3;label:ssd-node;cephadm-* prometheus ?:9095 1/1 8m ago 2w count:1 rgw.realm.zone ?:8080 4/4 6m ago 20h cephadm-1;cephadm-2;cephadm-3;count:4