hp rx26602+hp eva4400.docx
《hp rx26602+hp eva4400.docx》由会员分享,可在线阅读,更多相关《hp rx26602+hp eva4400.docx(19页珍藏版)》请在冰豆网上搜索。
![hp rx26602+hp eva4400.docx](https://file1.bdocx.com/fileroot1/2022-12/7/29e18c36-98c1-49e4-912f-1457ed97baf9/29e18c36-98c1-49e4-912f-1457ed97baf91.gif)
hprx26602+hpeva4400
硬件环境:
hprx2660*2+hpeva4400
软件环境:
hpux11.23,oracle10gforhpux,oracleclusterware,mc/serviguard11.18
1.安装HPUX
2.打补丁,参照文档即可,或打到magepatchdec.12.07以后也可以
3.安装mc/sg+SGeRAC(hpMC/Serviceguard为配合oraclerac所使用的模块)
4.规划存储
lockvg:
1G
rac:
100G
5.修改内核参数
kctune-hnproc="4096"
kctune-hksi_alloc_max="(nproc*8)"
kctune-hmax_thread_proc="1024"
kctune-hmaxdsiz="1073741824"
kctune-hmaxdsiz_64bit="2147483648"
kctune-hmaxssiz="134217728"
kctune-hmaxssiz_64bit="1073741824"
略过500字
6.创建ORACLE用户和组
groupadd-g201dba
groupadd-g200oinstall
useradd-u200-goinstall-Gdba,oinstalloracle
7.调整hosts文件
#vi/etc/hosts
127.0.0.1localhost
192.168.10.7his1
192.168.10.8his2
192.168.10.3his1-vip
192.168.10.4his2-vip
10.0.0.1his1_priv
10.0.0.2his2_priv
8.配置mc/sg
#cmquerycl-v-C/etc/cmcluster/cluster.ascii-nhis1-nhis2
#vicmcluster.ascii
CLUSTER_NAME rac-test
FIRST_CLUSTER_LOCK_VG /dev/vglock
NODE_NAME his1
NETWORK_INTERFACE lan0
HEARTBEAT_IP 192.168.10.7
NETWORK_INTERFACE lan1
HEARTBEAT_IP 10.0.0.1
FIRST_CLUSTER_LOCK_PV/dev/dsk/c2t0d1
NODE_NAME his2
NETWORK_INTERFACE lan0
HEARTBEAT_IP 192.168.10.8
NETWORK_INTERFACE lan1
HEARTBEAT_IP 10.0.0.2
FIRST_CLUSTER_LOCK_PV/dev/dsk/c2t0d1
HEARTBEAT_INTERVAL 1000000
NODE_TIMEOUT 6000000
AUTO_START_TIMEOUT 600000000
NETWORK_POLLING_INTERVAL 2000000
NETWORK_FAILURE_DETECTION INOUT
MAX_CONFIGURED_PACKAGES 150
VOLUME_GROUP /dev/vgrac
OPS_VOLUME_GROUP /dev/vgrac
#cmcheckconf-v-C/etc/cmcluster/cluster.ascii
#vgchange–ay/dev/vglock
#vgchange–ay/dev/vgrac
#cmapplyconf-v-C/etc/cmcluster/cluster.ascii
9.创建DB及CRS安装目录
#mkdir/oracle
#mkidr/oracle/db
#mkdir/oracle/crs
修改目录属主及权限
#chown-Roracle:
dba/oracle
#chmod-R755/oracle
10.取消卷组的自动激活
#vi/etc/lvmrc
AUTO_VG_ACTIVATE=0
11.安装crs
另附:
root.sh执行步骤
#/oracle/crs/root.sh
WARNING:
directory'/oracle'isnotownedbyroot
CheckingtoseeifOracleCRSstackisalreadyconfigured
Checkingtoseeifany9iGSDisup
/var/opt/oracledoesnotexist.Creatingitnow.
SettingthepermissionsonOCRbackupdirectory
SettingupNSdirectories
OracleClusterRegistryconfigurationupgradedsuccessfully
WARNING:
directory'/oracle'isnotownedbyroot
clscfg:
EXISTINGconfigurationversion3detected.
clscfg:
version3is10GRelease2.
SuccessfullyaccumulatednecessaryOCRkeys.
Usingports:
CSS=49895CRS=49896EVMC=49898andEVMR=49897.
node:
node1:
his1his1_privhis1
node2:
his2his2_privhis2
clscfg:
Argumentscheckoutsuccessfully.
NOKEYSWEREWRITTEN.Supply-forceparametertooverride.
-forceisdestructiveandwilldestroyanypreviouscluster
configuration.
OracleClusterRegistryforclusterhasalreadybeeninitialized
Startupwillbequeuedtoinitwithin30seconds.
Addingdaemonstoinittab
ExpectingtheCRSdaemonstobeupwithin600seconds.
CSSisactiveonthesenodes.
his1
his2
CSSisactiveonallnodes.
WaitingfortheOracleCRSDandEVMDtostart
OracleCRSstackinstalledandrunningunderinit(1M)
Runningvipca(silent)forconfiguringnodeapps
Thegiveninterface(s),"lan0"isnotpublic.PublicinterfacesshouldbeusedtoconfigurevirtualIPs.
#
12.配置集群VIP
13.安装数据库软件
再开个窗口进入ROOT用户模式,执行如下命令
#cd/oracle/db
#./root.sh
RunningOracle10root.shscript...
Thefollowingenvironmentvariablesaresetas:
ORACLE_OWNER=oracle
ORACLE_HOME= /oracle/db
Enterthefullpathnameofthelocalbindirectory:
[/usr/local/bin]:
Copyingdbhometo/usr/local/bin...
Copyingoraenvto/usr/local/bin...
Copyingcoraenvto/usr/local/bin...
Creating/etc/oratabfile...
Entrieswillbeaddedtothe/etc/oratabfileasneededby
DatabaseConfigurationAssistantwhenadatabaseiscreated
Finishedrunninggenericpartofroot.shscript.
Nowproduct-specificrootactionswillbeperformed.