Linux under oracle11g RAC Construction (vi)
Five, verify the environment before the installation of the root identity to complete the decompression grid, database installation package
[Email protected] soft]$ Su-
Password:
[Email protected] ~]# cd/soft
[[email protected] soft]# ls
ASM Linux_11gr2_database_1of2.zip Linux_11gr2_database_2of2.zip Linux_11gr2_grid.zip
[Email protected] soft]# unziplinux_11gr2_grid.zip
[Email protected] soft]# unziplinux_11gr2_database_1of2.zip
[Email protected] soft]# unziplinux_11gr2_database_2of2.zip
Check installation environment under grid identity
[Email protected] soft]#su–grid
[Email protected] ~]$ cd/soft/grid
[Email protected] grid]$ /runcluvfy.shstage-pre crsinst-nnode1,node2-fixup-verbose
Pre-installation, post-after installation, the stage name is called crsinst-crsinstall,-n-between the nodes check, verbose-verification process
To detect the CRS installation environment (NODE1, Node2), the installation failed package is as follows:
sysstat-7.0.2
unixODBC-2.2.11
unixodbc-devel-2.2.11
libaio-devel-0.3.106
The detailed list is as follows:
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
Add:
If the swap partition size is insufficient, refer to the following changes:
[[email protected] localdisk]# DD if=/dev/zeroof=/localdisk/swapfile bs=1024 count=4096000
[Email protected] localdisk]# Mkswap/localdisk/swapfile
[Email protected] localdisk]# Swapon/localdisk/swapfile
[Email protected] localdisk]# Vi/etc/fstab
Add/localdisk/swapfile Swap swap defaults 0 0
[Email protected] localdisk]# Cat/proc/swaps
View swap Details:
Filename Type Size used priority
/DEV/MAPPER/VOLGROUP00-LOGVOL01 Partition 2097144 136-1
/localdisk/swapfile file 4095992 0-2
Configure the Yum Install tool (Node1, node2) to configure Yum for Node1
Yum Tools: You can automatically resolve dependencies between packages and create repositories before using them.
Below, start building the software repository:
[Email protected] grid]$ su–
[[email protected] ~]# cd/etc/yum.repos.d/ //Enter into this directory to generate a configuration file
[[email protected] yum.repos.d]# ls
[Email protected] yum.repos.d]# Cprhel-debuginfo.repo Yum.repo
Make a copy
[Email protected] yum.repos.d]# mv Rhel-debuginfo.repo Rhel-debuginfo.repo.bak
Modify the original file name
[Email protected] yum.repos.d]#VI yum.repo
The contents of the document are changed to
Modify the following:
[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
Description
Media This is the installation CD Mount location, under the server is some installation package, S is uppercase.
Enabled=1 means start, gpgcheck=0 means check off.
Configuring Yum for Node2
[Email protected] yum.repos.d]# scpyum.repo node2:/etc/yum.repos.d
Copy the Yum.repo to the Node2.
Use Yum to install missing packages based on validation results (Node1, Node2)
Vbox Mount in IOS Discs ( Node1 , Node2 )
[[email protected] YUM.REPOS.D] #Mount/dev/hdc/media or mount/dev/cdrom/media
When the VBox is set up, manually mount the disc
[[email protected] yum.repos.d]# ls/media/ //Can view the files in the directory
[Email protected] yum.repos.d]# ls/media/server|more
Look at the server there should be a lot of packages
At this point, the Yum repository is built.
Install the missing packages in Node1
[Email protected] yum.repos.d]# yuminstall libaio*-y
Loaded Plugins:rhnplugin, security
This system isn't registered with the portal.
Portal support would 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!
[[email protected] YUM.REPOS.D] #yum Install syssta*-y
Loaded Plugins:rhnplugin, security
This system isn't registered with the portal.
Portal support would 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!
[[email protected] YUM.REPOS.D] #yum Install unixo*-y
Loaded Plugins:rhnplugin, security
This system isn't registered with the portal.
Portal support would 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!
[[email protected] 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
[[email protected] YUM.REPOS.D] # CD //install VNC Package
Install the missing packages in Node2
Vbox Mount in IOS Discs ( Node1 , Node2 )
[Email protected] ~]#mount/dev/hdc/media or mount/dev/cdrom/media
When the VBox is set up, manually mount the disc
refer to "Installing missing packages in Node1"
Check the installation environment again under grid identity
Restart the Node1, Node2 system, and complete the environment check again as grid in Node1 ("Check Installation environment under Grid identity")
Statement:
Original works, from the "Blue Blog" blog, allow the reprint, please be sure to indicate the source (Http://blog.csdn.net/huangyanlong) when reproduced.
The author is entitled to be held liable for copyright related matters.
Please pay attention to ************************************** before the end