转自:
Step1:配置并行卷组
[dbsvr1]#smitty hacmp
[@more@]
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 Namesdbsvr1,dbsvr2
PVID0003714b1331a3ed
VOLUME GROUP name[heartvg]
Physical partition SIZE in megabytes4+
Volume group MAJOR NUMBER[56]+#
Enhanced Concurrent Modetrue+
Enable Cross-Site LVM Mirroring Verificationfalse+
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=HelpF2=RefreshF3=CancelF4=List
Esc+5=ResetEsc+6=CommandEsc+7=EditEsc+8=Image
[dbsvr1]#lspv
hdisk00003714ba5048a99rootvgactive
hdisk10003714bd3cf768arootvgactive
hdisk20003714b7d935335datavgactive
hdisk30003714b27d6164fdatavg_1active
hdisk4noneNone
hdisk50003714b1331a3edheartvg
[dbsvr2]#lspv
hdisk1000531c9c977a892rootvgactive
hdisk20003714b7d935335datavg
hdisk3noneNone
hdisk4noneNone
hdisk0000531c9a501da2arootvgactive
hdisk50003714b1331a3edheartvg
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