IBM HACMP FOR Content Manager 配置說明

duhaiyang發表於2007-12-15

啟動HACMP的指令碼說明

cp /ha51/db2nodes.cfg /home/db2inst1/sqllib/db2nodes.cfg(設定db2環境)

. /home/db2inst1/sqllib/db2profile

rc.db2pe.ee db2inst1 start (啟動db2例項)

db2text start (啟動db2全文檢索)

/webapp/IBMHttpServer/bin/apachectl start (啟動http

/webapp/WebSphere/AppServer/bin/startServer.sh server1 (啟動server1

/webapp/WebSphere/AppServer/bin/startServer.sh icmrm (啟動icmrm

[@more@]

安裝的空間為 hacmvg

#/lspv

AUDB1/#lspv

hdisk0 0051e97e81c5ad33 rootvg active

hdisk1 none None

hdisk2 0051e97ed553b0de cmbak

hdisk3 0051e97ed553e40c hacmvg

# lsvg rootvg

AUDB1/#lsvg rootvg

VOLUME GROUP: rootvg VG IDENTIFIER: 0051e97e00004c000000010407593de4

VG STATE: active PP SIZE: 128 megabyte(s)

VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes)

MAX LVs: 256 FREE PPs: 401 (51328 megabytes)

LVs: 12 USED PPs: 145 (18560 megabytes)

OPEN LVs: 11 QUORUM: 2

TOTAL PVs: 1 VG DESCRIPTORS: 2

STALE PVs: 0 STALE PPs: 0

ACTIVE PVs: 1 AUTO ON: yes

MAX PPs per PV: 1016 MAX PVs: 32

LTG size: 128 kilobyte(s) AUTO SYNC: no

HOT SPARE: no BB POLICY: relocatable

擴充套件檔案系統:(1G =2048000 blocks)

/dev/fslv01 -- /home/db2fenc1 jfs2 2097152 rw

/dev/fslv02 -- /home/db2as jfs2 2097152 rw

/dev/fslv03 -- /home/db2inst1 jfs2 10223616 rw

/dev/fslv04 -- /fscm8db jfs2 18612224 rw

/dev/fslv05 -- /fscm8dbubos jfs2 41156608 rw

/dev/fslv06 -- /webapp jfs2 102498304 rw

/dev/fslv07 -- /icmrm jfs2 10485760 rw

/dev/fslv08 -- /fscm8dblbos jfs2 409731072 rw

此外:

Directory Required space

/ 80MB

/home 500 MB

/usr 350 MB

/var 50 MB

/tmp 200 MB

AUDB1/#netstat -ni

名稱 Mtu 網路 地址 Ipkts Ierrs Opkts Oerrs Coll

en0 1500 link#2 0.11.25.8.45.2d 13040 0 4946 5 0

en0 1500 100.1 100.1.0.3 13040 0 4946 5 0

en0 1500 10.60.1 10.60.1.22 13040 0 4946 5 0

en3 1500 link#3 0.11.25.8.45.2b 24109 0 12769 3 0

en3 1500 192.168.0 192.168.0.3 24109 0 12769 3 0

lo0 16896 link#1 16521 0 16574 0 0

lo0 16896 127 127.0.0.1 16521 0 16574 0 0

lo0 16896 ::1 16521 0 16574 0 0

AUDB2/#netstat -ni

名稱 Mtu 網路 地址 Ipkts Ierrs Opkts Oerrs Coll

en0 1500 link#2 0.11.25.8.42.81 12636 0 164 5 0

en0 1500 100.1 100.1.0.4 12636 0 164 5 0

en0 1500 10.60.1 10.60.1.26 12636 0 164 5 0

en3 1500 link#3 0.11.25.8.44.e8 12583 0 94 3 0

en3 1500 192.168.0 192.168.0.4 12583 0 94 3 0

lo0 16896 link#1 1684 0 1684 0 0

lo0 16896 127 127.0.0.1 1684 0 1684 0 0

lo0 16896 ::1 1684 0 1684 0 0

AUDB1的配置

AUDB1/#lspv

hdisk0 0051e97e81c5ad33 rootvg active

hdisk1 none None

hdisk2 0051e97ed553b0de cmbak

hdisk3 0051e97ed553e40c hacmvg

AUDB2的配置

AUDB2/#lspv

hdisk0 0056f7de81bd6b53 rootvg active

hdisk1 0056f7de170455d5 None

hdisk2 0051e97ed553b0de cmbak

hdisk3 0051e97ed553e40c hacmvg

AUDB1/etc/hosts的配置

127.0.0.1 loopback localhost # loopback (lo0) name/address

100.1.0.3 AUDB1_boot1 AUDB1

100.1.0.4 AUDB2_boot1 AUDB2

192.168.0.3 AUDB1_boot2

192.168.0.4 AUDB2_boot2

10.60.1.21 AUDB1_svc

10.60.1.22 AUDB1_per

10.60.1.25 AUDB2_svc

10.60.1.26 AUDB2_per

AUDB2/etc/hosts的配置

127.0.0.1 loopback localhost # loopback (lo0) name/address

100.1.0.3 AUDB1_boot1 AUDB1

100.1.0.4 AUDB2_boot1 AUDB2

192.168.0.3 AUDB1_boot2

192.168.0.4 AUDB2_boot2

10.60.1.21 AUDB1_svc

10.60.1.22 AUDB1_per

10.60.1.25 AUDB2_svc

10.60.1.26 AUDB2_per

AUDB1/ha51#ls -l

總計 40

-rwxrwxrwx 1 root system 14 601 2230 db2nodes.cfg

-rwxrwxrwx 1 root system 2066 524 0819 hacmp.out

-rwxrwxrwx 1 root system 1371 601 2235 rc.db2pe.ee

-rwxr-xr-x 1 root system 235 606 1605 startcm.sh

-rwxr-xr-x 1 root system 185 606 1605 stopcm.sh

AUDB2/ha51#ls -l

總計 40

-rwxrwxrwx 1 root system 14 601 2252 db2nodes.cfg

-rwxrwxrwx 1 root system 3155 524 1515 hacmp.out

-r-xr--r-- 1 root system 1371 603 1401 rc.db2pe.ee

-rwxr-xr-x 1 root system 235 603 1349 startcm.sh

-rwxr-xr-x 1 root system 185 603 1349 stopcm.sh

注意在兩個節點要保證hosts 啟動/停止指令碼要一樣存在。

smitty hacmp

Initialization and Standard Configuration

Extended Configuration

System Management (C-SPOC)

Problem Determination Tools

Add Nodes to an HACMP Cluster

Configure Resources to Make Highly Available

Configure HACMP Resource Groups

Verify and Synchronize HACMP Configuration

Display HACMP Configuration

* Cluster Name [cmha]

New Nodes (via selected communication paths)[m [AUDB1_boot1 AUDB2_boot1]

Currently Configured Node(s)

這一部很重要,一般我們都是把每個節點的boot1 作為communication path . New node

可以一起加,也可以一個一個的加。當回車以後,系統會自己discover hacmp 的資源

顯示如下:

。。。。。。。。。。。。。。。。。。。。

IP Network Discovery completed normally

Current cluster configuration:

Cluster Description of Cluster: cmha

Cluster Security Level: Standard

There are 2 node(s) and 2 network(s) defined

NODE AUDB1:

Network net_ether_01

AUDB2_svc 10.60.1.25

AUDB1_svc 10.60.1.21

AUDB1_boot1 100.1.0.3

AUDB1_boot2 192.168.0.3

Network net_rs232_01

db1_tty0 /dev/tty0

NODE AUDB2:

Network net_ether_01

AUDB2_svc 10.60.1.25

AUDB1_svc 10.60.1.21

AUDB2_boot1 100.1.0.4

AUDB2_boot2 192.168.0.4

Network net_rs232_01

db2_tty0 /dev/tty0

Resource Group res1

Behavior cascading

Participating Nodes AUDB1 AUDB2

Service IP Label AUDB1_svc

新增服務ip地址

Add Nodes to an HACMP Cluster

Configure Resources to Make Highly Available

Configure HACMP Resource Groups

Verify and Synchronize HACMP Configuration

Display HACMP Configuration

Configure Service IP Labels/Addresses

Configure Application Servers

Configure Volume Groups, Logical Volumes and Filesystems

Configure Concurrent Volume Groups and Logical Volumes

Add a Service IP Label/Address

Change/Show a Service IP Label/Address

Remove Service IP Label(s)/Address(es)

[輸入欄位]

IP Label/Address AUDB1_svc

* New IP Label/Address [] +

* Network Name [net_ether_01] +

新增application server

Configure Service IP Labels/Addresses

Configure Application Servers

Configure Volume Groups, Logical Volumes and Filesystems

Configure Concurrent Volume Groups and Logical Volumes

Add an Application Server

Change/Show an Application Server

Remove an Application Server

[輸入欄位]

Server Name app1

New Server Name [app1]

Start Script [/ha51/startcm.sh]

Stop Script [/ha51/stopcm.sh]

一個結點上建立hacmvg lv, jfs . 然後再import 到另一個節點上。

這裡有一個tips , 如果在這裡建立共享jfs 遇到問題,可以先手工把vg

在一個結點上varyon , 然後再建立就可以了。

Initialization and Standard Configuration

Extended Configuration

System Management (C-SPOC)

Problem Determination Tools

Add Nodes to an HACMP Cluster

Configure Resources to Make Highly Available

Configure HACMP Resource Groups

Verify and Synchronize HACMP Configuration

Display HACMP Configuration

Add a Resource Group

Change/Show a Resource Group

Remove a Resource Group

Change/Show Resources for a Resource Group (standard)

Cascading

Rotating Concurrent Custom

[輸入欄位]

* Resource Group Name res1

New Resource Group Name []

Resource Group Management Policy cascading

* Participating Node Names (Default Node Priority) [AUDB1 AUDB2]

Change/Show Resources for a Resource Group (standard)

[輸入欄位]

Resource Group Name res1

Participating Node Names (Default Node Priority) AUDB1 AUDB2

* Service IP Labels/Addresses [AUDB1_svc] +

Volume Groups [hacmvg] +

Filesystems (empty is ALL for VGs specified)[/fscm8db /fscm8dblbos /fscm8dbubos /home/> +

Application Servers [app1] +

Initialization and Standard Configuration

Extended Configuration

System Management (C-SPOC)

Problem Determination Tools

Add Nodes to an HACMP Cluster

Configure Resources to Make Highly Available

Configure HACMP Resource Groups

Verify and Synchronize HACMP Configuration

現在就可以做Initialization and Standard Configuration 〉〉 Verify and Synchronize HACMP Configuration .

然後start 一下hacmp ,看看take over 是否都正常

3 到此為止我們的hacmp已經基本配置完成了。剩下的要在Extended Configuration中配置了。

Extended Configuration中我們還可以配置 tty 心跳 網路 hdisk 心跳網路,Persistent Node IP application monitor 等等

永久的IP標識(persistent IP label

一個永久的IP標識(persistent IP label)是一個IP別名,它可以被分配給一個群集網路中的指定的節點,並且會一直固定在分配的節點上。

Change/Show a Persistent Node IP Label/Address

在輸入欄位中輸入或選擇值。

當完成所有希望的更改之後,按 Enter 鍵。

AUDB1的永久ip配置

[輸入欄位]

* Node Name AUDB1

* Node IP Label/Address AUDB1_per

New Node IP Label/Address [] +

* Network Name [net_ether_01] +

AUDB2的永久ip配置

Change/Show a Persistent Node IP Label/Address

在輸入欄位中輸入或選擇值。

當完成所有希望的更改之後,按 Enter 鍵。

[輸入欄位]

* Node Name AUDB2

* Node IP Label/Address AUDB2_per

New Node IP Label/Address [] +

* Network Name [net_ether_01] +

注意:永久ip 同步完後, ip 立即繫結到boot1 上。

同步:Extended Configuration〉〉Extended Verification and Synchronization

啟動hacmp .

這樣,我們的hacmp已經配置完成,我們可以監控一下系統的配置情況

AUDB1/#ifconfig -a

en0: 標誌=5e080863,c0

inet 100.1.0.3 netmask 0xffffff00 broadcast 100.1.0.255

tcp_sendspace 131072 tcp_recvspace 65536

en3: 標誌=5e080863,c0

inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255

inet 10.60.1.21 netmask 0xffffff00 broadcast 10.60.1.255

inet 10.60.1.22 netmask 0xffffff00 broadcast 10.60.1.255

tcp_sendspace 131072 tcp_recvspace 65536

lo0: 標誌=e08084b

inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255

inet6 ::1/0

tcp_sendspace 65536 tcp_recvspace 65536

卷組使用情況

AUDB1/#lspv

hdisk0 0051e97e81c5ad33 rootvg active

hdisk1 none None

hdisk2 0051e97ed553b0de cmbak

hdisk3 0051e97ed553e40c hacmvg concurrent

檔案系統使用情況

/dev/fslv01 -- /home/db2fenc1 jfs2 2097152 rw

/dev/fslv02 -- /home/db2as jfs2 2097152 rw

/dev/fslv03 -- /home/db2inst1 jfs2 10223616 rw

/dev/fslv04 -- /fscm8db jfs2 18612224 rw

/dev/fslv05 -- /fscm8dbubos jfs2 41156608 rw

/dev/fslv06 -- /webapp jfs2 102498304 rw

/dev/fslv07 -- /icmrm jfs2 10485760 rw

/dev/fslv08 -- /fscm8dblbos jfs2 409731072 rw

AUDB2/#ifconfig -a

en0: 標誌=5e080863,c0

inet 100.1.0.4 netmask 0xffffff00 broadcast 100.1.0.255

inet 10.60.1.26 netmask 0xffffff00 broadcast 10.60.1.255

tcp_sendspace 131072 tcp_recvspace 65536

en3: 標誌=5e080863,c0

inet 192.168.0.4 netmask 0xffffff00 broadcast 192.168.0.255

tcp_sendspace 131072 tcp_recvspace 65536

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

相關文章