ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris 10下迁移10G RAC (三)

Solaris 10下迁移10G RAC (三)

原创 Linux操作系统 作者:space6212 时间:2019-07-21 07:24:02 0 删除 编辑
最近做了一个rac数据库的迁移,中间涉及到很多部分内容,包括rac环境的搭建、ASM的设置、数据库的迁移、升级等。
本文是这次迁移工作的第三部分:安装oracle clusterware。

3 安装clusterware

3.1检验系统是否满足安装clusterware的要求

pre1oracle用户执行如下脚本:

$ ./runcluvfy.sh stage -pre crsinst -n pre1,pre2

Performing pre-checks for cluster services setup

Checking node reachability...

Node reachability check passed from node "pre1".

Checking user equivalence...

User equivalence check passed for user "oracle".

Checking administrative privileges...

User existence check passed for "oracle".

Group existence check passed for "oinstall".

Membership check for user "oracle" in group "oinstall" [as Primary] passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "172.0.2.0" with node(s) pre2,pre1.

Node connectivity check passed for subnet "10.0.0.0" with node(s) pre2,pre1.

Suitable interfaces for VIP on subnet "172.0.2.0":

pre2 ce0:172.0.2.3

pre1 ce0:172.0.2.1

Suitable interfaces for the private interconnect on subnet "10.0.0.0":

pre2 ce1:10.0.0.2

pre1 ce1:10.0.0.1

Node connectivity check passed.

Checking system requirements for 'crs'...

Total memory check passed.

Free disk space check passed.

Swap space check passed.

System architecture check passed.

Operating system version check passed.

Package existence check passed for "SUNWarc".

Package existence check passed for "SUNWbtool".

Package existence check passed for "SUNWhea".

Package existence check passed for "SUNWlibm".

Package existence check passed for "SUNWlibms".

Package existence check passed for "SUNWsprot".

Package existence check passed for "SUNWsprox".

Package existence check passed for "SUNWtoo".

Package existence check passed for "SUNWi1of".

Package existence check passed for "SUNWi1cs".

Package existence check passed for "SUNWi15cs".

Package existence check passed for "SUNWxwfnt".

Package existence check passed for "SUNWlibC".

Package existence check failed for "SUNWscucm:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWudlmr:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWudlm:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "ORCLudlm:Dev_Release_06/11/04,_64bit_3.3.4.8_reentrant".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWscr:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWscu:3.1".

Check failed on nodes:

pre2,pre1

Group existence check passed for "dba".

Group existence check passed for "oinstall".

User existence check passed for "oracle".

User existence check passed for "nobody".

System requirement failed for 'crs'

Pre-check for cluster services setup was unsuccessful on all the nodes.

这里显示检测不通过,但是不影响安装clusterware,原因上面已经说过。

3.2 正式安装clusterware

启动VNC,开始执行安装程序:

bash-3.00# xhost +

access control disabled, clients can connect from any host

bash-3.00# su - oracle

Sun Microsystems Inc. SunOS 5.10 Generic January 2005

bash-3.00$ export DISPLAY=172.0.2.1:1.0

重新执行ssh-agent,以免出错:

bash-3.00$ cd /backup/soft/cluster/

bash-3.00$ exec /usr/bin/ssh-agent $SHELL

$ /usr/bin/ssh-add

Identity added: /export/home/oracle/.ssh/id_rsa (/export/home/oracle/.ssh/id_rsa)

Identity added: /export/home/oracle/.ssh/id_dsa (/export/home/oracle/.ssh/id_dsa)

$ pwd

/backup/soft/cluster

启动安装界面:

$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10. Actual 5.10

Passed

Checking Temp space: must be greater than 250 MB. Actual 10917 MB Passed

Checking swap space: must be greater than 500 MB. Actual 11324 MB Passed

Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-09-22_12-31-16AM. Please wait ...$ Oracle Universal Installer, Version 10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10. Actual 5.10

Passed

Checking Temp space: must be greater than 250 MB. Actual 10934 MB Passed

Checking swap space: must be greater than 500 MB. Actual 11333 MB Passed

Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed

