扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
(6)配置资源组:
smit hacmp:
屏幕显示hacmp菜单:
HACMP
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
---------- end of screen ----------
选择Cluster Configuration,
Cluster Configuration
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
---------- end of screen ----------
选择Cluster Resources
Cluster Resources
Define Resource Groups
Define Application Servers
Configure Application Monitoring
Define Tape Resources
Define Highly Available Communication Links
Discover Current Volume Group Configuration
Configure Dynamic Node Priority Policies
Change/Show Resources/Attributes for a Resource Group
Cluster Events
Change/Show Run Time Parameters
Change/Show Cluster Lock Manager Resource Allocation
Show Cluster Resources
Synchronize Cluster Resources
---------- end of screen ----------
(7)配置应用服务器
选择Define Application Servers
Define Application Servers
Add an Application Server
Change / Show an Application Server
Remove an Application Server
---------- end of screen ----------
1.选择Add an Application Server,并进行配置
Add an Application Server
[Entry Fields]
Server Name adata_app
Start script [/usr/sbin/cluster/appserver/startapp1]
Stop script [/usr/sbin/cluster/appserver/stopapp1]
---------- end of screen ----------
Add an Application Server
[Entry Fields]
Server Name bdata_app
Start script [/usr/sbin/cluster/appserver/startapp2]
Stop script [/usr/sbin/cluster/appserver/stopapp2]
---------- end of screen ----------
2.增加资源组
选择Define Resource Groups
Define Resource Groups
Add a Resource Group
Change / Show a Resource Group
Remove a Resource Group
---------- end of screen ----------
选择Add a Resource Group,并配置两个资源组
Add a Resource Group
[Entry Fields]
Resource Group Name resource1
Node Relationship cascading +
Participating Node Names / Default Node Priority [m851 m852] +
---------- end of screen ----------
Add a Resource Group
[Entry Fields]
Resource Group Name resource2
Node Relationship cascading +
Participating Node Names / Default Node Priority [m852 m851] +
---------- end of screen ----------
3.配置资源组
选择Change/Show Resources/Attributes for a Resource Group,配置resource1和resource2
配置resource1
Change/Show Resources/Attributes for a Resource Group
[TOP] [Entry Fields]
Resource Group Name resource1
Node Relationship cascading
Participating Node Names / Default Node Priority m851 m852
Dynamic Node Priority [] +
Service IP label [m851_svc] +
Filesystems (default is All) [] +
Filesystems Consistency Check fsck +
Filesystems Recovery Method sequential +
Filesystems/Directories to Export [] +
Filesystems/Directories to NFS mount [] +
Network For NFS Mount [] +
Volume Groups [adatavg] +
Concurrent Volume groups [] +
Raw Disk PVIDs [] +
Connections Services [] +
Fast Connect Services [] +
Tape Resources [] +
Application Servers [adata_app] +
Highly Available Communication Links [] +
Miscellaneous Data []
Automatically Import Volume Groups false +
Inactive Takeover Activated false +
Cascading Without Fallback Enabled false +
9333 Disk Fencing Activated false +
SSA Disk Fencing Activated false +
Filesystems mounted before IP configured false +
---------- end of screen ----------
配置resource2
Change/Show Resources/Attributes for a Resource Group
[TOP] [Entry Fields]
Resource Group Name resource2
Node Relationship cascading
Participating Node Names / Default Node Priority m852 m851
Dynamic Node Priority [] +
Service IP label [m852_svc] +
Filesystems (default is All) [] +
Filesystems Consistency Check fsck +
Filesystems Recovery Method sequential +
Filesystems/Directories to Export [] +
Filesystems/Directories to NFS mount [] +
Network For NFS Mount [] +
Volume Groups [bdatavg] +
Concurrent Volume groups [] +
Raw Disk PVIDs [] +
Connections Services [] +
Fast Connect Services [] +
Tape Resources [] +
Application Servers [bdata_app] +
Highly Available Communication Links [] +
Miscellaneous Data []
Automatically Import Volume Groups false +
Inactive Takeover Activated false +
Cascading Without Fallback Enabled false +
9333 Disk Fencing Activated false +
SSA Disk Fencing Activated false +
Filesystems mounted before IP configured false +
---------- end of screen ----------
(8)拓扑同步和资源同步
在主机一配置完成以后,用菜单中的同步命令进行将第一资源放到第二台机器上的工作。
1.拓扑同步
具体配置方法如下:
smit hacmp:
屏幕显示hacmp菜单:
HACMP
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
---------- end of screen ----------
选择Cluster Configuration,
Cluster Configuration
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
---------- end of screen ----------
选择Cluster Topology
Cluster Topology
Configure Cluster
Configure Nodes
Configure Networks
Configure Adapters
Configure Sites
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
---------- end of screen ----------
选择Synchronize Cluster Topology,回车确认等待同步完成。
2.资源同步
具体配置方法如下:
smit hacmp:
屏幕显示hacmp菜单:
HACMP
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
---------- end of screen ----------
选择Cluster Configuration,
Cluster Configuration
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
---------- end of screen ----------
选择Cluster Topology
Cluster Topology
Configure Cluster
Configure Nodes
Configure Networks
Configure Adapters
Configure Sites
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
---------- end of screen ----------
选择Cluster Resources
Cluster Resources
Define Resource Groups
Define Application Servers
Configure Application Monitoring
Define Tape Resources
Define Highly Available Communication Links
Discover Current Volume Group Configuration
Configure Dynamic Node Priority Policies
Change/Show Resources/Attributes for a Resource Group
Cluster Events
Change/Show Run Time Parameters
Change/Show Cluster Lock Manager Resource Allocation
Show Cluster Resources
Synchronize Cluster Resources
---------- end of screen ----------
选择Synchronize Cluster Resources,回车确认等待同步完成。
3.校验
具体配置方法如下:
smit hacmp:
屏幕显示hacmp菜单:
HACMP
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
---------- end of screen ----------
选择Cluster Configuration,
Cluster Configuration
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
---------- end of screen ----------
选择Cluster Verification
Cluster Verification
Verify Cluster
Define Custom Verification Method
---------- end of screen ----------
选择Verify Cluster
Verify Cluster
[Entry Fields]
Base HACMP Verification Methods both +
(Cluster topology, resources, both, none)
Custom Defined Verification Methods [] +
Error Count [] #
Log File to store output []
---------- end of screen ----------
回车确认即可。
婵犵數濮烽弫鍛婃叏閻戝鈧倹绂掔€n亞鍔﹀銈嗗坊閸嬫捇鏌涢悢閿嬪仴闁糕斁鍋撳銈嗗坊閸嬫挾绱撳鍜冭含妤犵偛鍟灒閻犲洩灏欑粣鐐烘⒑瑜版帒浜伴柛鎾寸洴閹儳煤椤忓應鎷洪梻鍌氱墛閸楁洟宕奸妷銉ф煣濠电姴锕ょ€氼參宕h箛鏃傜瘈濠电姴鍊绘晶娑㈡煕鐎c劌濡介柕鍥у瀵粙濡歌閳ь剚甯¢弻鐔兼寠婢跺﹥娈婚梺鍝勭灱閸犳牠骞冨⿰鍫濈厸闁稿本绋撹ぐ瀣煟鎼淬値娼愭繛鍙壝悾婵堢矙鐠恒劍娈鹃梺鍓插亝濞叉牠鎮″☉銏$厱閻忕偛澧介惌瀣箾閸喐鍊愭慨濠勭帛閹峰懐绮电€n亝鐣伴梻浣规偠閸斿宕¢崘鑼殾闁靛繈鍊曢崘鈧銈嗗姂閸庡崬鐨梻鍌欑劍鐎笛呯矙閹寸姭鍋撳鐓庡籍鐎规洑鍗冲畷鍗炍熼梹鎰泿闂備線娼ч悧鍡涘箠鎼淬垺鍙忔い鎺嗗亾闁宠鍨块崺銉╁幢濡炲墽鍑规繝鐢靛О閸ㄦ椽鏁嬮柧鑽ゅ仦娣囧﹪濡堕崨顔兼闂佺ǹ顑呴崐鍦崲濞戙垹骞㈡俊顖濐嚙绾板秹鏌f惔銏e妞わ妇鏁诲璇差吋閸偅顎囬梻浣告啞閹搁箖宕版惔顭戞晪闁挎繂顦介弫鍡椼€掑顒婂姛闁活厽顨嗙换娑㈠箻閺夋垹鍔伴梺绋款儐閹瑰洭寮婚敐鍛婵炲棙鍔曠壕鎶芥⒑閸濆嫭婀扮紒瀣灴閸╃偤骞嬮敃鈧婵囥亜閺囩偞鍣洪柍璇诧功缁辨捇宕掑▎鎴濆濡炪們鍔岄幊姗€骞嗗畝鍕<闁绘劙娼х粊锕傛煙閸忚偐鏆橀柛鏂跨焸閹偤宕归鐘辩盎闂佸湱鍎ら崹鐢割敂閳哄懏鍊垫慨姗嗗墻濡插綊鏌曢崶褍顏€殿喕绮欐俊姝岊槼闁革絻鍎崇槐鎾存媴缁涘娈┑鈽嗗亝缁诲牆顕f繝姘亜缁炬媽椴搁弲锝夋偡濠婂啰效闁诡喗锕㈤幊鐘活敆閸屾粣绱查梺鍝勵槸閻楀嫰宕濇惔锝囦笉闁绘劗鍎ら悡娑㈡倶閻愯泛袚闁哥姵锕㈤弻鈩冩媴閻熸澘顫掗悗瑙勬礈閸犳牠銆佸鈧幃鈺呮惞椤愩倝鎷婚梻鍌氬€峰ù鍥х暦閸偅鍙忛柟鎯板Г閳锋梻鈧箍鍎遍ˇ顖炲垂閸岀偞鐓㈡俊顖滃皑缁辨岸鏌ㄥ┑鍡╂Ц缂佲偓鐎n偁浜滈柡宥冨妿閳藉绻涢崼鐔虹煉婵﹨娅e☉鐢稿川椤斾勘鈧劕顪冮妶搴′簼婵炶尙鍠栧畷娲焵椤掍降浜滈柟鍝勬娴滈箖姊洪幐搴㈢┛濠碘€虫搐鍗遍柟鐗堟緲缁秹鏌涢锝囩畼妞ゆ挻妞藉铏圭磼濡搫顫岄悗娈垮櫘閸撴瑨鐏冮梺鍛婁緱閸犳岸宕㈤幖浣光拺闁告挻褰冩禍浠嬫煕鐎n亜顏柟顔斤耿閺佸啴宕掑☉姘箞闂佽鍑界紞鍡涘磻閸℃ɑ娅犳い鎺戝€荤壕濂告煕鐏炲墽鈽夌紒妞﹀洦鐓欓柣鐔告緲椤忣參鏌熼悡搴㈣础闁瑰弶鎸冲畷鐔兼濞戞瑦鐝¢梻鍌氬€搁崐椋庣矆娓氣偓楠炴牠顢曢妶鍌氫壕婵ê宕崢瀵糕偓瑙勬礀缂嶅﹪寮婚崱妤婂悑闁告侗鍨界槐閬嶆煟鎼达紕鐣柛搴ㄤ憾钘濆ù鍏兼綑绾捐法鈧箍鍎遍ˇ浼存偂閺囥垺鐓涢柛銉e劚婵$厧顭胯閸ㄤ即婀侀梺缁樓圭粔顕€顢旈崼鐔虹暢闂傚倷鐒︾€笛呮崲閸屾娑樜旈崨顓犲幒闂佸搫娲㈤崹娲偂閸愵亝鍠愭繝濠傜墕缁€鍫熸叏濡寧纭鹃柦鍐枛閺屾洘绻涜鐎氱兘宕戦妸鈺傗拺缂備焦锚婵洦銇勯弴銊ュ籍闁糕斂鍨藉鎾閳ユ枼鍋撻悽鍛婄叆婵犻潧妫楅埀顒傛嚀閳诲秹宕堕妸锝勭盎闂婎偄娲︾粙鎰板箟妤e啯鐓涢悘鐐靛亾缁€瀣偓瑙勬礋娴滃爼銆佸鈧幃銏$附婢跺澶