1. 首页 > 服务器运维

openfiler的iSCSI配置(二)

一.openfiler iSCSI配置

1.启动iSCSI target server服务。在Services列表下。

2.设置访问列表。在System---Network Access Configuration下设置。

3.创建卷设备

二.ISCSI客户端配置

1.安装open-iscsi

# apt-get install open-iscsi

2.发现iscsi-target

# iscsiadm -m discovery -t sendtargets -p 192.168.41.111

192.168.41.111:3260,1 iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb

3.挂载

# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb -p 192.168.41.111 -l -d 10

iscsiadm: Max file limits 1024 1024

iscsiadm: exec_node_op: : node [iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb,192.168.41.111,3260]

iscsiadm: searching iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb

iscsiadm: found 192.168.41.111,3260,1

iscsiadm: iface iter found default.

iscsiadm: updated 'node.name', '' => 'iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb'

iscsiadm: updated 'node.tpgt', '-1' => '1'

iscsiadm: updated 'node.startup', 'manual' => 'automatic'

iscsiadm: updated 'iface.iscsi_ifacename', 'default' => 'default'

iscsiadm: updated 'iface.transport_name', 'tcp' => 'tcp'

iscsiadm: updated 'node.discovery_address', '' => '192.168.41.111'

iscsiadm: updated 'node.discovery_port', '0' => '3260'

iscsiadm: updated 'node.discovery_type', 'static' => 'send_targets'

iscsiadm: updated 'node.session.initial_cmdsn', '0' => '0'

iscsiadm: updated 'node.session.initial_login_retry_max', '4' => '8'

iscsiadm: updated 'node.session.xmit_thread_priority', '-20' => '-20'

iscsiadm: updated 'node.session.cmds_max', '128' => '128'

iscsiadm: updated 'node.session.queue_depth', '32' => '32'

iscsiadm: updated 'node.session.auth.authmethod', 'None' => 'None'

iscsiadm: updated 'node.session.timeo.replacement_timeout', '120' => '120'

iscsiadm: updated 'node.session.err_timeo.abort_timeout', '15' => '15'

iscsiadm: updated 'node.session.err_timeo.lu_reset_timeout', '30' => '20'

iscsiadm: updated 'node.session.err_timeo.host_reset_timeout', '60' => '60'

iscsiadm: updated 'node.session.iscsi.FastAbort', 'Yes' => 'Yes'

iscsiadm: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'

iscsiadm: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'

iscsiadm: updated 'node.session.iscsi.FirstBurstLength', '262144' => '262144'

iscsiadm: updated 'node.session.iscsi.MaxBurstLength', '16776192' => '16776192'

iscsiadm: updated 'node.session.iscsi.DefaultTime2Retain', '0' => '0'

iscsiadm: updated 'node.session.iscsi.DefaultTime2Wait', '2' => '2'

iscsiadm: updated 'node.session.iscsi.MaxConnections', '1' => '1'

iscsiadm: updated 'node.session.iscsi.MaxOutstandingR2T', '1' => '1'

iscsiadm: updated 'node.session.iscsi.ERL', '0' => '0'

iscsiadm: updated 'node.conn[0].address', '' => '192.168.41.111'

iscsiadm: updated 'node.conn[0].port', '3260' => '3260'

iscsiadm: updated 'node.conn[0].startup', 'manual' => 'manual'

iscsiadm: updated 'node.conn[0].tcp.window_size', '524288' => '524288'

iscsiadm: updated 'node.conn[0].tcp.type_of_service', '0' => '0'

iscsiadm: updated 'node.conn[0].timeo.logout_timeout', '15' => '15'

iscsiadm: updated 'node.conn[0].timeo.login_timeout', '30' => '15'

iscsiadm: updated 'node.conn[0].timeo.auth_timeout', '45' => '45'

iscsiadm: updated 'node.conn[0].timeo.noop_out_interval', '5' => '5'

iscsiadm: updated 'node.conn[0].timeo.noop_out_timeout', '5' => '5'

iscsiadm: updated 'node.conn[0].iscsi.MaxRecvDataSegmentLength', '262144' => '262144'

iscsiadm: updated 'node.conn[0].iscsi.HeaderDigest', 'None' => 'None'

iscsiadm: updated 'node.conn[0].iscsi.DataDigest', 'None' => 'None'

iscsiadm: updated 'node.conn[0].iscsi.IFMarker', 'No' => 'No'

iscsiadm: updated 'node.conn[0].iscsi.OFMarker', 'No' => 'No'

iscsiadm: match session [iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb,192.168.41.111,3260][ ,,]

iscsiadm: to [iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb,192.168.41.111,3260][default tcp,,]

Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb, portal: 192.168.41.111,3260]

Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb, portal: 192.168.41.111,3260]: successful

# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0003df97

Device Boot Start End Blocks Id System

/dev/sda1 * 1 2574 20673536 83 Linux

/dev/sda2 2574 2611 294913 5 Extended

/dev/sda5 2574 2611 294912 82 Linux swap / Solaris

Disk /dev/sdb: 33 MB, 33554432 bytes

2 heads, 32 sectors/track, 1024 cylinders

Units = cylinders of 64 * 512 = 32768 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

4.设置自动登录到iscsi-target

# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.1a8f5a5d6ffb -p 192.168.41.111 --op update -n node.startup -v automatic

本文由主机测评网发布,不代表主机测评网立场,转载联系作者并注明出处:https://zhuji.jb51.net/yunwei/8309.html

联系我们

在线咨询:点击这里给我发消息

微信号:

工作日:8:30-17:30,节假日休息