li
  当前位置:主页 > 集群技术 > 文章内容
li
Oracle10g R2 Installing RAC(2)
来源: www.ixdba.net  作者: IXDBA.NET官方    时间:2008-02-21   阅读:192  
本文章共47048字,分12页,当前第2页,快速翻页:
 

$ /sbin/pvscan
  PV /dev/sdb1   VG u01vg    lvm2 [3.99 GB / 88.00 MB free]
  PV /dev/sda5   VG tmpvg    lvm2 [704.00 MB / 0    free]
  PV /dev/sda3   VG swapvg   lvm2 [1.00 GB / 0    free]
  PV /dev/sdc1   VG swapvg   lvm2 [500.00 MB / 0    free]
  PV /dev/sdc2   VG swapvg   lvm2 [500.00 MB / 88.00 MB free]
  PV /dev/sda2   VG rootvg   lvm2 [4.00 GB / 4.00 MB free]
  Total: 6 [10.66 GB] / in use: 6 [10.66 GB] / in no VG: 0 [0   ]
$ /sbin/lvscan
  ACTIVE            '/dev/u01vg/u01' [3.90 GB] inherit
  ACTIVE            '/dev/tmpvg/temp' [704.00 MB] inherit
  ACTIVE            '/dev/swapvg/swap' [1.89 GB] inherit
  ACTIVE            '/dev/rootvg/root' [4.00 GB] inherit
"/boot" partition doesn't have to be use LVM because 100MB is enough for it.
But do not use LVM for any shared disks like CSS, OCR or ASM disks.
On x86 and Itanium systems, although Red Hat Enterprise Linux 3 and SUSE Linux Enterprise Server provide a Logical Volume Manager (LVM), this LVM is not cluster-aware. For this reason, Oracle does not support the use of logical volumes with RAC on x86 and Itanium systems for either Oracle Clusterware or database files.
http://download-west.oracle.com/docs/cd/B19306_01/install.102/b14203/storage.htm#sthref729
Software Settings:
When the Software Selection and System Tasks screen appear, select the C/C++ Compiler and Tools (must have) and Oracle Server Base (not mandatory). 
Use the "Search" function, the following software/package are also needed to be installed:
Openmotif
mc (optional)
readline-devel (required if you want to use rlwrap)
sysstat
setarch

In this example, "orarun" package is not installed.

--------------------------------------------------------------------------------------------
Add configurations to the first SuSE linux node (sles101)
before cloning the Second node
--------------------------------------------------------------------------------------------
1. Edit /etc/hosts, and comment out or remove the line that maps the IP address 127.0.0.2 to the systems fully qualified hostname.
127.0.0.1       localhost
172.16.2.145    sles101.test.com sles101
172.16.2.146    sles102.test.com sles102
192.168.235.145 sles101-priv.test.com sles101-priv
192.168.235.146 sles102-priv.test.com sles102-priv
172.16.2.147    sles101-vip.test.com sles101-vip
172.16.2.148    sles102-vip.test.com sles102-vip

2. Edit /etc/SuSE-Release, change version number from 10 to 9.
$ cat /etc/SuSE-release
SUSE Linux Enterprise Server 9 (i586)
VERSION = 9
[It can be reverted back after Oracle 10g RAC has been installed.]

3. Edit /etc/sysctl.conf
$ cat /etc/sysctl.conf
# Disable response to broadcasts.
# You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
IXDBA.NET技术社区
# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
# enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
#controls whether core dumps will append the PID to the core filename.
#Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Oracle recommended kernel parameters
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 256 32000 100 128
kernel.msgmnb = 65535
kernel.msgmni = 2878
fs.file-max = 131072
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_max = 262144
net.core.wmem_max = 262144
net.core.rmem_default = 262144
net.core.wmem_default = 262144
4. Edit /etc/pam.d/login, and add the following line (will be added automatically if "orarun" rmp package is installed) 
session     required       pam_limits.so
 
5. Add "oracle" user and "dba" group 
#mkdir -p /u01/app
#groupadd -g 115 dba
#useradd -u 175 -g 115 -d /home/oracle -s /bin/bash -c "Oracle Software Owner" -p oracle oracle
#chown -R oracle:dba /u01 
 
6. Create partitions on shared disks and configuring the raw devices
Use "fdisk" to create primary partitions on all shared disks (2x 500MB partitions "sdd1" and "sde1" for OCR and CSS, 4x 2GB for ASM disks - "sdf1-sdi1")
$ cat /etc/raw
# /etc/raw
# The format of this file is:
# raw<N>:<blockdev>
# this means: bind /dev/raw/raw1 to /dev/hdb1
raw1:sdd1    #this will be the css space
raw2:sde1    #this will be used as ocr space 
raw3:sdf1    #for ASM disk member
raw4:sdg1
raw5:sdh1
raw6:sdi1
Run the following command to make sure all raw devices started.
$/usr/sbin/raw -qa
/dev/raw/raw1:  bound to major 8, minor 49
/dev/raw/raw2:  bound to major 8, minor 65
/dev/raw/raw3:  bound to major 8, minor 81
/dev/raw/raw4:  bound to major 8, minor 97
/dev/raw/raw5:  bound to major 8, minor 113
/dev/raw/raw6:  bound to major 8, minor 129
In case of any raw partition could not be bound, please check if there is the correct devices being created under "/dev/" directory, run "partprobe" to refresh. This could be happened when you created a primary partition on a shared disk of node1, but the new device is not displayed on the other node.
 
