Removing the admin label from a host

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

Prerequisites

  • 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:

    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:

    Example

     [root@host01 ~]# cephadm shell
  3. Use the ceph orchestrator to remove the admin label from a host:

    Syntax

     ceph orch host label rm HOSTNAME LABEL

    Example

     [ceph: root@host01 /]# ceph orch host label rm host03 _admin
  4. Verify that the admin host has the _admin label.

    Example

     [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. Also, the node must be removed from the admin Ansible inventory file.