IBM vSCSI

The Linux SCSI Target Wiki

Revision as of 08:45, 14 February 2011 by Admin (Talk | contribs)
Jump to: navigation, search
LIO Target
Logo
RisingTide Systems
IBM vSCSI fabric module
Original author(s) Tomonori Fujita
Developer(s) RisingTide Systems LLC
Development status Alpha
Written in C
Operating system Linux
Type Fabric module
License GNU General Public License
Website datera.io
See Target for a complete overview over all fabric modules.

The IBM vSCSI fabric module (tcm_ibmvscsis.ko) provides a virtual SCSI device on the IBM pSeries. It is based on a fabric module from Tomonori Fujita from NTT Labs.

Contents

Source Code

The IBMVSCSIS driver is available a branch in the upstream LIO kernel.org source tree here lio-core-2.6.git/tcm_ibmvscsis

Running output

This output is available from link.

dmesg

 TARGET_CORE[0]: Loading Generic Kernel Storage Engine: v4.0.0-rc6 on Linux/ppc64 on 2.6.38-rc2-00058-ga318037
 TARGET_CORE[0]: Initialized ConfigFS Fabric Infrastructure: v4.0.0-rc6 on Linux/ppc64 on 2.6.38-rc2-00058-ga318037
 TCM: Registered subsystem plugin: rd_dr struct module:           (null)
 TCM: Registered subsystem plugin: rd_mcp struct module:           (null)
 CORE_HBA[0] - TCM Ramdisk HBA Driver v4.0 on Generic Target Core Stack v4.0.0-rc6
 CORE_HBA[0] - Attached Ramdisk HBA: 0 to Generic Target Core TCQ Depth: 256 MaxSectors: 1024
 CORE_HBA[0] - Attached HBA to Generic Target Core
 RAMDISK: Referencing Page Count: 8
 CORE_RD[0] - Built Ramdisk Device ID: 0 space of 8 pages in 1 tables
 rd_dr: Using SPC_PASSTHROUGH, no reservation emulation
 rd_dr: Using SPC_ALUA_PASSTHROUGH, no ALUA emulation
   Vendor: LIO-ORG   Model: RAMDISK-DR        Revision: 4.0 
   Type:   Direct-Access                      ANSI SCSI revision: 05
 CORE_RD[0] - Added TCM DIRECT Ramdisk Device ID: 0 of 8 pages in 1 tables, 32768 total bytes
 TCM: Registered subsystem plugin: fileio struct module: d0000000001eae80
 vio_register_driver: driver ibmvscsis registering
 IBMVSCSIS fabric module v0.1 on Linux/ppc64 on 2.6.38-rc2-00058-ga318037
 Setup generic discovery
 Setup generic wwn
 Setup generic tpg
 Setup generic tpg_base
 Setup generic tpg_port
 Setup generic tpg_lun
 Setup generic tpg_np
 Setup generic tpg_np_base
 Setup generic tpg_attrib
 Setup generic tpg_param
 Setup generic tpg_nacl
 Setup generic tpg_nacl_base
 Setup generic tpg_nacl_attrib
 Setup generic tpg_nacl_auth
 Setup generic tpg_nacl_param
 Setup generic tpg_mappedlun
 <<<<<<<<<<<<<<<<<<<<<< BEGIN FABRIC API >>>>>>>>>>>>>>>>>>>>>>
 Initialized struct target_fabric_configfs: c0000000834ff000 for ibmvscsis
 <<<<<<<<<<<<<<<<<<<<<< END FABRIC API >>>>>>>>>>>>>>>>>>>>>>
 IBMVSCSIS[0] - Set fabric -> ibmvscsis_fabric_configfs
 Target_Core_ConfigFS: REGISTER -> group: d0000000001b7a00 name: ibmvscsis
 Unable to load target_core_iblock
 Unable to load target_core_file
 Unable to load target_core_pscsi
 Unable to load target_core_stgt
 Target_Core_ConfigFS: REGISTER -> Located fabric: ibmvscsis
 Target_Core_ConfigFS: REGISTER tfc_wwn_cit -> c0000000834ff308
 Target_Core_ConfigFS: REGISTER -> Allocated Fabric: ibmvscsis
 Target_Core_ConfigFS: REGISTER -> Set tf->tf_fabric for ibmvscsis
 TARGET_CORE[ibmvscsis]: Allocated Normal struct se_portal_group for endpoint: , Portal Tag: 50051
 ibmvscsis_TPG[50051] - Added DYNAMIC ACL with TCQ Depth: 1 for ibmvscsis Initiator Node: 30000003
 TARGET_CORE[ibmvscsis]: Registered fabric_sess_ptr: c000000086f4a000
 CORE_HBA[0] - TCM FILEIO HBA Driver 4.0 on Generic Target Core Stack v4.0.0-rc6
 CORE_HBA[0] - Attached FILEIO HBA: 0 to Generic Target Core with TCQ Depth: 256 MaxSectors: 1024
 CORE_HBA[1] - Attached HBA to Generic Target Core
 FILEIO: Allocated fd_dev for c0000000835662a0
 Target_Core_ConfigFS: Allocated struct se_subsystem_dev: c000000086251000 se_dev_su_ptr: c000000086176600
 FILEIO: Referencing Path: /var/tmp/tcm
 FILEIO: Referencing Size: 15000928256 bytes
 fileio: Using SPC3_PERSISTENT_RESERVATIONS emulation
 fileio: Enabling ALUA Emulation for SPC-3 device
 fileio: Adding to default ALUA LU Group: core/alua/lu_gps/default_lu_gp
   Vendor: LIO-ORG   Model: FILEIO            Revision: 4.0 
   Type:   Direct-Access                      ANSI SCSI revision: 05
 CORE_FILE[0] - Added TCM FILEIO Device ID: 0 at /var/tmp/tcm, 15000928256 total bytes
 Target_Core_ConfigFS: Registered se_dev->se_dev_ptr: c000000086f4a800
 fileio/ibmvscsis: Adding to default ALUA Target Port Group: alua/default_tg_pt_gp
 ibmvscsis_TPG[50051]_LUN[0] - Activated ibmvscsis Logical Unit from CORE HBA: 1
 TARGET_CORE[ibmvscsis]->TPG[50051]_LUN[0] - Adding READ-WRITE access for LUN in Demo Mode
 TARGET_CORE[ibmvscsis]: Expected Transfer Length: 255 does not match SCSI CDB Length: 8 for SAM Opcode: 0x25
 Client connect: crocus (3)
 ibmvscsis_inquery 963: needs the normal path
 ibmvscsis_inquery 963: needs the normal path

