iscsi_config
来自「iscsi源代码 UNH的progect 有initiator端和target端」· 代码 · 共 63 行
TXT
63 行
vi: set autoindent tabstop=4 shiftwidth=4 :iscsi_config is a tool to specify iSCSI targets to the kernel initiator and initiate iSCSI protocol operations. iscsi_config is invoked with at least one mandatory argument andfive optional arguments as given below. +--------------------------------------------------------------+| iscsi_config <what-to-do> [host=number] [ip=address_or_name] || [port=number] [target=number] [lun=number] |+--------------------------------------------------------------++------------+| what-to-do |+------------+ what-to-do determines whether an iSCSI session has to be established between an iSCSI initiator and an iSCSI target or whether an existing iSCSI session needs to be closed. It can be one of the following: "up" an iSCSI session needs to be established. "down" an iSCSI session needs to be closed.+-------------+| host=number |+-------------+ This is an optional field. If omitted assumes a value of 0. Format is host=<number> This specifies the SCSI Adapter number assigned by the kernel to the iSCSI initiator.+--------------------+| ip=address_or_name |+--------------------+ This is an optional field that specifies the IP address of the iSCSI target to which a connection has to be established. If omitted assumes the local IP address. Format is ip=name (or) ip=address where "name" is the hostname of the machine in which the iSCSI target is waiting for requests from the iSCSI initiator. address is the IP address in dotted decimal notation. +-------------+| port=number |+-------------+ This is an optional field that specifies the port on which the iSCSI target is listening. If omitted assumes the port number of 4000.+-------------+| target=number |+-------------+ This is an optional field that specifies the target number (id number in hierarchical addressing scheme for Linux SCSI devices) for the target that the initiator is connecting to.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?