【多路徑】EMC儲存多路徑軟體配置

TaihangMeng發表於2017-03-24

EMC PowerPath是用於進行路徑選擇,冗餘和負載均衡的管理軟體,相對於HP,IBM等廠商的多路徑,

EMC的優勢在於能夠實現負載均衡,而其他廠家僅支援基本故障切換。

 

1)安裝rpm

先將powerpath安裝包上傳到伺服器:(D:\EMC儲存配置\powerpath)

[root@shcrm tmp]# ls *.rpm

EMCpower.LINUX-5.3.1.00.00-111.rhel.i386.rpm

開始安裝:

[root@shcrm tmp]# rpm -Uvh EMCpower.LINUX-5.3.1.00.00-111.rhel.x86_64.rpm

準備...                     ########################################### [100%]

   1:EMCpower.LINUX         ########################################### [100%]

 

2)註冊

註冊PowerPathLicense

[root@shcrm ~]# emcpreg -install

根據提示輸入PowerPathLicense

         PowerPath license key: BZPV-ZB4K-BFTK-QOME-ML9O-UYFB

 

如果您輸入了一個有效的註冊金鑰,您將看到以下輸出:

1 Key(s) successfully added.

Key successfully installed:

如果您輸入了一個無效的註冊金鑰,螢幕上將顯示一條錯誤訊息,

提示您輸入有效的金鑰。

 

3)啟動PowerPath

載入PowerPath模組:

[root@shcrm ~]# /etc/init.d/PowerPath start

 

檢視是否出現新的偽裝置:

[root@shcrm ~]# fdisk -l |grep emcpower

[root@X01A19 tmp]# fdisk -l

Disk /dev/sda: 899.9 GB, 899899242496 bytes

255 heads, 63 sectors/track, 109406 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

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

I/O size (minimum/optimal): 262144 bytes / 786432 bytes

Disk identifier: 0x00088dd0

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          26      205056   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              26       13080   104857344   83  Linux

/dev/sda3           13080       17258    33554688   82  Linux swap / Solaris

/dev/sda4           17258      109407   740189998    5  Extended

/dev/sda5           17258      109407   740189184   8e  Linux LVM

 

Disk /dev/sdb: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 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: 0x00000000

 

 

Disk /dev/sdc: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 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: 0x00000000

 

 

Disk /dev/sdd: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 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: 0x00000000

 

 

Disk /dev/sde: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 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: 0x00000000

 

 

Disk /dev/sdf: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 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: 0x00000000

 

 

Disk /dev/sdg: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 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: 0x00000000

 

檢查負載平衡和故障切換策略:

[root@shcrm ~]# powermt display dev=all

Pseudo name=emcpowera

VNX ID=CETV2134900044 [USC B2B]

Logical device ID=6006016051E03600841F3C47B2FCE611 [lun1_USC_B2B]

state=alive; policy=CLAROpt; queued-IOs=0

Owner: default=SP A, current=SP A       Array failover mode: 4

==============================================================================

--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---

###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors

==============================================================================

   1 qla2xxx                sdg         SP B1    active   alive      0      0

   1 qla2xxx                sdf         SP A3    active   alive      0      0

   1 qla2xxx                sde         SP B2    active   alive      0      0

   0 qla2xxx                sdb         SP B3    active   alive      0      1

   0 qla2xxx                sdc         SP A1    active   alive      0      1

   0 qla2xxx                sdd         SP A2    active   alive      0      1

 (此處顯示的行數為路徑的數目)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30776559/viewspace-2135990/,如需轉載,請註明出處,否則將追究法律責任。

相關文章