검색

2.3. 모든 Ceph 서비스 시작, 중지 및 다시 시작

download PDF

Ceph 서비스는 동일한 Red Hat Ceph Storage 클러스터에서 실행되도록 구성된 동일한 유형의 Ceph 데몬의 논리 그룹입니다. Ceph의 오케스트레이션 계층을 사용하면 이러한 서비스를 중앙 집중식 방식으로 관리할 수 있으므로 동일한 논리 서비스에 속하는 모든 Ceph 데몬에 영향을 주는 작업을 쉽게 실행할 수 있습니다. 각 호스트에서 실행되는 Ceph 데몬은 Systemd 서비스를 통해 관리됩니다. Ceph 서비스를 관리하려는 호스트에서 모든 Ceph 서비스를 시작, 중지 및 다시 시작할 수 있습니다.

중요

특정 호스트에서 특정 Ceph 데몬을 시작, 중지 또는 다시 시작하려면 SystemD 서비스를 사용해야 합니다. 특정 호스트에서 실행 중인 SystemD 서비스 목록을 가져오려면 호스트에 연결하고 다음 명령을 실행합니다.

예제

[root@host01 ~]# systemctl list-units “ceph*”

출력에 각 Ceph 데몬을 관리하는 데 사용할 수 있는 서비스 이름 목록이 표시됩니다.

사전 요구 사항

  • 실행 중인 Red Hat Ceph Storage 클러스터.
  • 노드에 root 액세스 권한이 있어야 합니다.

프로세스

  1. Cephadm 쉘에 로그인합니다.

    예제

    [root@host01 ~]# cephadm shell

  2. ceph orch ls 명령을 실행하여 Red Hat Ceph Storage 클러스터에 구성된 Ceph 서비스 목록을 가져오고 특정 서비스 ID를 가져옵니다.

    예제

    [ceph: root@host01 /]# ceph orch ls
    NAME                       RUNNING  REFRESHED  AGE  PLACEMENT  IMAGE NAME                                                       IMAGE ID
    alertmanager                   1/1  4m ago     4M   count:1    registry.redhat.io/openshift4/ose-prometheus-alertmanager:v4.5   b7bae610cd46
    crash                          3/3  4m ago     4M   *          registry.redhat.io/rhceph-alpha/rhceph-6-rhel9:latest            c88a5d60f510
    grafana                        1/1  4m ago     4M   count:1    registry.redhat.io/rhceph-alpha/rhceph-6-dashboard-rhel9:latest  bd3d7748747b
    mgr                            2/2  4m ago     4M   count:2    registry.redhat.io/rhceph-alpha/rhceph-6-rhel9:latest            c88a5d60f510
    mon                            2/2  4m ago     10w  count:2    registry.redhat.io/rhceph-alpha/rhceph-6-rhel9:latest            c88a5d60f510
    nfs.foo                        0/1  -          -    count:1    <unknown>                                                        <unknown>
    node-exporter                  1/3  4m ago     4M   *          registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.5  mix
    osd.all-available-devices      5/5  4m ago     3M   *          registry.redhat.io/rhceph-alpha/rhceph-6-rhel9:latest            c88a5d60f510
    prometheus                     1/1  4m ago     4M   count:1    registry.redhat.io/openshift4/ose-prometheus:v4.6                bebb0ddef7f0
    rgw.test_realm.test_zone       2/2  4m ago     3M   count:2    registry.redhat.io/rhceph-alpha/rhceph-6-rhel9:latest            c88a5d60f510

  3. 특정 서비스를 시작하려면 다음 명령을 실행합니다.

    구문

    ceph orch start SERVICE_ID

    예제

    [ceph: root@host01 /]# ceph orch start node-exporter

  4. 특정 서비스를 중지하려면 다음 명령을 실행합니다.

    중요

    ceph orch stop SERVICE_ID 명령은 MON 및 MGR 서비스에 대해서만 Red Hat Ceph Storage 클러스터에 액세스할 수 없게 됩니다. systemctl stop SERVICE_ID 명령을 사용하여 호스트에서 특정 데몬을 중지하는 것이 좋습니다.

    구문

    ceph orch stop SERVICE_ID

    예제

    [ceph: root@host01 /]# ceph orch stop node-exporter

    예제에서 ceph orch stop node-exporter 명령은 노드 내보내기 서비스의 모든 데몬을 제거합니다.

  5. 특정 서비스를 다시 시작하려면 다음 명령을 실행합니다.

    구문

    ceph orch restart SERVICE_ID

    예제

    [ceph: root@host01 /]# ceph orch restart node-exporter

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.