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
cephadminstalled and bootstrapped. -
The storage cluster has running Monitor and Manager nodes.
-
Root-level access to all nodes in the cluster.
Procedure
-
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 -
Log into the Cephadm shell:
Example
[root@host01 ~]# cephadm shell -
Use the ceph orchestrator to remove the admin label from a host:
Syntax
ceph orch host label rm HOSTNAME LABELExample
[ceph: root@host01 /]# ceph orch host label rm host03 _admin -
Verify that the admin host has the
_adminlabel.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.