IBM8800儲存,光釺交換機384B,主機Linux,二代支付前置

fjzcau發表於2015-02-08

現將5月9日晚二代支付劃盤過程整理,在IBM工程師的支援下,進行劃zone和ds8800建立lun指令碼以及suse多路徑軟體安裝配置。
由於我的不熟練及劃zone時8800在交換機上對應的DOMAIN ID誤認為384b的domain id,
導致後面suse主機認盤報錯,原本計劃10點多能完成的。


在384b上連線光纖線,分配口 140,141,142,143
1)     檢視suse主機HBA卡wwn號
more /sys/class/fc_host/host*/port_name
2)     Suse多路徑軟體安裝方法查詢
4)384b劃zone
5)ds8800建立lun和volgrp及mkhostconnect 

---------------------------------------------------------------------------------
linux檢視光纖卡wwn:
more /sys/class/fc_host/host*/port_name

suse多路徑軟體配置:

Subsystem Device Driver for Linux (sdd) for linux




1)在系統準備DM-Multipath之前,請確保系統包含device-mapper-multipath包,作業系統安裝光碟內包含該rpm包。
安裝包檢查:
rpm -qa | grep multi
rpm -qa | grep device
rpm -ivh  device-mapper-1.02.63-18.25.1.x86_64.rpm
rpm -ivh  multipath-tools-0.4.9-0.60.1.x86_64.rpm

2)配置 DM-Multipath
modprobe dm-multipath //載入模組
service multipathd start //啟動服務
chkconfig multipathd on  //確保multipath daemon 開機自動啟動
multipath –v2   // multipath –v2命令輸出多路徑裝置,如果沒有任何輸出,確保SAN正確
multipath -v3    //load path identifiers cache
multipath –l      //顯示多路徑裝置資訊
multipath –F    //清除記憶體的配置

3)本地的硬碟裝置不建議使用DM-Multipath,需要將本地硬碟從多路徑裝置中忽略。有兩種方式,
方式一:
vi /etc/multipath.conf
將blacklist {
        devnode "*"
}
修改成
blacklist {
        devnode "^sda"       
//掃描除本地硬碟的多路徑裝置,若是hp伺服器則 devnode "^ciss"
}

方式二:
/etc/multipath.conf檔案中新增
blacklist{
       wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1(該值為本地硬碟的WWID)
}



---------------------------------------------------------------------------------
--384b 1    10.244.16.21 admin/password  登陸後:ctrl+c 不修改密碼
switchName:     IBM_384B1_UP
switchType:     77.3
switchState:    Online  
switchMode:     Native
switchRole:     Subordinate
switchDomain:   11
switchId:       fffc0b
switchWwn:      10:00:00:27:f8:5b:87:4c
zoning:         ON (cfg2)
--交換機switchshow顯示:
140    7   12   0b8c00   id    N8   Online      FC  F-Port  10:00:00:00:c9:ca:b0:36  edzfqz4_fcs0
141    7   13   0b8d00   id    N8   Online      FC  F-Port  10:00:00:00:c9:ca:af:76   edzfqz3_fcs0
142    7   14   0b8e00   id    N4   Online      FC  F-Port  50:00:10:a0:00:90:f0:c8  edzfqz2_fcs0
143    7   15   0b8f00   id    N4   Online      FC  F-Port  50:00:10:a0:00:90:e6:c8  edzfqz1_fcs0

建立新zone,以下在每臺交換機執行,下面的24,25口的domain id 不是 11
zonecreate "edzfqz4_fcs0_DS8800","11,140;11,24;11,25"
zonecreate "edzfqz3_fcs0_DS8800","11,141;11,24;11,25"
zonecreate "edzfqz2_fcs0_DS8800","11,142;11,24;11,25"
zonecreate "edzfqz1_fcs0_DS8800","11,143;11,24;11,25"
cfgadd "cfg2","edzfqz1_fcs0_DS8800"
cfgadd "cfg2","edzfqz2_fcs0_DS8800"
cfgadd "cfg2","edzfqz3_fcs0_DS8800"
cfgadd "cfg2","edzfqz4_fcs0_DS8800"
cfgsave
cfgenable "cfg2"

