利用 Openfiler 构建云端虚拟存储实验笔记(3)


────────────────────────────────────────────────────────────────────────────────
开启“iSCSI target server”系统服务
─��──────────────────────────────────────────────────────────────────────────────
当 iSCSI 卷创建完成后,接下来是开启“iSCSI target server”系统服务。
点击“Services”菜单,在右侧的“Services section”区域选择“Manage Services”。
然后将系统服务列表中的“iSCSI target server”设置为“Enabled”状态,
从而使得系统能够对外提供基于 iSCSI 协议的虚拟存储服务。


# netstat -nltu | egrep '3260|860'
--------------------------------------------------------------------------------
tcp        0      0 0.0.0.0:3260            0.0.0.0:*               LISTEN    
tcp        0      0 :::3260                 :::*                    LISTEN  
--------------------------------------------------------------------------------
Note: waiting 1 minute, the iSCSI target service will start automatically.


# lsof -P -n | grep 3260
--------------------------------------------------------------------------------
ietd      4656      root    8u     IPv6      17294                TCP *:3260 (LISTEN)
ietd      4656      root    9u     IPv4      17295                TCP *:3260 (LISTEN)
--------------------------------------------------------------------------------


# /etc/init.d/iscsi-target status
# /etc/init.d/iscsi-scst status


# cat /etc/iscsi/iscsid.conf  | grep -v ^# | grep .
--------------------------------------------------------------------------------
node.startup = manual
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 20
node.session.initial_login_retry_max = 8
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.xmit_thread_priority = -20
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
node.session.iscsi.FastAbort = Yes
--------------------------------------------------------------------------------

# cat /etc/iscsi/iscsid.conf  | grep -v ^# | grep .
--------------------------------------------------------------------------------
node.startup = manual
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 20
node.session.initial_login_retry_max = 8
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.xmit_thread_priority = -20
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
node.session.iscsi.FastAbort = Yes
--------------------------------------------------------------------------------

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/a1a3b5b1893e7393aa0178e7e9670dab.html