tree

 /sys/kernel/config/
 └── target
     ├── core
     │   ├── alua
     │   │   └── lu_gps
     │   │       └── default_lu_gp
     │   │           ├── lu_gp_id
     │   │           └── members
     │   └── fileio_0
     │       ├── fileio
     │       │   ├── alias
     │       │   ├── alua
     │       │   │   └── default_tg_pt_gp
     │       │   │       ├── alua_access_state
     │       │   │       ├── alua_access_status
     │       │   │       ├── alua_access_type
     │       │   │       ├── alua_write_metadata
     │       │   │       ├── members
     │       │   │       ├── nonop_delay_msecs
     │       │   │       ├── preferred
     │       │   │       ├── tg_pt_gp_id
     │       │   │       └── trans_delay_msecs
     │       │   ├── alua_lu_gp
     │       │   ├── attrib
     │       │   │   ├── block_size
     │       │   │   ├── emulate_dpo
     │       │   │   ├── emulate_fua_read
     │       │   │   ├── emulate_fua_write
     │       │   │   ├── emulate_tas
     │       │   │   ├── emulate_tpu
     │       │   │   ├── emulate_tpws
     │       │   │   ├── emulate_ua_intlck_ctrl
     │       │   │   ├── emulate_write_cache
     │       │   │   ├── enforce_pr_isids
     │       │   │   ├── hw_block_size
     │       │   │   ├── hw_max_sectors
     │       │   │   ├── hw_queue_depth
     │       │   │   ├── max_sectors
     │       │   │   ├── max_unmap_block_desc_count
     │       │   │   ├── max_unmap_lba_count
     │       │   │   ├── optimal_sectors
     │       │   │   ├── queue_depth
     │       │   │   ├── task_timeout
     │       │   │   ├── unmap_granularity
     │       │   │   └── unmap_granularity_alignment
     │       │   ├── control
     │       │   ├── enable
     │       │   ├── info
     │       │   ├── pr
     │       │   │   ├── res_aptpl_active
     │       │   │   ├── res_aptpl_metadata
     │       │   │   ├── res_holder
     │       │   │   ├── res_pr_all_tgt_pts
     │       │   │   ├── res_pr_generation
     │       │   │   ├── res_pr_holder_tg_port
     │       │   │   ├── res_pr_registered_i_pts
     │       │   │   ├── res_pr_type
     │       │   │   └── res_type
     │       │   ├── udev_path
     │       │   └── wwn
     │       │       ├── vpd_assoc_logical_unit
     │       │       ├── vpd_assoc_scsi_target_device
     │       │       ├── vpd_assoc_target_port
     │       │       ├── vpd_protocol_identifier
     │       │       └── vpd_unit_serial
     │       ├── hba_info
     │       └── hba_mode
     ├── ibmvscsis
     │   ├── 30000003
     │   │   └── tpgt_1
     │   │       ├── acls
     │   │       ├── attrib
     │   │       ├── lun
     │   │       │   └── lun_0
     │   │       │       ├── alua_tg_pt_gp
     │   │       │       ├── alua_tg_pt_offline
     │   │       │       ├── alua_tg_pt_status
     │   │       │       ├── alua_tg_pt_write_md
     │   │       │       └── default -> ../../../../../../target/core/fileio_0/fileio
     │   │       ├── np
     │   │       └── param
     │   ├── discovery_auth
     │   └── version
     └── version
 23 directories, 60 files

</code>

lsmod

 Module                  Size  Used by
 ibmvscsis              22024  4 
 libsrp                  9242  1 ibmvscsis
 scsi_tgt               15597  1 libsrp
 target_core_file       10766  1 
 target_core_mod       266898  10 ibmvscsis,target_core_file
 configfs               33950  2 target_core_mod

See also

External links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Google AdSense