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
関連情報
- Red Hat Ceph Storage のインストールに関する詳細は、Red Hat Ceph Storage インストールガイド を参照してください。
- Ansible インベントリー設定の詳細は、{storage_product} インストールガイド の Ansible のインベントリーの場所の設定 セクションを参照してください。