---------------------------------------------------------------------------------
--384b 2  10.244.16.24
switchName:     IBM_384B1_DOWN
switchType:     77.3
switchState:    Online  
switchMode:     Native
switchRole:     Subordinate
switchDomain:   11
switchId:       fffc0b
switchWwn:      10:00:00:27:f8:52:58:c8
zoning:         ON (cfg2)


140    7   12   0b8c00   id    N8   Online      FC  F-Port  10:00:00:00:c9:ca:b0:71    edzfqz4_fcs1
141    7   13   0b8d00   id    N8   Online      FC  F-Port  10:00:00:00:c9:ca:b0:a8    edzfqz3_fcs1
142    7   14   0b8e00   id    N4   Online      FC  F-Port  50:01:43:80:16:77:7f:34    edzfqz2_fcs1
143    7   15   0b8f00   id    N4   Online      FC  F-Port  50:00:10:a0:00:90:ef:c8      edzfqz1_fcs1

zonecreate "edzfqz4_fcs1_DS8800","11,140;11,24;11,25"
zonecreate "edzfqz3_fcs1_DS8800","11,141;11,24;11,25"
zonecreate "edzfqz2_fcs1_DS8800","11,142;11,24;11,25"
zonecreate "edzfqz1_fcs1_DS8800","11,143;11,24;11,25"
cfgadd "cfg2","edzfqz1_fcs1_DS8800"
cfgadd "cfg2","edzfqz2_fcs1_DS8800"
cfgadd "cfg2","edzfqz3_fcs1_DS8800"
cfgadd "cfg2","edzfqz4_fcs1_DS8800"
cfgsave
cfgenable "cfg2"


------------------------------------------------------------------------
384b 1 重建zone
cfgremove "cfg2","edzfqz1_fcs0_DS8800"
cfgremove "cfg2","edzfqz2_fcs0_DS8800"
cfgremove "cfg2","edzfqz3_fcs0_DS8800"
cfgremove "cfg2","edzfqz4_fcs0_DS8800"

zonedelete "edzfqz1_fcs0_DS8800"
zonedelete "edzfqz2_fcs0_DS8800"
zonedelete "edzfqz3_fcs0_DS8800"
zonedelete "edzfqz4_fcs0_DS8800"

cfgsave
cfgenable "cfg2"

zonecreate "edzfqz4_fcs0_DS8800","11,140;2,24;2,25"
zonecreate "edzfqz3_fcs0_DS8800","11,141;2,24;2,25"
zonecreate "edzfqz2_fcs0_DS8800","11,142;2,24;2,25"
zonecreate "edzfqz1_fcs0_DS8800","11,143;2,24;2,25"

cfgadd "cfg2","edzfqz1_fcs0_DS8800"
cfgadd "cfg2","edzfqz2_fcs0_DS8800"
cfgadd "cfg2","edzfqz3_fcs0_DS8800"
cfgadd "cfg2","edzfqz4_fcs0_DS8800"
cfgsave
cfgenable "cfg2"

------------------------------------------------------------------------
384b 2 重建zone
cfgremove "cfg2","edzfqz1_fcs1_DS8800"
cfgremove "cfg2","edzfqz2_fcs1_DS8800"
cfgremove "cfg2","edzfqz3_fcs1_DS8800"
cfgremove "cfg2","edzfqz4_fcs1_DS8800"
zonedelete "edzfqz1_fcs1_DS8800"
zonedelete "edzfqz2_fcs1_DS8800"
zonedelete "edzfqz3_fcs1_DS8800"
zonedelete "edzfqz4_fcs1_DS8800"

cfgsave
cfgenable "cfg2"