7. Create raw devices for OCR and CSS shared disks, and mounting points for ASM disks.
#mkdir -p /u02/oradata/asm
#mknod /u02/oradata/css c 162 1
#mknod /u02/oradata/ocr c 162 2
#mknod /u02/oradata/asm/lun1 c 162 3
#mknod /u02/oradata/asm/lun2 c 162 4
#mknod /u02/oradata/asm/lun3 c 162 5
#mknod /u02/oradata/asm/lun4 c 162 6
#chmod 660 /u02/oradata/css
#chmod 660 /u02/oradata/ocr
#chmod 660 /u02/oradata/asm/*
#chown oracle.dba /u02/oradata/css
#chown oracle.dba /u02/oradata/ocr
#chown oracle.dba /u02/oradata/asm/*
 
lun1-4 will be used as ASM disks for oracle data, after CRS and Database software is installed, run DBCA to configure ASM storage and add lun1-4 as members for the ASM disk groups. (If EMC storage will be used to provide the share disks, we can also create same character devices to link them.) 
 
8. Login as "oracle" user and modify the enviroment file /home/oracle/.profile, see following example with some of useful aliases.
$ cat .profile 
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
ORACLE_SID=sles
ORA_CRS_HOME=$ORACLE_BASE/product/10.2/crs_1
export ORACLE_DB=sles
export ORACLE_BASE ORACLE_HOME ORACLE_SID ORA_CRS_HOME
export NLS_DATE_FORMAT='MM/DD/YYYY HH24:MI:SS'
export PS1='[`whoami`@${HOSTNAME} ${PWD}]\n$ '
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$ORACLE_HOME/lib:/lib:$ORACLE_HOME/ctx/lib
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export AGENT_HOME PATH LD_LIBRARY_PATH CLASSPATH TNS_ADMIN
alias ASM='export ORACLE_SID=+ASM1'
alias dbn='export ORACLE_SID=sles1'
alias envora='env | grep ORA'
alias ssh2='ssh sles102'
alias crs='cd $ORA_CRS_HOME/bin'
alias cddb='cd $ORACLE_HOME/bin'
alias sysdba='sqlplus / as sysdba'
alias envora='env | grep ORA'
alias sqlplus='rlwrap sqlplus'

9. And don't forget to install vmware-tools (run from non-X Windows logon session)
# ./vmware-install.pl
-------------------------------------------------------



阅读更多内容<<上一页 · 1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12 · 下一页>>


  上一篇: Linux RAC OCFS文件系统与INODES   下一篇: 如何选择合适的双机和集群软件
li
 §相关评论  
 热点文章

·Linux RAC OCFS文件系统与INOD
·Oracle10g R2 Installing RAC
·Linux服务器集群系统(lvs)
·Linux对存储文件系统的技术架构
·linux常用集群文件系统简介
·如何选择合适的双机和集群软件
·LifeKeeper软件介绍
·纯软件方式的双机热备方案深入
·双机热备:基于共享存储与纯软
·双机热备与数据备份,数据安全的
·双机热备常见问题释疑
li
 编辑推荐
·Linux RAC OCFS文件系统与INOD
·Oracle10g R2 Installing RAC
·Linux服务器集群系统(lvs)
·Linux对存储文件系统的技术架构
·linux常用集群文件系统简介
·如何选择合适的双机和集群软件
·LifeKeeper软件介绍
·纯软件方式的双机热备方案深入
·双机热备:基于共享存储与纯软
·双机热备与数据备份,数据安全的
·双机热备常见问题释疑
li
 相关篇章
·Linux RAC OCFS文件系统与INODES
·HACMP 安装配置,管理与诊断分析
·完整NFS手册:NFS操作完全指南
·网络文件系统:NFS基本操作总结
·负载均衡 - 相关概念解释
·集群实例:配置ISCSI客户端(LINU...
·集群部署:Rose HA For Radhat安...
·热贴讨论:RHCS中的fence设备讨论
·集群概念:集群技术简介
·参考文档:DRBD(磁盘镜像技术)
·如何选择合适的双机和集群软件
·LifeKeeper软件介绍
·纯软件方式的双机热备方案深入分...
·双机热备:基于共享存储与纯软件...
·双机热备与数据备份,数据安全的关...
·双机热备常见问题释疑
·双机热备、双机互备与双机双工的...
·双机、集群的配置模式:主从、互...
·双机热备基本概念分析
·linux常用集群文件系统简介
 
li
设为首页 | 关于我们 | 技术服务 | 收藏本站 | 网站地图 | 联系方式 | 本站友情连接