当前位置: 首页 > Linux > 正文

OL 7.4 : 配置iSCSI启动器,配置PowerPath 6.3

#使用EPEL安装iscsi-initiator-utils

[root@hisdb01 yum.repos.d]# ll
总用量 8
drwxr-xr-x. 2 root root  93 3月   2 20:39 bak<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
-rw-r--r--. 1 root root 951 3月   2 20:44 epel.repo
-rw-r--r--. 1 root root  83 3月   2 20:40 local.repo
[root@hisdb01 yum.repos.d]#  yum --enablerepo=epel -y install scsi-target-utils 
已加载插件:langpacks, ulninfo
epel/x86_64/metalink                                                                                         | 6.1 kB  00:00:00     
epel                                                                                                         | 4.7 kB  00:00:00     
(1/2): epel/x86_64/updateinfo                                                                                | 900 kB  00:00:14     
(2/2): epel/x86_64/primary_db                                                                                | 6.3 MB  
...
已安装:
  scsi-target-utils.x86_64 0:1.0.55-4.el7                                                                                           

作为依赖被安装:
  perl-Config-General.noarch 0:2.61-1.el7                                                                                           

完毕!

# cat /etc/iscsi/initiatorname.iscsi  
InitiatorName=iqn.1988-12.com.oracle:hisdb01

# vi /etc/iscsi/iscsid.conf
# line 57: 取消注释
node.session.auth.authmethod = CHAP
# line 61,62: 取消注释 and specify the username and password you set on the iSCSI target server
node.session.auth.username = username
node.session.auth.password = password


# 发现target
# iscsiadm -m discovery -t sendtargets -p 192.0.1.212
192.0.1.212:3260,2 iqn.1992-04.com.emc:cx.cetv2153400018.b4

# iscsiadm -m discovery -t sendtargets -p 192.0.1.211
192.0.1.211:3260,3 iqn.1992-04.com.emc:cx.cetv2153400018.a4
192.0.1.212:3260,2 iqn.1992-04.com.emc:cx.cetv2153400018.b4


#登录target
# iscsiadm -m node --login
Logging in to [iface: default, target: iqn.1992-04.com.emc:cx.cetv2153400018.a4, portal: 192.0.1.211,3260] (multiple)
Logging in to [iface: default, target: iqn.1992-04.com.emc:cx.cetv2153400018.b4, portal: 192.0.1.212,3260] (multiple)
Login to [iface: default, target: iqn.1992-04.com.emc:cx.cetv2153400018.a4, portal: 192.0.1.211,3260] successful.
Login to [iface: default, target: iqn.1992-04.com.emc:cx.cetv2153400018.b4, portal: 192.0.1.212,3260] successful.


#确认连接状态
# iscsiadm -m session -o show
tcp: [1] 192.0.1.211:3260,3 iqn.1992-04.com.emc:cx.cetv2153400018.a4 (non-flash)
tcp: [2] 192.0.1.212:3260,2 iqn.1992-04.com.emc:cx.cetv2153400018.b4 (non-flash)

 

 

http://blog.csdn.net/wh211212/article/details/52981305

