2008-6-10 12:29
giant#kenh
Add /usr/sbin/rsct/bin/ to /etc/environment 里的path 中
HACMP 5.4磁盘心跳配置过程
Step1: 配置并行卷组
[color=Red][dbsvr1]#smitty hacmp[/color]
Initialization and Standard Configuration
Extended Configuration
[color=Red]System Management (C-SPOC)[/color]
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
[color=Red]HACMP Concurrent Logical Volume Management[/color]
HACMP Physical Volume Management
Configure GPFS
[color=Red]Concurrent Volume Groups[/color]
Concurrent Logical Volumes
Synchronize Concurrent LVM Mirrors
List All Concurrent Volume Groups
[color=Red]Create a Concurrent Volume Group[/color]
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.
[color=Red] >dbsvr1
>dbsvr2[/color]
Create a Concurrent Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
[color=Red]Node Names dbsvr1,dbsvr2[/color]
PVID 0003714b1331a3ed
[color=Red]VOLUME GROUP name [heartvg][/color]
Physical partition SIZE in megabytes 4 +
Volume group MAJOR NUMBER [56] +#
[color=Red]Enhanced Concurrent Mode true [/color] +
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]#[color=Red]lspv[/color]
hdisk0 0003714ba5048a99 rootvg active
hdisk1 0003714bd3cf768a rootvg active
hdisk2 0003714b7d935335 datavg active
hdisk3 0003714b27d6164f datavg_1 active
hdisk4 none None
[color=Red]hdisk5 0003714b1331a3ed heartvg[/color]
[[color=Red]dbsvr2]#lspv[/color]
hdisk1 000531c9c977a892 rootvg active
hdisk2 0003714b7d935335 datavg
hdisk3 none None
hdisk4 none None
hdisk0 000531c9a501da2a rootvg active
[color=Red]hdisk5 0003714b1331a3ed heartvg[/color]
Step2: 编辑环境变量
[color=Red][dbsvr1]#vi /etc/environment[/color]
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/us
r/java14/bin[color=Red]:/usr/sbin/rsct/bin[/color]
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[color=Red]]#vi /etc/environment[/color]
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/us
r/java14/bin[color=Red]:/usr/sbin/rsct/bin[/color]
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: 测试并行卷组通讯
[[color=Red]dbsvr1]#dhb_read -p hdisk5 -r[/color]
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
[[color=Red]dbsvr2]#dhb_read -p hdisk5 -t[/color]
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
[color=Red]Extended Configuration[/color]
System Management (C-SPOC)
Problem Determination Tools
Discover HACMP-related Information from Configured Nodes
[color=Red] Extended Topology Configuration[/color]
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
[color=Red]Configure HACMP Networks[/color]
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
[color=Red]Add a Network to the HACMP Cluster[/color]
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
[color=Red] diskhb [/color]
Add a Serial Network to the HACMP Cluster
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[color=Red] [Entry Fields]
* Network Name [net_diskhb_01]
* Network Type diskhb[/color]
Configure an HACMP Cluster
Configure HACMP Nodes
Configure HACMP Sites
Configure HACMP Networks
[color=Red]Configure HACMP Communication Interfaces/Devices[/color]
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.
[color=Red] Add Discovered Communication Interface and Devices [/color]
Add Pre-defined Communication Interface and Devices
Communication Interfaces
[color=Red]Communication devices[/color]
Select a Device Network
Move cursor to desired item and press Enter.
[color=Red]net_diskhb_01 [/color]
[color=Red]* Device Name [heartdbsvr1][/color]
* Network Type diskhb
* Network Name net_diskhb_01
*[color=Red] Device Path [/dev/hdisk5][/color]
*[color=Red]Node name [dbsvr1][/color]
* [color=Red]Device Name [heartdbsvr2][/color]
* Network Type diskhb
* Network Name net_diskhb_01
* [color=Red]Device Path [/dev/hdisk5][/color]
*[color=Red]Node name [dbsvr2][/color]
Step5: 检查集群网络结构
[color=Red] Show Cluster Topology[/color]
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
[color=Red] Network net_diskhb_01
heartdbsvr1 /dev/hdisk5 [/color]
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
[color=Red]Network net_diskhb_01
heartdbsvr2 /dev/hdisk5 [/color]
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
[color=Red]Extended Verification and Synchronization [/color]
HACMP Cluster Test Tool
我把磁盘心跳的过程贴出来,我想问个问题上面为什么要[color=Red]Add /usr/sbin/rsct/bin/ to /etc/environment [/color]里的path 中其什么作用!谢谢!
[[i] 本帖最后由 giant#kenh 于 2008-6-10 12:42 编辑 [/i]]
2008-6-10 12:47
beginner-bj
先看看 /usr/sbin/rsct/bin/下面有什么文件
2008-6-10 12:54
beginner-bj
dhb_read 应该在这个目录下吧?
2008-6-10 12:58
giant#kenh
dhb_read 这个命名只有打上rsct的补丁就会有的啊! 我想应该是版本问题! 这个文档应该是很早的时候的,现在的话应该不用加这个path了啊吧!
2008-6-10 13:03
beginner-bj
为了
[dbsvr1]#dhb_read -p hdisk5 -r
不必写成
[dbsvr1]#/usr/sbin/rsct/bin/dhb_read -p hdisk5 -r
解决方法之一是“要Add /usr/sbin/rsct/bin/ to /etc/environment 里的path 中”
2008-6-10 13:17
yddll
哈哈,想多了吧
2008-6-10 13:31
胖胖猪
学习学习........
2008-6-10 13:33
胖胖猪
我的并没加进去啊
2008-6-10 14:26
giant#kenh
[quote]原帖由 [i]beginner-bj[/i] 于 2008-6-10 13:03 发表 [url=http://www.loveunix.com/redirect.php?goto=findpost&pid=796405&ptid=85837][img]http://www.loveunix.com/images/common/back.gif[/img][/url]
为了
[dbsvr1]#dhb_read -p hdisk5 -r
不必写成
[dbsvr1]#/usr/sbin/rsct/bin/dhb_read -p hdisk5 -r
解决方法之一是“要Add /usr/sbin/rsct/bin/ to /etc/environment 里的path 中” [/quote]
:lu11: :lu11:
2008-6-12 01:53
老农
只是为了做测试的时候写命令可以不带路径而已
2008-6-12 21:29
giant#kenh
哦 知道了啊! 谢谢 老农!
2008-6-26 14:17
好宁宁
就是为了少敲几个字母
页:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.