linux下Oracle11g RAC搭建(六)
[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
[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工具:可以自動解決軟件包之間的依賴關系,使用它之前要先創建軟件倉庫。
以下,開始構建軟件倉庫:
[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表示校驗關閉。
[root@node1 yum.repos.d]# scpyum.repo node2:/etc/yum.repos.d
//把yum.repo拷貝到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倉庫構建完成。
[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包
Vbox中掛載IOS光盤(node1、node2)
[root@node2 ~]#mount/dev/hdc /media 或者mount /dev/cdrom /media
//vbox設置完畢後,手工掛載光盤
參考“安裝node1中缺失的軟件包”
重新啟動node1、node2系統,在node1以grid身份再次完成環境校驗(“參考grid身份下校驗安裝環境”)
聲明:
原創作品,出自 “深藍的blog” 博客,允許轉載,轉載時請務必注明出處(http://blog.csdn.net/huangyanlong)。
關於涉及版權事宜,作者有權追究法律責任。
************************** 未完待續 敬請關注 **************************************