分类:
2008-04-07 22:56:31
HACMP 5.4磁盘心跳配置过程
Step1: 配置并行卷组
[dbsvr1]#smitty hacmp
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tools
Manage HACMP Services
HACMP Communication Interface Management
HACMP Resource Group and Application Management
HACMP Log Viewing and Management
HACMP File Collection Management
HACMP Security and Users Management
HACMP Logical Volume Management
HACMP Concurrent Logical Volume Management
HACMP Physical Volume Management
Configure GPFS
Concurrent Volume Groups
Concurrent Logical Volumes
Synchronize Concurrent LVM Mirrors
List All Concurrent Volume Groups
Create a Concurrent Volume Group
Create a Concurrent Volume Group with Data Path Devices
Set Characteristics of a Concurrent Volume Group
Import a Concurrent Volume Group
Mirror a Concurrent Volume Group
Node Names
Move cursor to desired item and press Esc+7.
ONE OR MORE items can be selected.
Press Enter AFTER making all selections.
>dbsvr1
>dbsvr2
Create a Concurrent Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
Node Names dbsvr1,dbsvr2
PVID 0003714b
VOLUME GROUP name [heartvg]
Physical partition SIZE in megabytes 4 +
Volume group MAJOR NUMBER [56] +#
Enhanced Concurrent Mode true +
Enable Cross-Site LVM Mirroring Verification false +
Warning:
Changing the volume group major number may result
in the command being unable to execute
successfully on a node that does not have the
major number currently available. Please check
[MORE...3]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
[dbsvr1]#lspv
hdisk0 0003714ba
hdisk1 0003714bd3cf
hdisk2 0003714b7d935335 datavg active
hdisk3 0003714b27d
hdisk4 none None
hdisk5 0003714b
[dbsvr2]#lspv
hdisk1
hdisk2 0003714b7d935335 datavg
hdisk3 none None
hdisk4 none None
hdisk0
hdisk5 0003714b
Step2: 编辑环境变量
[dbsvr1]#vi /etc/environment
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/us
r/java14/bin:/usr/sbin/rsct/bin
TZ=BEIST-8
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
[dbsvr2]#vi /etc/environment
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/us
r/java14/bin:/usr/sbin/rsct/bin
TZ=BEIST-8
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
Step3: 测试并行卷组通讯
[dbsvr1]#dhb_read -p hdisk5 -r
DHB CLASSIC MODE
First node byte offset: 61440
Second node byte offset: 62976
Handshaking byte offset: 65024
Test byte offset: 64512
Receive Mode:
Waiting for response . . .
Magic number = 0x87654321
Magic number = 0x87654321
Magic number = 0x87654321
Magic number = 0x87654321
Link operating normally
[dbsvr2]#dhb_read -p hdisk5 -t
DHB CLASSIC MODE
First node byte offset: 61440
Second node byte offset: 62976
Handshaking byte offset: 65024
Test byte offset: 64512
Transmit Mode:
Magic number = 0x87654321
Detected remote utility in receive mode. Waiting for response . . .
Magic number = 0x87654321
Magic number = 0x87654321
Link operating normally
Step4: 配置磁盘心跳网络
[dbsvr1]#smitty hacmp
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tools
Discover HACMP-related Information from Configured Nodes
Extended Topology Configuration
Extended Resource Configuration
Extended Cluster Service Settings
Extended Event Configuration
Extended Performance Tuning Parameters Configuration
Security and Users Configuration
Snapshot Configuration
Export Definition File for Online Planning Worksheets
Configure an HACMP Cluster
Configure HACMP Nodes
Configure HACMP Sites
Configure HACMP Networks
Configure HACMP Communication Interfaces/Devices
Configure HACMP Persistent Node IP Label/Addresses
Configure HACMP Global Networks
Configure HACMP Network Modules
Configure Topology Services and Group Services
Show HACMP Topology
Add a Network to the HACMP Cluster
Change/Show a Network in the HACMP Cluster
Remove a Network from the HACMP Cluster
Select a Network Type
Move cursor to desired item and press Enter.
[TOP]
# Discovery last performed: (Apr 03 15:13)
# Discovered IP-based Network Types
ether
# Discovered Serial Device Types
rs232
# Pre-defined IP-based Network Types
XD_data
XD_ip
atm
ether
fddi
hps
ib
token
# Pre-defined Serial Device Types
XD_rs232
diskhb
Add a Serial Network to the HACMP Cluster
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Network Name [net_diskhb_01]
* Network Type diskhb
Configure an HACMP Cluster
Configure HACMP Nodes
Configure HACMP Sites
Configure HACMP Networks
Configure HACMP Communication Interfaces/Devices
Configure HACMP Persistent Node IP Label/Addresses
Configure HACMP Global Networks
Configure HACMP Network Modules
Configure Topology Services and Group Services
Configure HACMP Networks
Select a category
Move cursor to desired item and press Enter.
Add Discovered Communication Interface and Devices
Add Pre-defined Communication Interface and Devices
Communication Interfaces
Communication devices
Select a Device Network
Move cursor to desired item and press Enter.
net_diskhb_01
* Device Name [heartdbsvr1]
* Network Type diskhb
* Network Name net_diskhb_01
* Device Path [/dev/hdisk5]
*Node name [dbsvr1]
* Device Name [heartdbsvr2]
* Network Type diskhb
* Network Name net_diskhb_01
* Device Path [/dev/hdisk5]
*Node name [dbsvr2]
Step5: 检查集群网络结构
Show Cluster Topology
Show Cluster Definition
Show Topology Information by Node
Show Topology Information by Network
Show Topology Information by Communication Interface
Cluster Name: gyjt
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
NODE dbsvr1:
heartdbsvr1 /dev/hdisk5
dbsvr1_svc 158.1.1.126
dbsvr1_boot 158.1.1.127
dbsvr1_stb 192.168.1.1
Network net_diskhb_01
heartdbsvr1 /dev/hdisk5
Network net_ether_01
dbsvr1_stb 192.168.1.1
Network net_rs232_01
dbsvr1_tty0 /dev/tty0
NODE dbsvr2:
heartdbsvr2 /dev/hdisk5
dbsvr2_svc 158.1.1.124
dbsvr2_boot 158.1.1.125
dbsvr2_stb 192.168.1.3
Network net_diskhb_01
heartdbsvr2 /dev/hdisk5
Network net_ether_01
dbsvr2_stb 192.168.1.3
Network net_rs232_01
dbsvr2_tty0 /dev/tty0
Step6: 同步集群配置
Extended Configuration
Move cursor to desired item and press Enter.
Discover HACMP-related Information from Configured Nodes
Extended Topology Configuration
Extended Resource Configuration
Extended Cluster Service Settings
Extended Event Configuration
Extended Performance Tuning Parameters Configuration
Security and Users Configuration
Snapshot Configuration
Export Definition File for Online Planning Worksheets
Extended Verification and Synchronization
HACMP Cluster Test Tool