netapp FAS存储iscsi for redhat 6安装配置指南

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

本文针对redhat linux 6以上的环境,撰写的ISCSI配置文档;

1.安装netapp hostutility

rpm –ivh netapp**.rpm

2.配置ISCSI for linux(redhat6)

1.Getting the initiator node name

cat /etc/iscsi/initiatorname.iscsi

2.Setting the timeout values to enable multipathing

Edit /etc/iscsi/iscsid.conf to include the following value:

DM-Multipath environments:

node.session.timeo.replacement_timeout = 5

3.Starting the iSCSI service

service iscsid force-start

4.Methods for setting up target discovery with software initiators iscsiadm --mode discovery --op update --type sendtargets --portal 10.212.50.12 iscsiadm --mode node -l all

iscsiadm --mode session

chkconfig iscsi on

#10.212.50.12——tartget IP

5.Configuring manual or automatic node login

a. Modify the /etc/iscsi/iscsid.conf file to add the following line.

You must specify either manual or automatic:

node.startup = automatic

b. Rediscover the iSCSI target.

iscsiadm --mode discovery --op update --type sendtargets --portal 10.212.50.12 iscsiadm --mode node -l all

iscsiadm --mode session

c. Restart the iSCSI service.

service iscsid restart

3.linux multipath安装配置

1.检查是否安装dm-multipath

rpm -q device-mapper

2.编辑多路径软件配置文件

vi /etc/multipath.conf

With ALUA, use the value ——Set prio to:“alua”

Without ALUA, use the value——Set prio to:“ontap”

3.启动多路径软件

/etc/init.d/multipathd start

chkconfig --add multipathd

chkconfig multipathd on

4.验证多路径软件配置

multipath -v3 -d -ll

/etc/init.d/multipathd status

multipath -ll

4.发现lun

1.(FC, Hardware iSCSI) Discovering new LUNs

To discover a new LUN, enter the following

command:/usr/bin/rescan-scsi-bus.sh

If you do not have a copy of the rescan script, get one. The rescan script is available with the sg3_utils package

2.(Software iSCSI, multipathing) Discovering new LUNs

方法一:

To discover a new LUN,enter the following command:/usr/bin/rescan-scsi-bus.sh

If you do not have a copy of the rescan script, get one. The rescan script is available with the sg3_utils package

方法二:

To discover a new LUN on a system running DM-Multipath, enter one of the following commands:

3.To verify that the new LUNs have been discovered, use the sanlun

command or the iscsiadm command.

1)Viewing a list of LUNs

iscsiadm -m session -P 3 -r 2

2)(Native multipathing) Using sanlun to display M-Multipath information sanlun lun show –p

You can also use the sanlun lun show all command to display more information about your LUN setup, such as whether you are using LUNs mapped with clustered Data ONTAP or Data ONTAP operating in 7-Mode.

5.查看linux主机的FC WWPN号

cat /sys/class/fc_host/host*/port_name

相关文档
最新文档