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
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvaHVhbmd5YW5sb25n/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">
依据校验结果使用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)。
关于涉及版权事宜,作者有权追究法律责任。
************************** 未完待续 敬请关注 **************************************