CentOS7をiSCSIターゲットにする。
過去記事 iSCSI/Target180825
導入するパッケージは targetcli
[root@c ~]# yum info targetcli
読み込んだプラグイン:fastestmirror, langpacks, versionlock
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* extras: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: ftp.riken.jp
利用可能なパッケージ
名前 : targetcli
アーキテクチャー : noarch
バージョン : 2.1.fb46
リリース : 6.el7_5
容量 : 67 k
リポジトリー : updates/7/x86_64
要約 : An administration shell for storage targets
URL : https://fedorahosted.org/targetcli-fb/
ライセンス : ASL 2.0
説明 : An administration shell for configuring iSCSI, FCoE, and other
: SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
: users will also need to install and use fcoe-utils.
[root@c ~]#
targetcli は、「Linux LIO kernel target」みたい。https://github.com/open-iscsi/targetcli-fbから
比較表http://scst.sourceforge.net/comparison.htmlがある。一応2013年記載です。
[root@c ~]# yum install targetcli
連動してインストールされる「python-rtslib」から
「/usr/lib/systemd/system/target.service」
がserviceみたい。
インストール直後は
[root@c ~]# systemctl status target.service
● target.service - Restore LIO kernel target configuration
Loaded: loaded (/usr/lib/systemd/system/target.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@c ~]#
起動せず、enableでもないみたい。
昔の記憶iSCSI/Target180825/LIOから、まずはtargetcliを起動します。
[root@c ~]# targetcli
Warning: Could not load preferences file /root/.targetcli/prefs.bin.
targetcli shell version 2.1.fb46
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/>
targetcli内のプロンプトが表示される。このプロンプトで「ls」と入力すると現在の状況が見える
/> ls
o- / ......................................................... [...]
o- backstores .............................................. [...]
| o- block .................................. [Storage Objects: 0]
| o- fileio ................................. [Storage Objects: 0]
| o- pscsi .................................. [Storage Objects: 0]
| o- ramdisk ................................ [Storage Objects: 0]
o- iscsi ............................................ [Targets: 0]
o- loopback ......................................... [Targets: 0]
/>
と導入直後なので何も定義されていない。