Using the addr option to identify hosts
The addr option offers an additional way to contact a host. Add the IP
address of the host to the addr option. If ssh cannot connect to
the host by its hostname, then it uses the value stored in addr to reach the host
by its IP address.
Prerequisites
Before you begin, make sure that you have the following prerequisites in place:
-
A storage cluster is installed and bootstrapped.
-
Root-level access to all nodes in the storage cluster.
Procedure
-
Log in to the
cephadmshell:Example
[root@host01 ~]# cephadm shell -
Add the IP address:
Syntax
ceph orch host add HOSTNAME IP_ADDRExample
[ceph: root@host01 /]# ceph orch host add host02 10.10.128.68Note: If adding a host by hostname results in that host being added with an IPv6 address instead of an IPv4 address, use the ceph orch host command to specify the IP address of that host:Syntax
ceph orch host set-addr HOSTNAME IP_ADDRTo convert the IP address from IPv6 format to IPv4 format for a host you have added, use the following command:
ceph orch host set-addr HOSTNAME IPV4_ADDRESS