13.10. 수동으로 mgr 데몬 배포
cephadm에는 Red Hat Ceph Storage 클러스터를 관리하려면 mgr
데몬이 필요합니다. Red Hat Ceph Storage 클러스터의 마지막 mgr
데몬이 제거된 경우 Red Hat Ceph Storage 클러스터의 임의 호스트에 mgr
데몬을 수동으로 배포할 수 있습니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터.
- 모든 노드에 대한 루트 수준 액세스.
- 호스트가 클러스터에 추가됩니다.
프로세스
Cephadm 쉘에 로그인합니다.
예제
[root@host01 ~]# cephadm shell
다음 명령을 사용하여 Cephadm이 새 MGR 데몬을 제거하지 못하도록 Cephadm 스케줄러를 비활성화합니다.
예제
[ceph: root@host01 /]# ceph config-key set mgr/cephadm/pause true
새 MGR 데몬의
auth
항목을 가져오거나 생성합니다.예제
[ceph: root@host01 /]# ceph auth get-or-create mgr.host01.smfvfd1 mon "profile mgr" osd "allow *" mds "allow *" [mgr.host01.smfvfd1] key = AQDhcORgW8toCRAAlMzlqWXnh3cGRjqYEa9ikw==
ceph.conf
파일을 엽니다.예제
[ceph: root@host01 /]# ceph config generate-minimal-conf # minimal ceph.conf for 8c9b0072-67ca-11eb-af06-001a4a0002a0 [global] fsid = 8c9b0072-67ca-11eb-af06-001a4a0002a0 mon_host = [v2:10.10.200.10:3300/0,v1:10.10.200.10:6789/0] [v2:10.10.10.100:3300/0,v1:10.10.200.100:6789/0]
컨테이너 이미지를 가져옵니다.
예제
[ceph: root@host01 /]# ceph config get "mgr.host01.smfvfd1" container_image
config-json.json
파일을 생성하고 다음을 추가합니다.참고ceph config generate-minimal-conf
명령의 출력에서 값을 사용합니다.예제
{ { "config": "# minimal ceph.conf for 8c9b0072-67ca-11eb-af06-001a4a0002a0\n[global]\n\tfsid = 8c9b0072-67ca-11eb-af06-001a4a0002a0\n\tmon_host = [v2:10.10.200.10:3300/0,v1:10.10.200.10:6789/0] [v2:10.10.10.100:3300/0,v1:10.10.200.100:6789/0]\n", "keyring": "[mgr.Ceph5-2.smfvfd1]\n\tkey = AQDhcORgW8toCRAAlMzlqWXnh3cGRjqYEa9ikw==\n" } }
Cephadm 쉘을 종료합니다.
예제
[ceph: root@host01 /]# exit
MGR 데몬을 배포합니다.
예제
[root@host01 ~]# cephadm --image registry.redhat.io/rhceph-alpha/rhceph-6-rhel9:latest deploy --fsid 8c9b0072-67ca-11eb-af06-001a4a0002a0 --name mgr.host01.smfvfd1 --config-json config-json.json
검증
Cephadm 쉘에서 다음 명령을 실행합니다.
예제
[ceph: root@host01 /]# ceph -s
새 mgr
데몬이 추가된 것을 확인할 수 있습니다.