差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
os:oi:comstar:start [2011/03/01 00:30] yuki |
os:oi:comstar:start [2021/05/22 23:17] yuki 削除 |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
====== COMSTAR ====== | ====== COMSTAR ====== | ||
- | * zvolでiSCSIやるとき。最初から流しで。 | + | * 動作確認時のパケットキャプチャ |
- | - pkgのインストール | + | * http://www.ainoniwa.net/data/pcap/sample-comstar-01/sample-comstar-01.pcap |
- | * <code># pkg search iscsi | + | * 192.168.122.24 - 192.168.122.32は失敗パターン(Initiator名が非正規) |
- | # svcs -a | grep iscsi | + | * 192.168.122.10 - 192.168.122.32は成功パターン |
+ | * iscsiでフィルタかけて、Login ResponseがTarget errorになってる部分に注目すればいいよ。 | ||
+ | |||
+ | ===== iSCSI on zvol ===== | ||
+ | 最初から流しで。 | ||
+ | |||
+ | - pkgのインストール | ||
+ | * <code># pkg search iscsi | ||
# pkg install pkg:/network/iscsi/target</code> | # pkg install pkg:/network/iscsi/target</code> | ||
- | - サービスの起動 | + | - サービスの起動 |
- | * <code># svcadm enable -r svc:/network/iscsi/target:default | + | * <code># svcadm enable -r svc:/network/iscsi/target:default |
# svcadm enable stmf | # svcadm enable stmf | ||
# svcs -a | grep iscsi | # svcs -a | grep iscsi | ||
online 2月_27 svc:/network/iscsi/initiator:default | online 2月_27 svc:/network/iscsi/initiator:default | ||
online 2月_27 svc:/network/iscsi/target:default</code> | online 2月_27 svc:/network/iscsi/target:default</code> | ||
- | - zvolの作成 | + | - zvolの作成 |
- | * <code>zfs create -V 10g m-test/iscsi</code> | + | * <code># zfs create -V 10g m-test/iscsi</code> |
- | - COMSTARのLU作成→VIEWに追加→Targetの作成 | + | - COMSTARのLU作成→VIEWに追加→Targetの作成 |
- | * <code># sbdadm create-lu /dev/zvol/rdsk/m-test/iscsi | + | * <code># sbdadm create-lu /dev/zvol/rdsk/m-test/iscsi |
Created the following LU: | Created the following LU: | ||
ライン 28: | ライン 35: | ||
-------------------------------- ------------------- ---------------- | -------------------------------- ------------------- ---------------- | ||
600144f06286850000004d68c01b0002 10737418240 /dev/zvol/rdsk/m-test/iscsi | 600144f06286850000004d68c01b0002 10737418240 /dev/zvol/rdsk/m-test/iscsi | ||
+ | # stmfadm list-lu | ||
+ | LU Name: 600144F06286850000004D68C01B0002 | ||
# stmfadm add-view 600144f06286850000004d68c01b0002 | # stmfadm add-view 600144f06286850000004d68c01b0002 | ||
# itadm create-target | # itadm create-target | ||
ライン 43: | ライン 52: | ||
tpg-tags: default | tpg-tags: default | ||
</code> | </code> | ||
+ | |||
+ | * メモ | ||
+ | * 普通やらないと思うけど、COMSTARのiSCSIに接続するホストのiSCSIイニシエータ名は、iqnかEUI形式でなければならない。istgtは特に気にしなくてもいいんだけど、COMSTARではこれに気をつけないとターゲットエラーとなる。 | ||
+ | * manにも書いてあるっぽい? | ||
+ | * <code>iSCSI Initiator Node Contexts | ||
+ | Certain operations such as authentication by means of Chal- | ||
+ | lenge Handshake Authentication Protocol (CHAP) require | ||
+ | parameters associated with a remote iSCSI Initiator Node. | ||
+ | These parameters are associated with an iSCSI Initiator Node | ||
+ | Context. An iSCSI Initiator Node Context is identified by | ||
+ | its Initiator Node Name, formatted in either IQN or EUI for- | ||
+ | mat (see RFC 3720). For example: | ||
+ | |||
+ | iqn.1986-03.com.sun:01:e00000000000.47d55444 | ||
+ | eui.02004567A425678D</code> | ||
+ | |||
* 参考 | * 参考 | ||
ライン 49: | ライン 74: | ||
* http://d.hatena.ne.jp/tera-p/20101116 | * http://d.hatena.ne.jp/tera-p/20101116 | ||
* http://aikotobaha.blogspot.com/2011/02/solaris11-comstar-iscsi.html | * http://aikotobaha.blogspot.com/2011/02/solaris11-comstar-iscsi.html | ||
+ | * http://nkjmkzk.net/?p=2022 | ||