HowTo Configure SCST Block Storage Target Enabled with ISER HowTo Configure TGT enabled with iSER Transport for RHEL
- OS: CentOS7
- Infiniband: Inbox drivers
- scst: scst-3.0.x-iser branch
- target ipoib ip: 192.168.11.24
- initiator ipoib ip: 192.168.11.21
cat /etc/rdma/rdma.conf
ISER_LOAD=yes
install iscsi-initiator-utils
yum install iscsi-initiator-utils
make scst
make scst_install
make scstadm
make scstadm_install
make iscsi
make iscsi_install
HANDLER vdisk_blockio { DEVICE disk01 { filename /dev/mapper/centos_monkey-test } }
TARGET_DRIVER iscsi {
enabled 1
TARGET iqn.2006-10.tgt {
allowed_portal 192.168.11.21
QueuedCommands 128
LUN 0 disk_null
LUN 1 disk01
enabled 1
}
}
iscsiadm --op=new --op=delete -m discovery -t st -p 192.168.11.24:3260 -I iser
iscsiadm: No portals found
Oct 9 10:42:35 monkey kernel: iscsi-scst: Releasing allocated resources
Oct 9 10:42:35 monkey kernel: iser portal cm_id:ffff8807e2dca000 releasing
Oct 9 10:42:35 monkey kernel: iser portal cm_id:ffff8807e2dcd800 releasing
Oct 9 10:42:35 monkey kernel: scst: Target iqn.2006-10.tgt for template iscsi unregistered successfully
Oct 9 10:42:36 monkey kernel: iscsi-scst: Unregistered iSCSI transport: iSER
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4586 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4587 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4588 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4589 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4590 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4591 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4592 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Read thread for PID 4593 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4594 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4595 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4596 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4597 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4598 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4599 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4600 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: iscsi-scst: Write thread PID 4601 for pool ffff8807f0cc5480 finished
Oct 9 10:42:36 monkey kernel: scst: Target template iscsi unregistered successfully
Oct 9 10:42:36 monkey kernel: iscsi-scst: Unregistered iSCSI transport: iSCSI-TCP
Oct 9 10:42:36 monkey kernel: dev_vdisk: Detached virtual device disk01 ("/dev/mapper/centos_monkey-test")
Oct 9 10:42:36 monkey kernel: scst: Detached from virtual device disk01 (id 1)
Oct 9 10:42:36 monkey kernel: dev_vdisk: Virtual device disk01 unregistered
Oct 9 10:42:36 monkey kernel: dev_vdisk: Detached virtual device disk_null ("none")
Oct 9 10:42:36 monkey kernel: scst: Detached from virtual device disk_null (id 2)
Oct 9 10:42:36 monkey kernel: dev_vdisk: Virtual device disk_null unregistered
Oct 9 10:42:36 monkey kernel: scst: Device handler "vdisk_nullio" unloaded
Oct 9 10:42:36 monkey kernel: scst: Device handler "vdisk_blockio" unloaded
Oct 9 10:42:36 monkey kernel: scst: Device handler "vdisk_fileio" unloaded
Oct 9 10:42:36 monkey kernel: scst: Device handler "vcdrom" unloaded
Oct 9 10:42:36 monkey kernel: scst: Task management thread PID 4582 finished
Oct 9 10:42:36 monkey kernel: scst: Management thread PID 4583 finished
Oct 9 10:42:36 monkey kernel: scst: Init thread PID 4581 finished
Oct 9 10:42:36 monkey kernel: scst: Detached from scsi0, channel 2, id 0, lun 0, type 0
Oct 9 10:42:36 monkey kernel: scst: Exiting SCST sysfs hierarchy...
Oct 9 10:42:39 monkey kernel: scst: User interface thread PID 4572 finished
Oct 9 10:42:39 monkey kernel: scst: Exiting SCST sysfs hierarchy done
Oct 9 10:42:39 monkey kernel: scst: SCST unloaded
Oct 9 10:42:39 monkey kernel: scst: User interface thread started, PID 4725
Oct 9 10:42:39 monkey kernel: scst: Attached to scsi0, channel 2, id 0, lun 0, type 0
Oct 9 10:42:39 monkey kernel: scst: Init thread started, PID 4734
Oct 9 10:42:39 monkey kernel: scst: Task management thread started, PID 4735
Oct 9 10:42:39 monkey kernel: scst: SCST version 3.0.0 loaded successfully (max mem for commands 7993MB, per device 3197MB)
Oct 9 10:42:39 monkey kernel: scst: Management thread started, PID 4736
Oct 9 10:42:39 monkey kernel: scst: Enabled features: TRACING
Oct 9 10:42:39 monkey kernel: scst: Virtual device handler vdisk_fileio for type 0 registered successfully
Oct 9 10:42:39 monkey kernel: scst: Virtual device handler vdisk_blockio for type 0 registered successfully
Oct 9 10:42:39 monkey kernel: scst: Virtual device handler vdisk_nullio for type 0 registered successfully
Oct 9 10:42:39 monkey kernel: scst: Virtual device handler vcdrom for type 5 registered successfully
Oct 9 10:42:39 monkey kernel: iscsi-scst: iSCSI SCST Target - version 3.0.0
Oct 9 10:42:39 monkey kernel: iscsi-scst: Registered iSCSI transport: iSCSI-TCP
Oct 9 10:42:39 monkey kernel: scst: Target template iscsi registered successfully
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4739
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4740
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4741
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4742
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4743
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4744
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4745
Oct 9 10:42:39 monkey kernel: iscsi-scst: Read thread for pool ffff8807f0c8ce00 started, PID 4746
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4747
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4748
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4749
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4750
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4751
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4752
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4753
Oct 9 10:42:39 monkey kernel: iscsi-scst: Write thread for pool ffff8807f0c8ce00 started, PID 4754
Oct 9 10:42:39 monkey kernel: iscsi-scst: Registered iSCSI transport: iSER
Oct 9 10:42:39 monkey kernel: Created iser portal cm_id:ffff8807f3252c00
Oct 9 10:42:39 monkey kernel: iser portal cm_id:ffff8807f3252c00 listens on: 0.0.0.0:3260
Oct 9 10:42:39 monkey kernel: Created iser portal cm_id:ffff8807f3251400
Oct 9 10:42:39 monkey kernel: iser portal cm_id:ffff8807f3251400 listens on: 0000:0000:0000:0000:0000:0000:0000:0000 3260
Oct 9 10:42:39 monkey kernel: dev_vdisk: Registering virtual vdisk_blockio device disk01 (BLOCKIO, ROTATIONAL)
Oct 9 10:42:39 monkey kernel: dev_vdisk: Attached SCSI target virtual disk disk01 (file="/dev/mapper/centos_monkey-test", fs=10240MB, bs=512, nblocks=20971520, cyln=10240)
Oct 9 10:42:39 monkey kernel: scst: Attached to virtual device disk01 (id 1)
Oct 9 10:42:39 monkey kernel: dev_vdisk: Registering virtual vdisk_nullio device disk_null (NULLIO, ROTATIONAL)
Oct 9 10:42:39 monkey kernel: dev_vdisk: Attached SCSI target virtual disk disk_null (file="none", fs=2621440MB, bs=512, nblocks=5368709120, cyln=2621440)
Oct 9 10:42:39 monkey kernel: scst: Attached to virtual device disk_null (id 2)
Oct 9 10:42:39 monkey kernel: scst: Target iqn.2006-10.tgt for template iscsi registered successfully
Oct 9 10:42:39 monkey kernel: scst: Added device disk_null to group iqn.2006-10.tgt (LUN 0, rd_only 0) to target iqn.2006-10.tgt
Oct 9 10:42:39 monkey kernel: scst: Added device disk01 to group iqn.2006-10.tgt (LUN 1, rd_only 0) to target iqn.2006-10.tgt
Oct 9 10:42:39 monkey kernel: scst: Using autogenerated relative target id 1 for target iqn.2006-10.tgt
Oct 9 10:43:18 monkey kernel: isert_cm_evt:CONNECT_REQUEST(4) status:0 portal:ffff8807e11f8e40 cm_id:ffff8807f3252800
Oct 9 10:43:18 monkey kernel: iser created device:ffff8807f1de1600
Oct 9 10:43:18 monkey kernel: iser created cm_id:ffff8807f3252800 qp:0x140406
Oct 9 10:43:18 monkey iscsi-scstd: iSER Connect to 192.168.11.24:3260
Oct 9 10:43:18 monkey kernel: iser accepted connection cm_id:ffff8807f3252800 192.168.11.21->192.168.11.24
Oct 9 10:43:18 monkey kernel: isert_cm_evt:ESTABLISHED(9) status:0 portal:ffff8807e11f8e40 cm_id:ffff8807f3252800
Oct 9 10:43:19 monkey kernel: isert_cm_evt:DISCONNECTED(10) status:0 portal:ffff8807e11f8e40 cm_id:ffff8807f3252800
Oct 9 10:43:22 monkey kernel: isert_cm_evt:TIMEWAIT_EXIT(15) status:0 portal:ffff8807e11f8e40 cm_id:ffff8807f3252800
Oct 9 10:43:22 monkey kernel: isert_conn_free conn:ffff8807e1000000