为 HACMP/XD-PPRC 自动生成配置数据
2008-11-12 10:54:57 来源:WEB开发网非交互模式
若要以非交互模式启动,请输入以下命令:
#pprc4hacmp -i [variablefile]
variablefile 是包含所需输入信息并具有特定格式的文件,如下面的清单所示:
清单 3. variablefile 文件模板
PRISITE:sitename:nodename@site1
SECSITE:sitename:nodename@site2
PRIDSINFO:primary HMCip:username:password:storage Type
SECDSINFO:primary HMCip:username:password:storage Type
VGNAME:volumegroupname which is on pvs
PRIPVS:pvids from primary site
SECPVS:pvids from secondary site
清单 4. variablefile 示例
PRISITEINFO:SiteA:rac2n1
SECSITEINFO:SiteB:rac2n4
PRIPVs: 00c46a1d4e588ed3
SECPVs: 00c46a1d4e588ed3
PRIDS:9.3.18.141:unamexx:passwordxx:2107
SECDS:9.3.18.210:unamexx:passwordxx:2105
VGNAME:RG1_CG1
格式 1. 非交互模式、冒号分隔格式
# pprc4hacmp.sh -i varfile -c
validating input........
Searching for DSCLI on node rac2n1 .......
DSCLI found on node rac2n1
Searching for DSCLI on node rac2n4 .......
DSCLI found on node rac2n4
HMC 9.3.18.141 ping test ....... Success
Storage Image id managed by HMC- 9.3.18.141 ........... : IBM.2107-7516231
HMC 9.3.18.210 ping test ....... Success
Storage Image id managed by HMC- 9.3.18.210 ........... : IBM.2105-22012
Verifying PVs existence at SiteA......
Verifying PVs existence at SiteB.....
Verifying PV Vs LSSs on each Site ........
Finding LSS and VOlume PAIRs ......
Finding Pri-sec and sec-pri PortIDs for the Lsss 06 10.......
--------------- Copyservices Server Configuration data -------------------
CSSINFO:css_SiteA:DSCLI:SiteA:9.3.18.141:unamexx:passwordxx
CSSINFO:css_SiteB:DSCLI:SiteB:9.3.18.210:unamexx:passw0rdxx
----------------------------------****------------------------------------
------------------ DS ESS Subsystem Configuration data -------------------
DSESSINFO:dsess_SiteA:SiteA:9.3.18.141:unamexx:passwordxx::IBM.2107-7516231 :css_SiteA
DSESSINFO:dsess_SiteB:SiteB:9.3.18.210:unamexx:passwordxx::IBM.2105-22012 :css_SiteB
----------------------------------****------------------------------------
-------------DSCLI-Managed PPRC Replicated Resource Configuration---------
PPRC_REP_RES:PPRC_RG1_CG1:SiteA SiteB: 0620->103F:dsess_SiteA dsess_SiteB:06 10:
mmir:I0000->I00A4 I0002->I00A4:I0020->I0330 I0020->I0333:FCP:OFF:MANUAL:RG1_CG1
----------------------------------****------------------------------------
更多精彩
赞助商链接