Re: how does targetcli load vhost_scsi module?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2015-09-17 at 14:20 -0700, Ming Lin wrote:
> Hi list,
> 
> root@ssi:/sys/kernel/config/target# uname -r
> 4.2.0-rc2
> 
> root@ssi:~# targetcli
> targetcli GIT_VERSION (rtslib GIT_VERSION)
> Copyright (c) 2011-2013 by Datera, Inc.
> All rights reserved.
> Loaded tcm_qla2xxx kernel module.
> Created '/sys/kernel/config/target/qla2xxx'.
> Loaded ib_srpt kernel module.
> Created '/sys/kernel/config/target/srpt'.
> Loaded tcm_fc kernel module.
> Created '/sys/kernel/config/target/fc'.
> Loaded tcm_loop kernel module.
> Created '/sys/kernel/config/target/loopback'.
> Loaded iscsi_target_mod kernel module.
> Created '/sys/kernel/config/target/iscsi'.
> 
> root@ssi:/sys/kernel/config/target# ls
> core  fc  iscsi  loopback  qla2xxx  srpt  version
> 
> It seems targetcli didn't load vhost_scsi kernel module.
> Then I loaded it manually.
> 
> root@ssi:/sys/kernel/config/target# lsmod |grep target_core_mod
> target_core_mod       344064  11
> tcm_qla2xxx,iscsi_target_mod,tcm_fc,ib_srpt,vhost_scsi,tcm_loop
> configfs               36864  3 iscsi_target_mod,target_core_mod
> 
> /> ls
> o- / .........................................................................................................................
> [...]
>   o- backstores
> ..............................................................................................................
> [...]
>   | o- fileio ...................................................................................................
> [0 Storage Object]
>   | o- iblock ...................................................................................................
> [0 Storage Object]
>   | o- pscsi ....................................................................................................
> [0 Storage Object]
>   | o- rd_dr ....................................................................................................
> [0 Storage Object]
>   | o- rd_mcp ...................................................................................................
> [0 Storage Object]
>   o- ib_srpt ...........................................................................................................
> [0 Targets]
>   o- iscsi .............................................................................................................
> [0 Targets]
>   o- loopback ..........................................................................................................
> [0 Targets]
>   o- qla2xxx ...........................................................................................................
> [0 Targets]
>   o- tcm_fc ............................................................................................................
> [0 Targets]
> 
> But I still didn't see "vhost".
> 
> Any clue?

It looks like you're missing /var/target/fabric/vhost.spec:

root@scsi-mq:~# cat /var/target/fabric/vhost.spec 
# The fabric module feature set
features = nexus, tpgts

# Use naa WWNs.
wwn_type = naa

# Non-standard module naming scheme
kernel_module = vhost_scsi

# The configfs group
configfs_group = vhost

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux