Deploying the NVMe-oF gateway
The Ceph NVMe-oF gateway is the NVMe-oF target node and also a Ceph client node. The Ceph NVMe-oF gateway can be a stand-alone node or be collocated on a Ceph Object Storage Daemon (OSD) node.
Before you begin
Use this information to install the Ceph NVMe-oF gateway with the cephadm command-line interface. To deploy and manage the NVMe-oF gateway with the Ceph Dashboard, see Managing the Ceph NVMe-oF gateway.
For multi-gateway group deployment, repeat any deployment method to configure newer NVMe-oF services.
About this task
For more information, see Deploying by using a service specification file.
If deployment is not done through the service specification, the specification file can be modified at any point to include the encryption key.
For more information, see step 2 of Deploying by using a service specification file. Be sure to use the ceph orch apply command to apply the changes.
Procedure
- High Availability is enabled by default. To use High Availability, a minimum of two gateways and listeners must be defined.
- Ensure an NVMe-oF gateway node is always part of single gateway group.
- Gateway group names must be unique.
Deploying by specifying the number of daemons and hostnames
nvmeof daemon by specifying the number of daemons and hostnames, using the ceph orch apply nvmeof command.
ceph orch apply nvmeof NVME-OF_GROUP_NAME --placement="NUMBER_OF_NODES NODE1 NODE2,..."
[ceph: root@host01 /]# ceph orch apply nvmeof nvmeof_group01 --placement="2 host01 host02"
nvmeof services on Ceph nodes that are not part of any other gateway group. The following example is for nvmeof_group2.
[ceph: root@host01 /]# ceph orch apply nvmeof nvmeof_group2 --placement="2 host04 host05"
What to do next
ceph orch redeploy nvmeof.SERVICE_NAME
For example,
[ceph: root@host01 /]# ceph orch redeploy nvmeof.nvmeof-pool Scheduled to redeploy nvmeof.nvmeof-pool.a-rhel9-node2.blhrht on host 'a-rhel9-node2'
Deploying by adding labels to the hosts
Add labels to the hosts and set up the daemons by using the labels.
About this task
When planning to deploy multiple gateway groups, maintain identical labels on gateways that will be part of same gateway group and change the label information in these steps, as needed.
Procedure
Deploying by using a service specification file
Install NVMe daemons by using the service specification file.
About this task
For more information about adding and removing hosts with the service specification file, see Managing gateways with a specification file. To obtain optimal performance when first starting the gateway, consider the Ceph NVMe-oF gateway best practices per NVMe-oF gateway performance best practices.