AIX6.1HACMP5.5Oracle_10g_RAC_10.2.0.5安装文档.doc_第1页
AIX6.1HACMP5.5Oracle_10g_RAC_10.2.0.5安装文档.doc_第2页
AIX6.1HACMP5.5Oracle_10g_RAC_10.2.0.5安装文档.doc_第3页
AIX6.1HACMP5.5Oracle_10g_RAC_10.2.0.5安装文档.doc_第4页
AIX6.1HACMP5.5Oracle_10g_RAC_10.2.0.5安装文档.doc_第5页
免费预览已结束,剩余87页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

北京宇信易诚科技有限公司AIX61-08+HACMP5.5+Oracle 10g RAC安装报告文档控制修改记录日期作者版本修改记录2010-08-211.0创建审阅姓名职位分发拷贝No.姓名单位12341 AIX6.1安装和配置1.1 安装基本操作系统由于主机出厂时未安装操作系统,需自行安装操作系统。1. 将 AIX61-05 光盘插入光驱。2. 将IBM小型机启动,在终端上出现图形时按 5或F5 键,等待系统自检后由光盘引导。3. 选择console主控台、安装语言。4. 在下图中选择2。Welcome to Base Operating SystemInstallation and MaintenanceType the number of your choice and press Enter .Choice is indicated by 1. Start Installation Now with Default Settings 2. Change/Show Installation Settings and Install 3. Start Maintenance Mode for System Recovery 88 Help ? 99 Previous MenuChoice : 2 5. 在下图中选择1。Installation and SettingsEither type 0 and press Enter to install with current settings , or type the number of the setting you want to change and press Enter .1. System Settings Method of Installation - Migration Disk Where You Want to Install - Hdisk02. Primary Language Environment Settings ( AFTER Install ): Cultural Convention - English ( United States ) Language - English ( United States ) Keyboard - English ( United Stats ) Keyboard Type- Default3. Install Tursted Computing Base - no0 Install AIX with the current setting listed above.88 Help ?99 Previous Menuchoice : 1 6. 在下图中选择1。Change Method of InstallationType the number of the installaion method and press Enter. 1. New and Complete Overwrite Overwrite EVERYTHING on the disk selected for installation . Warming: Only use this method if the disk is totally empty or if thereis noting on the disk you want ti preserve .2. Preservation Install Preserves SOME of the existing data on the disk selected for installation . Warrning : This method overwrites the usr (/usr) , variable (/var) , temporary (/tmp),and root(/) file systems .Other product ( applications) file and configuration data will bedestroyed .3. Migration Install Upgrades the Base Operatig System to current release . Other product ( applications) files and configuration data are saved .88 Help ?99 Previous MenuChoice : 1 7. 在下图中选择1,然后选择0。Change Disk(s) Where You Want to InstallType one or more numbers for disk(s) to be used for installation and press Enter .To cancel a choice , type the corresponding number and press Enter . At lease one bootable disk must be selected . The current choice is indicated by .Name Location Code Size ( MB ) VG Status Bootable1 hdisk0 00-01-00-0,0 9100 rootvg yes2 hdisk1 00-01-11-0,0 9100 othervg yes0 Continue with choices indicated above66 Disks not known to Base Operating System Installation77 Display More Disk Information88 Help ?99 Previous menuChoice : 1 再选 : 0 8. 在下图中选择3,并将第4、5行置为YES。Installation and SettingsEither type 0 and press Enter to install with current settings , or type the number of the setting you want to change and press Enter .1. System Settings Method of Installation - New and Complete Overwrite Disk Where You Want to Install - Hdisk02. Primary Language Environment Settings ( AFTER Install ): Cultural Convention - English ( United States ) Language - English ( United States ) Keyboard - - English ( United Stats ) Keyboard Type - Default3. Install Tursted Computing Base - no0 Install AIX with the current setting listed above.88 Help ?99 Previous Menuchoice : 0 9. 在下图中选择0Installation and SettingsEither type 0 and press Enter to install with current settings , or type the number of the setting you want to change and press Enter .1. System Settings Method of Installation - New and Complete Overwrite Disk Where You Want to Install - Hdisk02. Primary Language Environment Settings ( AFTER Install ): Cultural Convention - English ( United States ) Language - English ( United States ) Keyboard - - English ( United Stats ) Keyboard Type - Default3. Install Tursted Computing Base - no0 Install AIX with the current setting listed above.88 Help ?99 Previous Menuchoice : 0 10. 下图显示开始安装AIX5.3的BOS。Installing Base Operating SystemPlease Wait Approximate Elapsed time% tasks complete ( in minutes ) 25 5 Resoring Base Operating System1.2 安装文件集系统安装完毕,运行oslevel r,显示5300-08,不需要打系统的补丁集。1.2.1 安装文件集根据下表选择需要的文件集。序号fileset1.OpenGL所有2.bos.adt3.bos.alt_disk_install4.bos.cifs_pat7.bos.content_13.bos.lrn14.bos.perf15.bos.rte16.bos.sysmgt17.ifor_ls.base18.ifor_pat(有些版本的AIX可能没有)19.pat21.x11.Dpat.client27.rsct.core28.rsct.opt.storagerm 为了适用Oracle 10g R2 RAC的要求,建议将所有rsct的包都装上。安装方法如下:1. 在下图中选择第1项。Install and Update SoftwareMove cursor to desired item and press Enter .Install SoftwareUpdate Installed Software to Latest Level (Update All)Install Software BundleUpdate Software by Fix (APAR)Install and Update from ALL Available Software2. 在下图中,将ACCEPT new license agreements选项置为yes ,将COMMIT software updates选项设置为yes。将光标移到SOFTWARE to install项中,按F4键。Install and Update from LATEST Available SoftwareType or select values in entry fields .Press Enter AFTER making all desired changes . Entry Fields * INPUT device / directory for software /dev/cd0* SOFTWARE to install _all_latest PREVIEW only ? ( install operation will NOT occur ) no COMMIT software updates ? yes SAVE replaced files ? yes AUTOMATICALLY install requisite software ? yes EXTEND file systems if spacs needed ? yes OVERWRITE same or newer versions ? yes VERIFY install and check file sizeds ? no Include corresponding LANGUAGE filesets ? no DETAILED output ? noProcess multiple volumes? yes ACCEPT new license agreements? yes Preview new LICENSE agreements? no1.2.2 安装Bundle根据下表选择需要的文件集。序号Bundle1.APP-DEV2.SERVER安装方法如下:在下图中选择第3项。Install and Update SoftwareMove cursor to desired item and press Enter .Install SoftwareUpdate Installed Software to Latest Level (Update All)Install Software BundleUpdate Software by Fix (APAR)Install and Update from ALL Available Software1.2.3 安装Java从系统盘和AIX Toolbox for Linux Applications盘上安装所有java相关的PS:最好不要装高版本的Java,否则在Oracle10G建库时会报错。安装方法同1.2.1。 序号Java包名1.Jmapi2.Java14.ext.java3d3.Java14.ext.javahelp4.Java14.license5.Java14.msg.zh_TW6.Java14.samples7.Java14.sdk8.Java14.source9.Java14_64.mapi10.Java14_64.ext.javahelp11.Java14_64.license 12.Java14_64.samples13.Java14_64.sdk14.Java14_64.source1.2.4 安装openssh安装SSH的前提包,在AIX Toolbox for Linux Applications盘上。openssl-0.9.7l openssl-devel-0.9.7l openssl-doc-0.9.7l 以下包在扩展盘上openssh.base openssh.license openssh.man.en_US安装方法同1.2.1。1.2.5 安装Oracle 10g R2 RAC需要的补丁包确认Oracle 10g R2 RAC需要的基本文件包是否安装,安装方法同1.2.1。bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat bos.perf.perfstat ctools rsct.basic.rte pat.clients.rte xlC.aix50.rte xlC.rte 最后两个文件包,AIX53-08中已经包含,如果Oracle10g R2的用户没有安装IBM XL C/C+ Enterprise Edition V7.0编译器,需要安装 IBM XL C/C+ Enterprise Edition V7.0 for AIX Runtime Environment Component。从以下网址下载/support/docview.wss?uid=swg24009788 以上下载的所有运行环境文件包,没有license许可要求。1.3 客户化配置1.3.1 文件系统调整#smit chfsChange / Show Characteristics of an Enhanced Journaled File System调整后的文件系统为Filesystem 512-blocks Free %Used Iused %Iused Mounted on/dev/hd4 20971520 20848792 1% 4821 1% /dev/hd2 12582912 8389208 34% 43042 5% /usr/dev/hd9var 12582912 12446728 2% 729 1% /var/dev/hd3 41943040 26121296 38% 9792 1% /tmp/dev/hd1 1048576 1041672 1% 64 1% /home/proc - - - - - /proc/dev/hd10opt 41943040 22083880 48% 36191 2% /opt/dev/lv00 1048576 1015552 4% 18 1% /var/adm/csd1.3.2 设定时区并取消夏时制设置时区,并确定是否启用夏时制。(TZ=BEIJING-8.无夏令时)#smit system environmentchange show date and timechange time zone using system defined values在弹出的USE DAYTIME SAVING对话框中选择No,选好相应的时区TZ=BEIJING-8。1.3.3 设置用户最大进程数# smitty chgsys Maximum number of PROCESSES allowed per user 4096 HIGH water mark for pending write I/Os per file 33 LOW water mark for pending write I/Os per file 24 Pre-520 tuning compatibility mode enable Stack Execution Disable (SED) Mode off 1.3.4 设置支持大文件修改/etc/security/limits文件,将fsize的值设为-1。1.3.5 设置AIO参数如果数据库建立在raw设备上,请设置AIO参数,以提高磁盘读写的性能。通过命令smit chgaio进入异步IO设置菜单,选择更改/显示异步IO属性项,设置minservers和 maxservers数(通常maxservers数为物理磁盘数的10倍,但不要超过80,而minservers为maxservers的2/1)。minservers为30,maxservers为60,并激活AIO。# smitty chgaio MINIMUM number of servers 30 MAXIMUM number of servers 60 maximum number of REQUESTS 4096 server PRIORITY 39 STATE to be configured at system restart available State of fast path enable# mkdev l aio0 使异步I/O可用 1.3.6 调整syncd频率修改文件/sbin/rc.boot #nohup /usr/sbin/syncd 60 /dev/null 2&1 & nohup /usr/sbin/syncd 10 /dev/null 2&1 &1.3.7 配置网络可调参数修改文件/etc/,将如下几行加到文件的尾部: #chmod 755 /etc/ #vi /etc/ if -f /usr/sbin/no ; then /usr/sbin/no -o extendednetstats=0 /dev/null 2&1 /usr/sbin/no -p -o udp_sendspace=65536 /usr/sbin/no -p -o udp_recvspace=262144 /usr/sbin/no -p -o tcp_sendspace=262144 /usr/sbin/no -p -o tcp_recvspace=262144 /usr/sbin/no -p -o rfc1323=1 /usr/sbin/no -p -o sb_max=1310720 /usr/sbin/no -r -o ipqmaxlen=512 fi #chmod 554 /etc/ 1.3.8 转换AIX 64bit内核Oracle 10.2 RAC on AIX 5L V5.3 需要64-bit内核。如果你的AIX是64bit那就OK。但是如果是32bit,需要转换32bit内核为64bit的内核。使用 bootinfo K 查看内核是否是64bit # bootinfo K 64 如果是32bit。那么需要使用如下方法来转换32bit到64bit # ln -sf /usr/lib/boot/unix_64 /unix # ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix # bosboot -ad /dev/ipldevice # shutdown Fr 具体可参考 metalink Note:169426.1 1.3.9 调整swap空间System Storage Management (Physical & Logical Storage)Logical Volume ManagerPaging Space Change / Show Characteristics of a Paging SpaceType or select values in entry fields.Press Enter AFTER making all desired changes. Entry Fields Paging space name hd6 Volume group name rootvg Physical volume name hdisk0 NUMBER of additional logical partitions 63 Or NUMBER of logical partitions to remove Use this paging space each time the system is yes RESTARTED?调整后的swap大小为32GB1.3.10 做硬盘的镜像如果需要做硬盘的镜像,参考下列脚本:l 把镜像盘hdisk1加入到rootvg,命令:extendvg rootvg hdisk1l 镜像rootvg,命令:mirrorvg -c 2 rootvg hdisk1l 重新生成boot image,命令:bosboot -ad /dev/hdisk0 bosboot -ad /dev/hdisk1l 更新bootlist,命令:bootlist -m normal cd0 hdisk0 hdisk12 HACMP5.5.1安装和配置2.1 设计规划2.1.1 IP及拓扑设计cluster namexckyclunode namejfdb1ip labeljfdb1jfdb1_privjfdb1_tty0network typeethernetethernetrs232network attributePublicpublicserialnetwork namejfdb1jfdb1_privnet_rs232_01ip address/dev/tty0adapter functionstandbyserialadapter nameen0en1cluster namexckyclunode namejfdb2ip labeljfdb2jfdb2_privjfdb2_tty0network typeethernetethernetrs232network attributePublicpublicserialnetwork namejfdb2jfdb2_privnet_rs232_01ip address/dev/tty0adapter functionstandbyserialadapter nameen0en12.1.2 资源组命名Res.Grp.NameNode Rel.Volume GroupPart.Node NamexckyresConcurrentoravg1(61)jfdb1 jfdb22.1.3 /etc/hosts文件设计loopback localhost# loopback (lo0) name/address jfdb1 jfdb1_priv jfdb1-vip jfdb2 jfdb2_priv jfdb2-vip注意:oracle10g RAC要求/etc/hosts文件中不能有别名,否则在安装crs识别主机时会有问题。2.2 实施前提2.2.1 创建Concurrent VGjfdb1做如下操作:# lspvhdisk0 00c287f440af5452 rootvg activehdisk1 00c287f415b7be8b rootvg activehdisk2 none Nonehdisk3 none Nonehdisk4 none Nonehdisk5 none Nonehdisk6 none Nonehdisk7 none Nonehdisk8 none None hdisk9 none None hdisk10 none None hdisk11 none None hdisk12 none None hdisk13 none None # smitty mkvg Add a Big Volume Group Type or select values in entry fields. Press Enter AFTER making all desired changes. Entry Fields VOLUME GROUP name oravg1 + Physical partition SIZE in megabytes 64 * PHYSICAL VOLUME nameshdisk2,hdisk3,hdisk4,hdisk5,hdisk6,hdisk7 Force the creation of a volume group no + Activate volume group AUTOMATICALLY no + at system restart? Volume Group MAJOR NUMBER 61 Create VG Concurrent Capable? enhanced concurrent + chdev -l hdiskpower0 -a pv=yesjfdb2做如下操作:chdev -l hdiskpower0 -a pv=yes# smitty vg Import a Volume GroupType or select values in entry fields. Press Enter AFTER making all desired changes. Entry Fields VOLUME GROUP name oravg1 * PHYSICAL VOLUME name hdisk2 + Volume Group MAJOR NUMBER 61 +# 两台主机的VG major number要保持一致!2.2.2 网络配置 主机名及IP地址主机内容备注jfdb1jfdben0jfdb1-vipjfdb1_priven1jfdb2jfdben0jfdb2-vipjfdb2_priven 建立主机信任关系在两台主机的/目录下,建立.rhosts文件,注意改变文件权限:chmod 600 /.rhosts文件内容如下:jfdb1jfdb1_vipjfdb1_privjfdb2jfdb2_vipjfdb2_priv 测试信任关系在两台主机上做以下操作,看结果是否正常:ping jfdb1ping jfdb1_privping jfdb2ping jfdb2_privrlogin jfdb1rlogin jfdb22.2.3 心跳线配置及测试在选择哪个串口作为心跳线的端口时,原则是这样:在串口富裕的情况下,尽量不要选择第1个和第2个。(因为第一个串口一般做console,第二个常用作远程维护程序使用)。如果不这样,虽然同步和简单的测试没有问题,但在实际应用中回出现HACMP经常自动切换,所以应该不使用第1和第2个串口。 心跳线配置#smitty ttyAdd a TTY TTY type tty TTY interface rs232 Description Asynchronous Terminal Parent adapter sa0* PORT number 0 + Enable LOGIN disable + BAUD rate 9600 PARITY none + BITS per character 8 + Number of STOP BITS 1 + TIME before advancing to next port setting 0 + TERMINAL type dumb FLOW CONTROL to be used xon主机2步骤与主机1相同。 心跳线测试在两台主机上,通过lsdev Cc tty查看新增的串行口,会有类似下面的内容:tty0 Available 00-00-S3-00 Asynchronous Terminal序号主机内容1.主机1stty /dev/t

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论