3.17. Ansible を使用した Ceph Object Gateway の削除
Ansible を使用して Ceph Object Gateway を削除するには、Playbook の shrink-rgw.yml を使用します。
前提条件
- Ansible 管理ノード。
- Ansible によりデプロイされた実行中の Red Hat Ceph Storage クラスター
手順
/usr/share/ceph-ansible/ディレクトリーに移動します。[user@admin ~]$ cd /usr/share/ceph-ansibleベアメタル および コンテナー のデプロイメントに、Ansible Playbook の
shrink-mgr.ymlを実行します。構文
ansible-playbook infrastructure-playbooks/shrink-rgw.yml -e rgw_to_kill=HOSTNAME.rgw_INSTANCE_NAME_ -u ANSIBLE_USER_NAME -i hosts以下を置き換えます。
-
HOSTNAMEは、Ceph Object Gateway ノードの短縮ホスト名に置き換えます。Playbook を実行するたびに、Ceph Object Gateway を 1 つだけ削除できます。 -
ANSIBLE_USER_NAMEは、Ansible ユーザーの名前に置き換えてください。
例
[user@admin ceph-ansible]$ ansible-playbook infrastructure-playbooks/shrink-rgw.yml -e rgw_to_kill=node03.rgw0 -u admin -i hosts-
- ストレージクラスター内のすべての Ceph 設定ファイルから Ceph Object Gateway エントリーを削除します。
Ceph Object Gateway が正常に削除されていることを確認します。
[root@mon ~]# ceph -s