Removing the admin label from a host

You can use the Ceph orchestrator to remove the admin label from a host.

Before you begin

Before you begin, make sure that you have the following prerequisites in place:
  • A running storage cluster with cephadm installed and bootstrapped.
  • The storage cluster has running Monitor and Manager nodes.
  • Root-level access to all nodes in the cluster.

Procedure

  1. Use the ceph orch host ls command to view the hosts and identify the admin host in your storage cluster.
    For example,
    [root@host01 ~]# ceph orch host ls
     HOST   ADDR   LABELS  STATUS
     host01        mon,mgr,_admin
     host02        mon
     host03        mon,mgr,_admin
     host04
     host05
     host06
  2. Log into the cephadm shell.
    For example,
    [root@host01 ~]# cephadm shell
    [ceph: root@host01 /]# 
  3. Use the Ceph Orchetrator to remove the _admin label from the host.
    ceph orch host label rm HOSTNAME LABEL
    For example,
    [ceph: root@host01 /]# ceph orch host label rm host03 _admin

What to do next

Verify that the admin host has the _admin label.
[root@host01 ~]#  ceph orch host ls
 HOST   ADDR   LABELS  STATUS
 host01        mon,mgr,_admin
 host02        mon
 host03        mon,mgr
 host04
 host05
 host06
 
Important:
  • After removing the admin label from a node, ensure you remove the ceph.conf and client.admin keyring files from that node.
  • The node must be removed from the admin Ansible inventory file.