Oracle11g RAC construction in linux (6)
5. Verify the root identity of the environment before installation to decompress the grid and database installation packages.
[Grid @ node1 soft] $Su-
Password:
[Root @ node1 ~] #Cd/soft
[Root @ node1 soft] #Ls
Asm linux_11gR2_database_1of2.zip linux_11gr2_databasesilicate f2.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_database204 f2.zip
Verify the installation environment under the grid identity
[Root @ node1 soft] #Su-grid
[Grid @ node1 ~] $Cd/soft/grid
[Grid @ node1 grid] $./Runcluvfy. shstage-pre crsinst-nnode1, node2-fixup-verbose
// Before pre-installation, after post-installation, the stage name is crsinst-crsinstall,-n-node verification, verbose-verification process
Check the crs installation environment (node1 and node2). The packages that fail to be installed are 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"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"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"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"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
Supplement:
If the swap partition size is insufficient, make the following changes:
[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
Add/localdisk/swapfile swap defaults 0 0
[Root @ hylbest1 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 Installation Tool (node1 and node2) to configure yum for node1.
Yum tool: It can automatically resolve dependencies between software packages. before using it, you must create a software repository.
Start building a software repository as follows:
[Root @ node1 grid] $ su-
[Root @ node1 ~] #Cd/etc/yum. repos. d/// Enter the directory to generate a configuration file
[Root @ node1 yum. repos. d] #Ls
[Root @ node1 yum. repos. d] #Cprhel-debuginfo.repo yum. repo
// Make a copy
[Root @ node1 yum. repos. d] #Mv rhel-debuginfo.repo rhel-debuginfo.repo.bak
// Modify the original file name
[Root @ node1 yum. repos. d] #Vi yum. repo
// Change the file content to the following:
Modify as follows:
[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
Note:
Media: The Mount location of the installation disc. Some installation packages under the Server, and S are capitalized.
Enabled = 1 indicates startup, and gpgcheck = 0 indicates that verification is disabled.
Configure yum for node2
[Root @ node1 yum. repos. d] #Scpyum. repo node2:/etc/yum. repos. d
// Copy yum. repo to node2
Use yum to install missing software packages (node1 and node2) based on verification results)
Attaching IOS discs (node1 and node2) to Vbox)
[Root @ node1 yum. repos. d] #Mount/dev/hdc/mediaOrMount/dev/cdrom/media
// After vbox settings are complete, manually attach the disc
[Root @ node1 yum. repos. d] #Ls/media/// View the files in the directory
[Root @ node1 yum. repos. d] #Ls/media/Server | more
// Check whether many software packages exist on the server.
So far, the yum repository has been built.
Install the software package missing from 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.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. 2.11-7.1 set to beupdated
---> Package unixODBC-devel.i386. 2.11-7.1 set tobe updated
---> Package unixODBC-kde.i386. 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// Install the vnc package
Install the missing software package in node2
Attaching IOS discs (node1 and node2) to Vbox)
[Root @ node2 ~] #Mount/dev/hdc/mediaOrMount/dev/cdrom/media
// After vbox settings are complete, manually attach the disc
Refer to "installing software packages missing from node1"
Verify the installation environment again under the grid identity
Restart the node1 and node2 systems and verify the environment again in node1 as a grid (refer to "verify the installation environment under the grid identity ")
Statement:
Original works, from "Deep Blue blog" blog, allow reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ).
The author has the right to pursue legal liability for copyright issues.
********** ****************************