天天看點

cx4-120 and 2 p570 and 4 fabric configuration within aix 6.1

環境如圖,兩台p570通過4個 fabric連到1台emc cx4-120.其中兩台小機已經安裝了aix6.1的作業系統和hacmp5.4的環境。準備安裝oracle 10g rac。

如圖:

cx4-120 and 2 p570 and 4 fabric configuration within aix 6.1

    用習慣了linux,在aix上裝個emc的agent真的比較麻煩,還有odm和powerpath,上午跟dell的金牌聯系,安裝金牌的說法,隻需要安裝他們提供的agent和powerpath軟體就ok了。不過安裝他們提供的方法裝了幾個小時,還是問題多多,第一是powermt display dev=all 看不到輸出。另外是agent的注冊也成問題(隻能注冊到單塊網卡,有一台注冊的ip也不對)。

    下午搜到一篇emc的官方文檔 id編号:429608,按照文檔的說法。

    需要按順序安裝odm ,重新開機 , powerpath ,naviagent (注冊), navicli(可選) ,   emc_cfgmgr.sh , 重新開機 (注冊) 

    為什麼要安裝naviagent,看一個圖就明白了,agent通過光纖向cx4發送注冊資訊,通過ip網絡向cx4的管理ip口發送lun的資訊 :

cx4-120 and 2 p570 and 4 fabric configuration within aix 6.1

下面的配置步驟:

首先確定hacmp已經安裝好了,ibm hba卡驅動安裝正确(可能會使用到cfgmgr指令),光纖交換機的zone和config都已經配置好并且生效。至于cx4上面的lun可以先劃分也可以最後劃分。

1. 安裝odm

下載下傳 ftp://ftp.emc.com/pub/elab/aix/odm_definitions

emc.aix.5.3.0.3.tar.z

傳到aix伺服器

以root身份安裝.

smitty installp

  選擇解壓好的odm檔案存放目錄

  f4 挑選 emc clariion aix support software

  emc clariion fcp support software

  emc clariion ha concurrent support

  安裝

安裝完後重新開機伺服器

shutdown -fr

2. 安裝powerpath

版本:emcpower.aix.5.3.sp1.b084.tar.z

  選擇解壓好的檔案存放目錄

   安裝所有

  安裝完後emcpreg -install 導入許可

3. 安裝naviagent

  版本 navihostagent-aix-6.28.21.0.27.zip

  以root身份安裝.

  安裝完後先不要執行/etc/rc.agent start

  因為多網卡的機器可能會使agent和emc管理ip不是選擇同一個網段的ip。

  解決辦法,在/下面建立agentid.txt

  寫入格式如下 : 

  skydb01.sky-mobi.com.hz.sandun  (本地全名)

   192.168.1.20   ( 本機ip,和cx4管理ip,一個段的那個ip)

  删除檔案/etc/log/hostidfile.txt  (這個檔案内容大概如下 : )

# cat /etc/log/hostidfile.txt

192.168.173.22220110112080528

如果之前安裝過naviagent 并且選擇的ip和cx4管理ip不在同一個段,删掉這個檔案并編寫/agentid.txt可以強制改寫這個hostidfile.txt的内容。

修改好後執行/etc/rc.agent start

待cx4管理界面看到agent已經注冊後。配置lun和storage group。

在aix root使用者下建立以下腳本 emc_cfgmgr,sh 并執行 

#####################################################################

## emc_cfgmgr                                                      ##

## directed configuration for emc storage devices.                 ##

## copyright (c) 1999,2000,2002  emc corporation                   ##

## this utility supports symmetrix timefinder devices, symmetrix   ##

## timefinder devices under powerpath 2.x,3.x and clariion devices ##

## under powerpath 3.x.                                            ##

## krichards v2.0.0.2 06/12/02                                     ##

lang=c

for pathtype in scsi fchan fcs

do

    for powerpath in `lsdev -cc adapter -fname | grep ${pathtype}`

    do

        cfgmgr -vl ${powerpath}

        if [ -f /usr/lpp/symmetrix/bin/mkbcv ]

                then

             /usr/lpp/symmetrix/bin/mkbcv -a

        fi

    done

done

if [ -f /etc/methods/scan_for_scsi3clariion ]

then

    /etc/methods/scan_for_scsi3clariion 

fi

4. 重新開機aix,

   在root使用者下執行/etc/rc.agent start

   執行lscfg |grep lunz

   應該可以看到cx4配置設定過來的lun了。

  同時使用powermt display dev=all也可以看到裝置.