zonecreate "edzfqz4_fcs1_DS8800","11,140;2,24;2,25"
zonecreate "edzfqz3_fcs1_DS8800","11,141;2,24;2,25"
zonecreate "edzfqz2_fcs1_DS8800","11,142;2,24;2,25"
zonecreate "edzfqz1_fcs1_DS8800","11,143;2,24;2,25"
cfgadd "cfg2","edzfqz1_fcs1_DS8800"
cfgadd "cfg2","edzfqz2_fcs1_DS8800"
cfgadd "cfg2","edzfqz3_fcs1_DS8800"
cfgadd "cfg2","edzfqz4_fcs1_DS8800"

cfgsave
cfgenable "cfg2"



--------------------------------------------------------------------------------
edzf ds8800 建立lun 和 volgrp 

dscli -cfg profile.txt

--power系統的配置檔名
lshosttype -type scsimask

--開放平臺的主機配置檔名
lshosttype -type scsimap256


建立LUN
mkfbvol -extpool P0 -cap 50 -name edzfqz12_01  2400
mkfbvol -extpool P1 -cap 50 -name edzfqz12_02  2500
mkfbvol -extpool P0 -cap 50 -name edzfqz34_01  2401
mkfbvol -extpool P1 -cap 50 -name edzfqz34_02  2501

建立VG
mkvolgrp -type scsimap256  -volume 2400,2500   edzfqz12_vg
mkvolgrp -type scsimap256  -volume 2401,2501   edzfqz34_vg

lsvolgrp -l 檢視新建 volgrp 的 id

mkhostconnect -wwname 10000000c9cab036 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz4_fcs0  光纖口在hostconnect的別名
mkhostconnect -wwname 10000000c9caaf76 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz3_fcs0
mkhostconnect -wwname 500010a00090f0c8 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz2_fcs0
mkhostconnect -wwname 500010a00090e6c8 -profile "LinuxSuse" -volgrp v18  -ioport all edzfqz1_fcs0                                                          
mkhostconnect -wwname 10000000c9cab071 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz4_fcs1
mkhostconnect -wwname 10000000c9cab0a8 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz3_fcs1
mkhostconnect -wwname 5001438016777f34 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz2_fcs1
mkhostconnect -wwname 500010a00090efc8 -profile "LinuxSuse" -volgrp v18  -ioport all  edzfqz1_fcs1

--將lun id 為 2202 的 fbvol 改名為 new_eddb_04
chfbvol -name new_eddb_04 2202

--新增lun
chvolgrp -action add -volume 2201 v6
chvolgrp -action add -volume 2202,2302-2304 v7

----------------------------------------------------------------------------------------------
20140515  edzf 劃盤步驟
edapp_apvg01   2100 Online   Normal    Normal      2107-900  FB 512   P1            200.0           -    419430400
eddb_dbvg01    2200 Online   Normal    Normal      2107-900  FB 512   P0            200.0           -    419430400
eddb_dbvg02    2300 Online   Normal    Normal      2107-900  FB 512   P1            200.0           -    419430400
eddb_dbvg03    2301 Online   Normal    Normal      2107-900  FB 512   P1            200.0           -    419430400

mkfbvol -extpool P0 -cap 200 -name edapp_apvg02  2201
mkfbvol -extpool P0 -cap 200 -name edapp_dbvg04  2202
mkfbvol -extpool P1 -cap 200 -name edapp_dbvg05  2302
mkfbvol -extpool P1 -cap 200 -name edapp_dbvg06  2303
mkfbvol -extpool P1 -cap 200 -name edapp_dbvg07  2304

chfbvol -name eddb_dbvg04 2202
chfbvol -name eddb_dbvg05 2302
chfbvol -name eddb_dbvg06 2303
chfbvol -name eddb_dbvg07 2304

chvolgrp -action add -volume 2201 v6
chvolgrp -action add -volume 2202,2302-2304 v7

----------------------------------------------------------------------------------------------

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

相關文章