1 ==============================
2 Manual ceph-iscsi Installation
3 ==============================
7 To complete the installation of ceph-iscsi, there are 4 steps:
9 1. Install common packages from your Linux distribution's software repository
10 2. Install Git to fetch the remaining packages directly from their Git repositories
11 3. Ensure a compatible kernel is used
12 4. Install all the components of ceph-iscsi and start associated daemons:
21 1. Install Common Packages
22 ==========================
24 The following packages will be used by ceph-iscsi and target tools.
25 They must be installed from your Linux distribution's software repository
26 on each machine that will be a iSCSI gateway:
49 In order to install all the packages needed to run iSCSI with Ceph, you need to download them directly from their repository by using Git.
50 On CentOS/RHEL execute:
56 On Debian/Ubuntu execute:
62 To know more about Git and how it works, please, visit https://git-scm.com
65 3. Ensure a compatible kernel is used
66 =====================================
68 Ensure you use a supported kernel that contains the required Ceph iSCSI patches:
70 - all Linux distribution with a kernel v4.16 or newer, or
71 - Red Hat Enterprise Linux or CentOS 7.5 or later (in these distributions ceph-iscsi support is backported)
73 If you are already using a compatible kernel, you can go to next step.
74 However, if you are NOT using a compatible kernel then check your distro's
75 documentation for specific instructions on how to build this kernel. The only
76 Ceph iSCSI specific requirements are that the following build options must be
87 ========================================================
89 Finally, the remaining tools can be fetched directly from their Git repositories and their associated services started
99 git clone https://github.com/open-iscsi/tcmu-runner
102 Run the following command to install all the needed dependencies:
106 ./extra/install_dep.sh
108 Now you can build the tcmu-runner.
109 To do so, use the following build command:
113 cmake -Dwith-glfs=false -Dwith-qcow=false -DSUPPORT_SYSTEMD=ON -DCMAKE_INSTALL_PREFIX=/usr
116 Enable and start the daemon:
120 systemctl daemon-reload
121 systemctl enable tcmu-runner
122 systemctl start tcmu-runner
132 git clone https://github.com/open-iscsi/rtslib-fb.git
134 python setup.py install
143 git clone https://github.com/open-iscsi/configshell-fb.git
145 python setup.py install
154 git clone https://github.com/open-iscsi/targetcli-fb.git
156 python setup.py install
160 .. warning:: The ceph-iscsi tools assume they are managing all targets
161 on the system. If targets have been setup and are being managed by
162 targetcli the target service must be disabled.
171 git clone https://github.com/ceph/ceph-iscsi.git
173 python setup.py install --install-scripts=/usr/bin
174 cp usr/lib/systemd/system/rbd-target-gw.service /lib/systemd/system
175 cp usr/lib/systemd/system/rbd-target-api.service /lib/systemd/system
177 Enable and start the daemon:
181 systemctl daemon-reload
182 systemctl enable rbd-target-gw
183 systemctl start rbd-target-gw
184 systemctl enable rbd-target-api
185 systemctl start rbd-target-api
187 Installation is complete. Proceed to the setup section in the
188 `main ceph-iscsi CLI page`_.
190 .. _`main ceph-iscsi CLI page`: ../iscsi-target-cli