首页 > 代码库 > linux下Oracle11g RAC搭建(六)
linux下Oracle11g RAC搭建(六)
linux下Oracle11g RAC搭建(六)
五、校验安装前的环境
root身份下完成解压grid、database安装包
[grid@node1 soft]$ su -
Password:
[root@node1 ~]# cd /soft
[root@node1 soft]# ls
asm linux_11gR2_database_1of2.zip linux_11gR2_database_2of2.zip linux_11gR2_grid.zip
[root@node1 soft]# unziplinux_11gR2_grid.zip
[root@node1 soft]# unziplinux_11gR2_database_1of2.zip
[root@node1 soft]# unziplinux_11gR2_database_2of2.zip
grid 身份下校验安装环境
[root@node1 soft]#su – grid
[grid@node1 ~]$ cd /soft/grid
[grid@node1 grid]$ ./runcluvfy.shstage -pre crsinst -nnode1,node2 -fixup -verbose
//pre-安装前,post-安装后,阶段名称叫crsinst-crsinstall,-n-节点之间校验,verbose-校验的过程
检测crs安装环境(node1、node2),安装失败的包如下:
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11
libaio-devel-0.3.106
详细列表如下:
Check: Package existence for "sysstat-7.0.2"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
node2 missing sysstat-7.0.2 failed
node1 missing sysstat-7.0.2 failed
Result: Package existence check failed for"sysstat-7.0.2"
Check: Package existence for "unixODBC-2.2.11"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
node2 missing unixODBC-2.2.11 failed
node1 missing unixODBC-2.2.11 failed
Result: Package existence check failed for"unixODBC-2.2.11"
Check: Package existence for "unixODBC-devel-2.2.11"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
node2 missing unixODBC-devel-2.2.11 failed
node1 missing unixODBC-devel-2.2.11 failed
Check: Package existence for "libaio-devel-0.3.106"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
node2 missing libaio-devel-0.3.106 failed
node1 missing libaio-devel-0.3.106 failed
补充:
若出现swap分区大小不足,参考如下更改:
[root@hylbest1 localdisk]# dd if=/dev/zeroof=/localdisk/swapfile bs=1024 count=4096000
[root@hylbest1 localdisk]# mkswap/localdisk/swapfile
[root@hylbest1 localdisk]# swapon/localdisk/swapfile
[root@hylbest1 localdisk]# vi/etc/fstab
添加/localdisk/swapfile swap swap defaults 0 0
[root@hylbest1 localdisk]# cat/proc/swaps
查看swap详细:
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 2097144 136 -1
/localdisk/swapfile file 4095992 0 -2
配置yum install安装工具(node1、node2)
为node1配置yum
yum工具:可以自动解决软件包之间的依赖关系,使用它之前要先创建软件仓库。
以下,开始构建软件仓库:
[root@node1 grid]$ su –
[root@node1 ~]# cd/etc/yum.repos.d/ //进入到该目录下生成一个配置文件
[root@node1 yum.repos.d]# ls
[root@node1 yum.repos.d]# cprhel-debuginfo.repo yum.repo
//做一个拷贝
[root@node1 yum.repos.d]# mv rhel-debuginfo.repo rhel-debuginfo.repo.bak
//修改原来文件名
[root@node1 yum.repos.d]#vi yum.repo
//文件内容改为如下
修改如下:
[base]
name=Red Hat Enterprise Linux
baseurl=file:///media/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
说明:
media这个就是安装光盘挂载所在位置,Server下就是一些安装包,S是大写。
enabled=1表示启动,gpgcheck=0表示校验关闭。
为node2配置yum
[root@node1 yum.repos.d]# scpyum.repo node2:/etc/yum.repos.d
//把yum.repo拷贝到node2
根据校验结果使用yum安装缺失软件包(node1、node2)
Vbox中挂载IOS光盘(node1、node2)
[root@node1 yum.repos.d]#mount/dev/hdc /media 或者mount /dev/cdrom /media
//vbox设置完毕后,手工挂载光盘
[root@node1 yum.repos.d]# ls /media/ //可以查看一下目录下文件
[root@node1 yum.repos.d]# ls/media/Server|more
//再看一下server下应该有很多软件包
至此,yum仓库构建完成。
安装node1中缺失的软件包
[root@node1 yum.repos.d]# yuminstall libaio* -y
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libaio-devel 1/1
Installed:
libaio-devel.i386 0:0.3.106-5
Complete!
[root@node1 yum.repos.d]#yum install syssta* -y
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sysstat.i386 0:7.0.2-3.el5 set to beupdated
--> Finished Dependency Resolution
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sysstat 1/1
Installed:
sysstat.i3860:7.0.2-3.el5
Complete!
[root@node1 yum.repos.d]#yum install unixO* -y
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unixODBC.i386 0:2.2.11-7.1 set to beupdated
---> Package unixODBC-devel.i386 0:2.2.11-7.1 set tobe updated
---> Package unixODBC-kde.i386 0:2.2.11-7.1 set tobe updated
--> Finished Dependency Resolution
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing :unixODBC 1/3
Installing : unixODBC-kde 2/3
Installing : unixODBC-devel 3/3
Installed:
unixODBC.i3860:2.2.11-7.1 unixODBC-devel.i386 0:2.2.11-7.1
unixODBC-kde.i386 0:2.2.11-7.1
Complete!
[root@node1 yum.repos.d]#rpm -qa |grep -i odbc
unixODBC-2.2.11-7.1
unixODBC-devel-2.2.11-7.1
unixODBC-kde-2.2.11-7.1
[root@node1 yum.repos.d]# cd //安装vnc包
安装node2中缺失的软件包
Vbox中挂载IOS光盘(node1、node2)
[root@node2 ~]#mount/dev/hdc /media 或者mount /dev/cdrom /media
//vbox设置完毕后,手工挂载光盘
参考“安装node1中缺失的软件包”
grid身份下再次校验安装环境
重新启动node1、node2系统,在node1以grid身份再次完成环境校验(“参考grid身份下校验安装环境”)
声明:
原创作品,出自 “深蓝的blog” 博客,允许转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。
关于涉及版权事宜,作者有权追究法律责任。
************************** 未完待续 敬请关注 **************************************