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]
/>

と導入直後なので何も定義されていない。

最新の60件
2023-09-20 2023-09-19 2023-09-18 2023-09-17 2023-09-16 2023-09-14 2023-09-12 2023-09-11 2023-09-08 2023-09-05 2023-09-02 2023-08-30 2023-08-29 2023-08-28 2023-08-27 2023-08-22 2023-08-20 2023-08-18 2023-08-17 2023-08-14 2023-08-12 2023-08-09 2023-08-07 2023-08-06 2023-08-03 2023-07-31 2023-07-29 2023-07-27 2023-07-25 2023-07-24 2023-07-22 2023-07-17 2023-07-16 2023-07-09 2023-07-08

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-08-25 (土) 13:56:19