Chapter 12. Management of iSCSI gateway using the Ceph Orchestrator (Limited Availability)
As a storage administrator, you can use Ceph Orchestrator to deploy the iSCSI gateway. The iSCSI Gateway presents a Highly Available (HA) iSCSI target that exports RADOS Block Device (RBD) images as SCSI disks.
You can deploy an iSCSI gateway by either using the placement specification or the service specification, like an YAML file.
This technology is Limited Availability. See the Deprecated functionality chapter for additional information.
This section covers the following administrative tasks:
12.1. Prerequisites
- A running Red Hat Ceph Storage cluster.
- Root-level access to all the nodes.
- Hosts are added to the cluster.
- All manager, monitor and OSD daemons are deployed.
12.2. Deploying the iSCSI gateway using the command line interface
Using the Ceph Orchestrator, you can deploy the iSCSI gateway using the ceph orch
command in the command line interface.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- Hosts are added to the cluster.
- All manager, monitor and OSD daemons are deployed.
Procedure
Log into the Cephadm shell:
Example
[root@host01 ~]# cephadm shell
Create the pool:
Syntax
ceph osd pool create POOL_NAME
Example
[ceph: root@host01 /]# ceph osd pool create mypool
Deploy iSCSI gateway using command line interface:
Syntax
ceph orch apply iscsi POOLNAME admin admin --placement="NUMBER_OF_DAEMONS HOST_NAME_1 HOST_NAME_2"
Example
[ceph: root@host01 /]# ceph orch apply iscsi mypool admin admin --placement="1 host01"
Verification
List the service:
Example
[ceph: root@host01 /]# ceph orch ls
List the hosts and process:
Syntax
ceph orch ps --daemon_type=DAEMON_NAME
Example
[ceph: root@host01 /]# ceph orch ps --daemon_type=iscsi
12.3. Deploying the iSCSI gateway using the service specification
Using the Ceph Orchestrator, you can deploy the iSCSI gateway using the service specification.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- Hosts are added to the cluster.
- All manager, monitor and OSD daemons are deployed.
Procedure
Create the
iscsi.yml
file:Example
[root@host01 ~]# touch iscsi.yml
Edit the
iscsi.yml
file to include the following details:Syntax
service_type: iscsi service_id: iscsi placement: hosts: - HOST_NAME_1 - HOST_NAME_2 spec: pool: POOL_NAME # RADOS pool where ceph-iscsi config data is stored. trusted_ip_list: "IP_ADDRESS_1,IP_ADDRESS_2" # optional api_port: ... # optional api_user: API_USERNAME # optional api_password: API_PASSWORD # optional api_secure: true/false # optional ssl_cert: | # optional ... ssl_key: | # optional ...
Example
service_type: iscsi service_id: iscsi placement: hosts: - host01 spec: pool: mypool
Mount the YAML file under a directory in the container:
Example
[root@host01 ~]# cephadm shell --mount iscsi.yaml:/var/lib/ceph/iscsi.yaml
Navigate to the following directory:
Syntax
cd /var/lib/ceph/DAEMON_PATH/
Example
[ceph: root@host01 /]# cd /var/lib/ceph/
Deploy iSCSI gateway using service specification:
Syntax
ceph orch apply -i FILE_NAME.yml
Example
[ceph: root@host01 iscsi]# ceph orch apply -i iscsi.yml
Verification
List the service:
Example
[ceph: root@host01 /]# ceph orch ls
List the hosts, daemons, and processes:
Syntax
ceph orch ps --daemon_type=DAEMON_NAME
Example
[ceph: root@host01 /]# ceph orch ps --daemon_type=iscsi
12.4. Removing the iSCSI gateway using the Ceph Orchestrator
You can remove the iSCSI gateway daemons using the ceph orch rm
command.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- Root-level access to all the nodes.
- Hosts are added to the cluster.
- At least one iSCSI gateway daemon deployed on the hosts.
Procedure
Log into the Cephadm shell:
Example
[root@host01 ~]# cephadm shell
List the service:
Example
[ceph: root@host01 /]# ceph orch ls
Remove the service
Syntax
ceph orch rm SERVICE_NAME
Example
[ceph: root@host01 /]# ceph orch rm iscsi.iscsi
Verification
List the hosts, daemons, and processes:
Syntax
ceph orch ps
Example
[ceph: root@host01 /]# ceph orch ps
Additional Resources
- See Deploying the iSCSI gateway using the command line interface section in the Red Hat Ceph Storage Operations Guide for more information.
- See Deploying the iSCSI gateway using the service specification section in the Red Hat Ceph Storage Operations Guide for more information.