All installer requirements met.

在界面点击下一步,在出来的界面选择inventory directorysystem group,默认是/oracle/app/oraInventoryoinstall,用默认值,next

输入OraCrs10g_home1的路径:/oracle/app/product/10.2/crs,在语言中添加简体中文,然后next

接着oracle进行一系列的检测,如果都通过,下一步

输入cluster name,这里用默认的crs

cluster nodes中配置下面信息:

public node name private node name virtual host name

pre1 priv-pre1 vip-pre1

pre2 priv-pre2 vip-pre2

这里的接口名称要和/etc/hosts中的设置一样。

选择下一步,设置网络,如果显示出来的不正确,输入正确的网络信息

选择下一步,输入OCR的位置/dev/rdsk/c3t0d3s5,选择外部冗余

选择下一步,输入Voting的位置:/dev/rdsk/c3t0d3s6,选择外部冗余

选择下一步,开始安装

最后,在所有节点以root运行如下两个脚本:

/oracle/app/oraInventory/orainstRoot.sh

/oracle/app/product/10.2/crs/root.sh

pre1上以root执行:

bash-3.00# /oracle/app/oraInventory/orainstRoot.sh

Changing permissions of /oracle/app/oraInventory to 770.

Changing groupname of /oracle/app/oraInventory to oinstall.

The execution of the script is complete

bash-3.00# /oracle/app/product/10.2/crs/root.sh

WARNING: directory '/oracle/app/product/10.2' is not owned by root

WARNING: directory '/oracle/app/product' is not owned by root

WARNING: directory '/oracle/app' is not owned by root

WARNING: directory '/oracle' is not owned by root

Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/oracle/app/product/10.2' is not owned by root

WARNING: directory '/oracle/app/product' is not owned by root

WARNING: directory '/oracle/app' is not owned by root

WARNING: directory '/oracle' is not owned by root

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node :

node 1: pre1 priv-pre1 pre1

node 2: pre2 priv-pre2 pre2

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Now formatting voting device: /dev/rdsk/c3t0d3s6

Format of 1 voting devices complete.

Startup will be queued to init within 30 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

pre2

CSS is inactive on these nodes.

pre1

Local node checking complete.

Run root.sh on remaining nodes to start CRS daemons.

pre2上以root执行:

bash-3.00# /oracle/app/oraInventory/orainstRoot.sh

Changing permissions of /oracle/app/oraInventory to 770.

Changing groupname of /oracle/app/oraInventory to oinstall.

The execution of the script is complete

bash-3.00# /oracle/app/product/10.2/crs/root.sh

WARNING: directory '/oracle/app/product/10.2' is not owned by root

WARNING: directory '/oracle/app/product' is not owned by root

WARNING: directory '/oracle/app' is not owned by root

WARNING: directory '/oracle' is not owned by root

Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/oracle/app/product/10.2' is not owned by root

WARNING: directory '/oracle/app/product' is not owned by root

WARNING: directory '/oracle/app' is not owned by root

WARNING: directory '/oracle' is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node :

node 1: pre1 priv-pre1 pre1

node 2: pre2 priv-pre2 pre2

clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.

-force is destructive and will destroy any previous cluster

configuration.

Oracle Cluster Registry for cluster has already been initialized

Startup will be queued to init within 30 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

pre1

pre2

CSS is active on all nodes.

Waiting for the Oracle CRSD and EVMD to start

Oracle CRS stack installed and running under init(1M)

Running vipca(silent) for configuring nodeapps

Creating VIP application resource on (2) nodes...

Creating GSD application resource on (2) nodes...

Creating ONS application resource on (2) nodes...

Starting VIP application resource on (2) nodes...

Starting GSD application resource on (2) nodes...

Starting ONS application resource on (2) nodes...

Done.

返回界面,点击OKoracle再进行做一些配置后,再次用clufty检测所有节点的crs状态,如果正确,则点击EXIT退出。

至此,clusterware安装完毕。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/231499/viewspace-63864/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2005-01-25

  • 博文量
    245
  • 访问量
    168879