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 Copy linkLink copied to clipboard!
- 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 Copy linkLink copied to clipboard!
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
cephadm shell
[root@host01 ~]# cephadm shell
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the pool:
Syntax
ceph osd pool create POOL_NAME
ceph osd pool create POOL_NAME
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# ceph osd pool create mypool
[ceph: root@host01 /]# ceph osd pool create mypool
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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"
ceph orch apply iscsi POOLNAME admin admin --placement="NUMBER_OF_DAEMONS HOST_NAME_1 HOST_NAME_2"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# ceph orch apply iscsi mypool admin admin --placement="1 host01"
[ceph: root@host01 /]# ceph orch apply iscsi mypool admin admin --placement="1 host01"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
List the service:
Example
[ceph: root@host01 /]# ceph orch ls
[ceph: root@host01 /]# ceph orch ls
Copy to Clipboard Copied! Toggle word wrap Toggle overflow List the hosts and process:
Syntax
ceph orch ps --daemon_type=DAEMON_NAME
ceph orch ps --daemon_type=DAEMON_NAME
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# ceph orch ps --daemon_type=iscsi
[ceph: root@host01 /]# ceph orch ps --daemon_type=iscsi
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.3. Deploying the iSCSI gateway using the service specification Copy linkLink copied to clipboard!
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
touch iscsi.yml
[root@host01 ~]# touch iscsi.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
iscsi.yml
file to include the following details:Syntax
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Mount the YAML file under a directory in the container:
Example
cephadm shell --mount iscsi.yaml:/var/lib/ceph/iscsi.yaml
[root@host01 ~]# cephadm shell --mount iscsi.yaml:/var/lib/ceph/iscsi.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Navigate to the following directory:
Syntax
cd /var/lib/ceph/DAEMON_PATH/
cd /var/lib/ceph/DAEMON_PATH/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# cd /var/lib/ceph/
[ceph: root@host01 /]# cd /var/lib/ceph/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy iSCSI gateway using service specification:
Syntax
ceph orch apply -i FILE_NAME.yml
ceph orch apply -i FILE_NAME.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 iscsi]# ceph orch apply -i iscsi.yml
[ceph: root@host01 iscsi]# ceph orch apply -i iscsi.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
List the service:
Example
[ceph: root@host01 /]# ceph orch ls
[ceph: root@host01 /]# ceph orch ls
Copy to Clipboard Copied! Toggle word wrap Toggle overflow List the hosts, daemons, and processes:
Syntax
ceph orch ps --daemon_type=DAEMON_NAME
ceph orch ps --daemon_type=DAEMON_NAME
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# ceph orch ps --daemon_type=iscsi
[ceph: root@host01 /]# ceph orch ps --daemon_type=iscsi
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.4. Removing the iSCSI gateway using the Ceph Orchestrator Copy linkLink copied to clipboard!
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
cephadm shell
[root@host01 ~]# cephadm shell
Copy to Clipboard Copied! Toggle word wrap Toggle overflow List the service:
Example
[ceph: root@host01 /]# ceph orch ls
[ceph: root@host01 /]# ceph orch ls
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the service
Syntax
ceph orch rm SERVICE_NAME
ceph orch rm SERVICE_NAME
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# ceph orch rm iscsi.iscsi
[ceph: root@host01 /]# ceph orch rm iscsi.iscsi
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
List the hosts, daemons, and processes:
Syntax
ceph orch ps
ceph orch ps
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example
[ceph: root@host01 /]# ceph orch ps
[ceph: root@host01 /]# ceph orch ps
Copy to Clipboard Copied! Toggle word wrap Toggle overflow