...
微妙に記事を書いてから時間がたってしまったので、いくつかヒストリから追ったものがあり、必要なものが含まれてない可能性があります。
作ったdebファイル→targetcli-3.0.pre4.9~g6fd0bbf_all.gtz.tgz(debian8)
targetcli-deb9.tgz (debian9)
#debファイルをインストールするには
コード ブロック |
---|
apt-get install python-ipaddr python-netifaces python-configobj python-pyparsing python-epydoc python-prettytable python-urwid |
が必要
rtslibをビルド&&インストールする
gitからgit cloneしてコードを取得する
...
コード ブロック |
---|
apt-get install git
apt-get install dpkg-dev debhelper texlive-latex-base texlive-latex-extra texlive-latex-recommended lmodern ghostscript texlive-fonts-recommended --no-install-recommends
apt-get install python-ipaddr python-netifaces python-configobj python-pyparsing python-epydoc python-prettytable python-urwid |
gitでソースコードを持ってきます。
コード ブロック |
---|
git clone https://github.com/Datera/rtslib.git |
debian9でrtslibをビルドする場合、いずれマージされると思いますが2017年10月時点のコミット6fd0bbf
では以下のファイルを変更する必要があります。
コード ブロック |
---|
vi rtslib/config_parser.py
#228行目
ref_path = " ".join(ref_path.asList())
↓
ref_path = " ".join(ref_path) |
これを変更しないとtargetcliのsaveconfigができなくなります。
rtslibをmakeする
その後、rtslibというディレクトリが出来るので、そのディレクトリに入り、makeを行います。make debでDebianパッケージを作成します。
...
コード ブロック |
---|
cd dist/ ls python-rtslib_3.0.pre4.9~g6fd0bbf_all.deb rtslib-3.0.pre4.9~g6fd0bbf.tar.gz dpkg -i python-rtslib_3.0.pre4.9~g6fd0bbf_all.deb |
Python-configshellをMakeする
次に、Python-configshellをMakeします。
コード ブロック |
---|
git clone https://github.com/Datera/configshell.git
cd configshell/
make deb |
出来上がったdebファイルをインストールします。
コード ブロック |
---|
dpkg -i dist/python-configshell_1.6.1~g020d540_all.deb |
targetcliをビルド&&インストールする
gitからgit cloneしてコードを取得する
...
ログからACLを作成します。
コード ブロック |
---|
grep "ib_srpt_compl .* stopped" /var/log/syslog |cutgrep -f9oE -d" ""0x[0-9a-z]*"|sort -u #結果 0x00000000000000000002c903000dc5e2: 0x00000000000000000002c903000f41a6:0x811a4bffff0c01190002c903000dc5e3 0x811a4bffff0c01190002c903000f81d9 0x811a4bffff0c01190002c903001c84f1 |
上記出てきたIDが現在SRPイニシエータとして接続しようとしてきているIDなので、ACLに加えます。
...
コード ブロック |
---|
grep "ib_srpt_compl .* start" -B1 /var/log/syslog.7.gz Sep 7 03:18:23 debian8 kernel: [264060.955093] Received SRP_LOGIN_REQ with i_port_id 0x0:0x2c903000f41a6, t_port_id 0x5ad00000bf4d4:0x5ad00000bf4d4 and it_iu_len 580 on port 1 (guid=0xfe80000000000000:0x5ad00000bf4d5) Sep 7 03:18:23 debian8 kernel: [264060.956330] Session : kernel thread ib_srpt_compl (PID 7727) started |
...
ラベル別コンテンツ | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
ページ プロパティ | ||
---|---|---|
| ||
|