[root@hisdb01 ~]# rpm -ivh EMCPower.LINUX-6.3.0.01.00-001.OL7.x86_64.rpm 
准备中...                          ################################# [100%]
/var/tmp/rpm-tmp.ZHXQgw: 第 270 行:[: 溠期待整数表达式
正在升级/安装...
   1:EMCpower.LINUX-6.3.0.01.00-001.ol################################# [100%]
此处用到的所有商标分别是其各自所有者的资产。
注意:管理 CLARiiON AX 系列阵列不需要许可证注册。
  
*** IMPORTANT *** 
启动 PowerPath 之前,请检查下列配置:
   - Set LVM global_filter in /etc/lvm/lvm.conf according to PowerPath recommendation.
   - 将 /etc/multipath.conf 中的所有设备列入黑名单,并停止 multipathd 服务。
   - 安装 PowerPath 许可证并确保未将策略设置为 BasicFailover。
   - 如果没有可用的许可证,请确保主机中仅有一个活动的 HBA 端口。
     未经过许可,PowerPath 仅支持单个 HBA 配置。
更多详细信息,请参阅《PowerPath 安装和管理指南》。
  
[root@hisdb02 ~]# rpm -ivh EMCPower.LINUX-6.3.0.01.00-001.OL7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:EMCpower.LINUX-6.3.0.01.00-001.ol################################# [100%]
All trademarks used herein are the property of their respective owners.
NOTE:License registration is not required to manage the CLARiiON AX series array.
  
*** IMPORTANT *** 
Please check the following configurations before starting PowerPath:
   - Set LVM global_filter in /etc/lvm/lvm.conf according to PowerPath recommendation.
   - Blacklist all devices in /etc/multipath.conf and stop multipathd service.
   - Install PowerPath license(s) and ensure that policy is not set to BasicFailover.
   - If no license is available, ensure that only one HBA port is active in the host.
     PowerPath supports only single-HBA configuration when unlicensed.
Refer to PowerPath Installation and Administration Guide for details.

[root@hisdb01 ~]# 
[root@hisdb01 ~]# emcpreg -add key BCP6-MB4K-TFDM-QP2Y-MJ9P-KABB 
Key key is invalid, ignored.
1 key(s) successfully added.

[root@hisdb01 ~]# systemctl start PowerPath.service

[root@hisdb01 ~]# emcpreg -list

Key BCP6-MB4K-TFDM-QP2Y-MJ9P-KABB
  Product: PowerPath
  Capabilities: All 
[root@hisdb01 ~]# powermt check_registration

ERROR: Cannot open PowerPath. Initialization error(版本错误,调整为PowerPath 6.3)


[root@hisdb01 ~]# powermt check_registration

Key BCP6-MB4K-TFDM-QP2Y-MJ9P-KABB
  Product: PowerPath
  Capabilities: All 

[root@hisdb01 ~]# systemctl disable multipathd
Removed symlink /etc/systemd/system/sysinit.target.wants/multipathd.service.

[root@hisdb01 ~]# ps -ef |grep emc
root     20244     2  0 22:41 ?        00:00:00 [emcpd]
root     20245     2  0 22:41 ?        00:00:00 [emcpdefd]
root     20246     2  0 22:41 ?        00:00:00 [emcprequestd]
root     20247     2  0 22:41 ?        00:00:00 [emcpmiscd]
root     20248     2  0 22:41 ?        00:00:00 [emcpgrioctld]
root     20606 16129  0 22:44 pts/0    00:00:00 grep --color=auto emc

[root@hisdb01 ~]# powermt display
VNX logical device count=9
==============================================================================
----- Host Bus Adapters ---------  ------ I/O Paths -----  ------ Stats ------
###  HW Path                       Summary   Total   Dead  IO/Sec Q-IOs Errors
==============================================================================
   3 100.1.2.41                    optimal       9      0       -     0      0
   4 100.1.2.41                    optimal       9      0       -     0      0
[root@hisdb01 ~]# powermt display ports

Storage class = VNX
==============================================================================
----------- Storage System ---------------     -- I/O Paths --   --- Stats ---
    ID              Interface         Wt_Q      Total    Dead    Q-IOs  Errors
==============================================================================
    CETV2153400018   SP A4             256          9       0        0       0 
    CETV2153400018   SP B4             256          9       0        0       0 
[root@hisdb01 ~]# powermt display dev=all
Pseudo name=emcpowera
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E0007E9AFA1CB64E711 [ORACLE_RAC_FRA_3]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   3 100.1.2.41             sdr        SP A4     active   alive      0      0
   4 100.1.2.41             sds        SP B4     active   alive      0      0

Pseudo name=emcpowerb
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E0006E9AFA1CB64E711 [ORACLE_RAC_FRA_2]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   3 100.1.2.41             sdp        SP A4     active   alive      0      0
   4 100.1.2.41             sdq        SP B4     active   alive      0      0

Pseudo name=emcpowerc
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E0005E9AFA1CB64E711 [ORACLE_RAC_FRA_1]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   3 100.1.2.41             sdn        SP A4     active   alive      0      0
   4 100.1.2.41             sdo        SP B4     active   alive      0      0

Pseudo name=emcpowerd
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E004FAC04A6CA64E711 [ORACLE_RAC_DATA_3]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   3 100.1.2.41             sdl        SP A4     active   alive      0      0
   4 100.1.2.41             sdm        SP B4     active   alive      0      0

Pseudo name=emcpowere
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E004EAC04A6CA64E711 [ORACLE_RAC_DATA_2]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   3 100.1.2.41             sdj        SP A4     active   alive      0      0
   4 100.1.2.41             sdk        SP B4     active   alive      0      0

Pseudo name=emcpowerf
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E004DAC04A6CA64E711 [ORACLE_RAC_DATA_1]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   4 100.1.2.41             sdh        SP B4     active   alive      0      0
   3 100.1.2.41             sdi        SP A4     active   alive      0      0

Pseudo name=emcpowerg
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E0045BD2D09BE64E711 [ORACLE_RAC_OCR_3]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   4 100.1.2.41             sdf        SP B4     active   alive      0      0
   3 100.1.2.41             sdg        SP A4     active   alive      0      0

Pseudo name=emcpowerh
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E0044BD2D09BE64E711 [ORACLE_RAC_OCR_2]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   4 100.1.2.41             sdd        SP B4     active   alive      0      0
   3 100.1.2.41             sde        SP A4     active   alive      0      0

Pseudo name=emcpoweri
VNX ID=CETV2153400018 [ORACLE_RAC_Test]
Logical device ID=600601603A003E0043BD2D09BE64E711 [ORACLE_RAC_OCR_1]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   4 100.1.2.41             sdb        SP B4     active   alive      0      0
   3 100.1.2.41             sdc        SP A4     active   alive      0      0

[root@hisdb01 ~]# 

[root@hisdb02 emcpower]# pwd
/etc/opt/emcpower
[root@hisdb02 emcpower]# ll
总用量 3456
-rw-r--r-- 1 root root     310 1月   8 17:30 80-udev-pp-xio.rules
drwxr-xr-x 2 root root      55 3月   2 22:39 bin
-rwxr-xr-x 1 root root   68833 1月   8 17:30 emcpbfs_linux
-rwxr-xr-x 1 root root   72400 1月   8 17:30 emcplun_linux
-rwxr-xr-x 1 root root 1543595 1月   8 17:30 emcpmgr
-rwxr-xr-x 1 root root    2090 1月   8 17:30 emcp_mond-sample.conf
drwxr-xr-x 6 root root    4096 3月   2 22:39 EMCpower.LINUX-6.3.0.01.00
-rwxr-xr-x 1 root root    7628 1月   8 17:30 emcp_serv.sh
-rwxr-xr-x 1 root root   91086 1月   8 17:30 EULA.pdf
-rw-r--r-- 1 root root    2724 3月   2 22:39 log
-rw-r--r-- 1 root root       0 3月   2 22:39 patch.log
-rwxr-xr-x 1 root root 1708033 1月   8 17:30 powercf
-rwxr-xr-x 1 root root    4029 1月   8 17:30 pp_reset_dm_deps.sh
-rwxr-xr-x 1 root root    5198 1月   8 17:30 server.pem
-rwxr-xr-x 1 root root    4615 1月   8 17:30 snmpd.conf
[root@hisdb02 emcpower]# ./emcplun_linux scan 
---------------------------------------------------------------------

Usage: 

emcplun_linux <operation>

operations:
   (s)can hba [-noprompt]
   (s)can iscsi [-noprompt]
   (s)can open-fcoe [-noprompt]
   (s)can all [-noprompt]
   (s)can {<#> [<#>]} [-noprompt]
   (s)can aid=<Array ID#> [tgt=<#>] [hlu=<#>] [-noprompt]
   (s)can hba=<#> tgt=<#> [hlu=<#>] [-noprompt]
   (r)emove <pseudo-list>|all [-noprompt]
   (l)ist [<pseudo-list>] [default: all]
   (h)elp|-h [operation]

If no operation is given, runs in interactive mode.

本文固定链接: http://t.yjsec.com/index.php/2018/03/02/422/ | 下一站

该日志由 admin 于2018年03月02日发表在 Linux 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: OL 7.4 : 配置iSCSI启动器,配置PowerPath 6.3 | 下一站

OL 7.4 : 配置iSCSI启动器,配置PowerPath 6.3:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter