找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2283|回复: 1

openwrt iscsi 中tgt包如何使用

[复制链接]
config options 'tgt'
# iothreads limits number of worker threads per rdwr target, default is 16
# which seems to be too much for an avarage router
        option iothreads '2'
#        option nop_count '3'
#        option nop_interval '1'
#        list portal '[::1]'
#        list portal '127.0.0.1:3261'
#        list portal '0.0.0.0:3262'
#        list portal '[::]:3263'

config target 1
        option name 'iqn.2012-06.org.openwrt:target1'
#        list allow_name 'iqn.1994-05.org.example:fedcba987654'
#        list allow_address '192.168.2.128/27'

#config target 2
#        option name 'iqn.2012-06.org.openwrt:t2'

# all options are set to default, except for the device
# lun "name" is constructed as TGTID_LUN
#config lun                        1_1
#        option 'device' '/dev/sda'
# type of scsi device. available options: disk, cd, pt (sg passthrough)
#        option 'type' 'disk'
# backing store access method: rdwr (read-write), aio (async IO), sg (for pt type only, device must be /dev/sgN)
#        option 'bstype' 'aio'
# set sync and/or direct flags when opening device, affect only rdwr
#        option 'sync' '0'
#        option 'direct' '0'
# block size for lun, default is 512
#        option 'blocksize' 4096
# override SCSI mode page, see tgtadm man page for details
#        option 'mode_page' 'string'
# vendor, product, revision, SCSI ID and SCSI Serial number
#        option 'vendor_id' 'string'
#        option 'product_id' 'string'
#        option 'product_rev' 'string'
#        option 'scsi_id' 'string'
#        option 'scsi_sn' 'string'
# refuse write attempts. applies only to disk type
#        option 'readonly' '0'
# Disk devices default to non-removable, cd - to removable
#        option 'removable' '0'
#  0 = Classic sense format, 1 = Support descriptor format.
#        option 'sense_format' '0'

#config lun 2_1
#        option device /mnt/sda1/iscsi.img

#config lun 2_2
#        option device /dev/sdc

#config account
#        list target 1
#        list target 2
#        option user "username1"
#        option password "pass1"

#config account
#        option target 2
#        option user "user2"
#        option password "pwd2"
#        option outgoing 1
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
有没有亲知道怎么用的?能链接但是不能出盘
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 16:42

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表