Adding topological labels to a host
Use topological labels in multi-rack environments to help cephadm be aware of the
topological layout of the hosts in the cluster. Topological labels enable upgrade operations on
specific hosts.
Before you begin
- A storage cluster is installed and bootstrapped.
- Root-level access to all nodes in the storage cluster.
About this task
Add topological labels either with the command-line interface or with the host specification file.
Adding topological labels with the command-line interface
Add topological labels with the cephadm shell with either the host add
or set-topological-labels commands.
About this task
Procedure
Use one of the following commands to add topological labels to a host:
Adding topological labels with a service specification file
Set topological labels from within the host specification file.
Procedure
Add topical labels to the host service specification file.
service_type: host
hostname: HOSTNAME
addr: IP_ADDRESS
toplogical_labels:
HARDWARE_IDENTIFIER1: USER_LABEL1
HARDWARE_IDENTIFIER2: USER_LABEL2
For example,
service_type: host hostname: host02 addr: 10.10.128.69 toplogical_labels: datacenter: A rack: 3