Oracle® Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Linux Part Number E10812-03 |
|
|
View PDF |
This chapter describes the procedures for installing Oracle grid infrastructure for a cluster. Oracle grid infrastructure consists of Oracle Clusterware and Automatic Storage Management. If you plan afterward to install Oracle Database with Oracle Real Application Clusters (Oracle RAC), then this is phase one of a two-phase installation.
This chapter contains the following topics:
Before you install Oracle grid infrastructure with the installer, use the following checklist to ensure that you have all the information you will need during installation, and to ensure that you have completed all tasks that must be done before starting your installation. Check off each task in the following list as you complete it, and write down the information needed, so that you can provide it during installation.
Shut Down Running Oracle Processes
You may need to shut down running Oracle processes:
Installing on a node with a standalone database not using Oracle ASM: You do not need to shut down the database while you install Oracle grid infrastructure software.
Installing on a node that already has a standalone Oracle Database 11g release 2 (11.2) installation running on Oracle ASM: Stop the existing Oracle ASM instances. After the software is installed, start the Oracle ASM instances again.
Installing on an Oracle RAC Database node: This installation requires an upgrade of Oracle Clusterware, as Oracle Clusterware is required to run Oracle RAC. As part of the upgrade, you must shut down the database one node at a time as the rolling upgrade proceeds from node to node.
Note:
If you are upgrading an Oracle RAC 9i release 2 (9.2) node, and the TNSLSNR is listening to the same port on which the SCAN listens (default 1521), then the TNSLSNR should be shut down.If a Global Services Daemon (GSD) from Oracle9i Release 9.2 or earlier is running, then stop it before installing Oracle grid infrastructure by running the following command:
$ Oracle_home/bin/gsdctl stop
where Oracle_home
is the Oracle Database home that is running the GSD.
Caution:
If you have an existing Oracle9i release 2 (9.2) Oracle Cluster Manager (Oracle CM) installation, then do not shut down the Oracle CM service. Shutting down the Oracle CM service prevents the Oracle grid infrastructure 11g release 2 (11.2) software from detecting the Oracle9i release 2 node list, and causes failure of the Oracle grid infrastructure installation.Note:
If you receive a warning to stop all Oracle services after starting OUI, then run the commandOracle_home/bin/localconfig delete
where Oracle_home
is the existing Oracle Clusterware home.
Prepare for Automatic Storage Management and Oracle Clusterware Upgrade If You Have Existing Installations
During installation, you can upgrade existing Oracle Clusterware and Oracle ASM installations. You can upgrade an existing standalone Oracle ASM installation if it is on the node where you are installing Oracle grid infrastructure 11g release 2 (11.2).
When all member nodes of the cluster are running Oracle grid infrastructure 11g release 2 (11.2), then the new clusterware becomes the active version.
If you intend to install Oracle RAC, then you must first complete the upgrade to Oracle grid infrastructure 11g release 2 (11.2) on all cluster nodes before you install the Oracle Database 11g release 2 (11.2) version of Oracle RAC.
Note:
All Oracle grid infrastructure upgrades (upgrades of existing Oracle Clusterware and Oracle ASM installations) are out-of-place upgrades.Determine the Oracle Inventory (oraInventory) location
If you have already installed Oracle software on your system, then OUI detects the existing Oracle Inventory (oraInventory) directory from the /etc/oraInst.loc
file, and uses this location. This directory is the central inventory of Oracle software installed on your system. Users who have the Oracle Inventory group as their primary group are granted the OINSTALL privilege to write to the central inventory.
If you are installing Oracle software for the first time on your system, and your system does not have an oraInventory directory, then the installer designates the installation owner's primary group as the Oracle Inventory group. Ensure that this group is available as a primary group for all planned Oracle software installation owners.
Note:
The oraInventory directory cannot be placed on a shared file system.See Also:
The preinstallation chapters in Chapter 2 for information about creating the Oracle Inventory, and completing required system configurationObtain root account access
During installation, you are asked to run configuration scripts as the root
user. You must run these scripts as root
, or be prepared to have your system administrator run them for you. Note that these scripts must be run in sequence. If you attempt to run scripts simultaneously, then the installation will fail.
Decide if you want to install other languages
During installation, you are asked if you want translation of user interface text into languages other than the default, which is English.
Note:
If the language set for the operating system is not supported by the installer, then by default the installer runs in the English language.See Also:
Oracle Database Globalization Support Guide for detailed information on character sets and language configurationDetermine your cluster name, public node names, the SCAN, virtual node names, GNS VIP and planned interface use for each node in the cluster
During installation, you are prompted to provide the public and virtual hostname, unless you use a third party cluster software. In that case, the public hostname information will be filled in. You are also prompted to identify which interfaces are public, private, or interfaces in use for another purpose, such as a network file system.
If you use Grid Naming Service (GNS), then OUI displays the public and virtual hostname addresses labeled as "AUTO" because they are configured automatically.
Note:
If you configure IP addresses manually, then avoid changing host names after you complete the Oracle grid infrastructure installation, including adding or deleting domain qualifications. A node with a new hostname is considered a new host, and must be added to the cluster. A node under the old name will appear to be down until it is removed from the cluster.When you enter the public node name, use the primary host name of each node. In other words, use the name displayed by the hostname
command.
In addition:
Provide a cluster name with the following characteristics:
It must be globally unique throughout your host domain.
It must be at least one character long and less than 15 characters long.
It must consist of the same character set used for host names, in accordance with RFC 1123: Hyphens (-), and single-byte alphanumeric characters (a to z, A to Z, and 0 to 9). If you use third-party vendor clusterware, then Oracle recommends that you use the vendor cluster name.
If you are not using Grid Naming Service (GNS), then determine a virtual host name for each node. A virtual host name is a public node name that is used to reroute client requests sent to the node if the node is down. Oracle Database uses VIPs for client-to-database connections, so the VIP address must be publicly accessible. Oracle recommends that you provide a name in the format hostname-vip. For example: myclstr2-vip
.
Provide SCAN addresses for client access to the cluster. These addresses should be configured as round robin addresses on the domain name service (DNS). Oracle recommends that you supply three SCAN addresses.
Note:
The following is a list of additional information about node IP addresses:For the local node only, OUI automatically fills in public and VIP fields. If your system uses vendor clusterware, then OUI may fill additional fields.
Host names and virtual host names are not domain-qualified. If you provide a domain in the address field during installation, then OUI removes the domain from the address.
Interfaces identified as private for private IP addresses should not be accessible as public interfaces. Using public interfaces for Cache Fusion can cause performance problems.
Identify public and private interfaces. OUI configures public interfaces for use by public and virtual IP addresses, and configures private IP addresses on private interfaces.
The private subnet that the private interfaces use must connect all the nodes you intend to have as cluster members.
Identify shared storage for Oracle Clusterware files and prepare storage if necessary
During installation, you are asked to provide paths for the following Oracle Clusterware files. These files must be shared across all nodes of the cluster, either on Automatic Storage Management, or on a supported file system:
Voting disks are files that Oracle Clusterware uses to verify cluster node membership and status.
Voting disk files must be owned by the user performing the installation (oracle
or grid
), and must have permissions set to 640.
Oracle Cluster Registry files (OCR) contain cluster and database configuration information for Oracle Clusterware.
Before installation, OCR files must be owned by the user performing the installation (grid
or oracle
). That installation user must have oinstall
as its primary group. During installation, OUI changes ownership of the OCR files to root
.
If your file system does not have external storage redundancy, then Oracle recommends that you provide two additional locations for the OCR disk, and two additional locations for the voting disks, for a total of six partitions (three for OCR, and three for voting disks). Creating redundant storage locations protects the OCR and voting disk in the event of a failure. To completely protect your cluster, the storage locations given for the copies of the OCR and voting disks should have completely separate paths, controllers, and disks, so that no single point of failure is shared by storage locations.
When you select to store the OCR on Oracle ASM, the default configuration is to create the OCR on one ASM diskgroup. If you create the disk group with normal or high redundancy, then the OCR is protected from physical disk failure.
To protect the OCR from logical disk failure, create another ASM diskgroup after installation and add the OCR to the second diskgroup using the ocrconfig
command.
See Also:
Chapter 2, "Advanced Installation Oracle Grid Infrastructure for a Cluster Preinstallation Tasks" and Oracle Database Storage Administrator's Guide for information about adding disks to diskgroupsEnsure cron jobs do not run during installation
If the installer is running when daily cron jobs start, then you may encounter unexplained installation problems if your cron job is performing cleanup, and temporary files are deleted before the installation is finished. Oracle recommends that you complete installation before daily cron jobs are run, or disable daily cron jobs that perform cleanup until after the installation is completed.
Have IPMI Configuration completed and have IPMI administrator account information
If you intend to use IPMI, then ensure BMC interfaces are configured, and have an administration account username and password to provide when prompted during installation.
For nonstandard installations, if you must change configuration on one or more nodes after installation (for example, if you have different administrator usernames and passwords for BMC interfaces on cluster nodes), then decide if you want to reconfigure the BMC interface, or modify IPMI administrator account information after installation as described in Chapter 5.
Ensure that the Oracle home path you select for the grid infrastructure home uses only ASCII characters
This restriction includes installation owner user names, which are used as a default for some home paths, as well as other directory names you may select for paths.
Unset Oracle environment variables. If you have set ORA_CRS_HOME as an environment variable, then unset it before starting an installation or upgrade. You should never use ORA_CRS_HOME as an environment variable.
If you have had an existing installation on your system, and you are using the same user account to install this installation, then unset the following environment variables: ORA_CRS_HOME; ORACLE_HOME; ORA_NLS10; TNS_ADMIN
This section provides you with information about how to use the installer to install Oracle grid infrastructure. It contains the following sections:
Complete the following steps to install grid infrastructure (Oracle Clusterware and Automatic Storage Management) on your cluster. At any time during installation, if you have a question about what you are being asked to do, click the Help button on the OUI page.
Change to the /Disk1 directory on the installation media, or where you have downloaded the installation binaries, and start the runInstaller
command. For example:
$ cd /home/grid/oracle_sw/Disk1 $ ./runInstaller
Select Typical or Advanced installation.
Provide information or run scripts as root
when prompted by OUI. If you need assistance during installation, click Help. Click Details to see the log file.
Note:
You must run theroot.sh
script on the first node and wait for it to finish. If your cluster has four or more nodes, then root.sh
can be run concurrently on all nodes but the first and last. As with the first node, the root.sh
script on the last node must be run separately.After you run root.sh
on all the nodes, OUI runs Net Configuration Assistant (netca
) and Cluster Verification Utility. These programs run without user intervention.
Automatic Storage Management Configuration Assistant (asmca
) configures Oracle ASM during the installation.
When you have verified that your Oracle grid infrastructure installation is completed successfully, you can either use it to maintain high availability for other applications, or you can install an Oracle database.
If you intend to install Oracle Database 11g release 2 (11.2) with Oracle RAC, then refer to Oracle Real Application Clusters Installation Guide for Linux.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for information about using cloning and node addition procedures, and Oracle Clusterware Administration and Deployment Guide for cloning Oracle grid infrastructureDuring installation of grid infrastructure, you are given the option either of providing cluster configuration information manually, or of using a cluster configuration file. A cluster configuration file is a text file that you can create before starting OUI, which provides OUI with information about the cluster name and node names that it requires to configure the cluster.
Oracle suggests that you consider using a cluster configuration file if you intend to perform repeated installations on a test cluster, or if you intend to perform an installation on many nodes.
To create a cluster configuration file manually:
On the installation media, navigate to the directory /response
.
Using a text editor, open the response file crs_install.rsp
.
Follow the directions in that section for creating a cluster configuration file.
The following is a list of additional information to note about installation:
Note:
Oracle recommends that only advanced users should perform the software-only installation, as this installation method provides no validation of the installation, and as this installation option requires manual postinstallation steps to enable the grid infrastructure software.A software-only installation consists of installing Oracle grid infrastructure for a cluster on one node, configuring it, and then running the installer on each node that you want to have as a cluster member node, and then joining other nodes to the cluster.
To perform a software-only installation:
Start the runInstaller
command from the relevant directory on the Oracle Database 11g release 2 (11.2) installation media or download directory. For example:
$ cd /home/grid/oracle_sw/Disk1 $ ./runInstaller
Complete a software-only installation of Oracle grid infrastructure on the first node.
When the software has been installed, run the orainstRoot.sh
script when prompted.
The root.sh
script output provides information about how to proceed, depending on the configuration you plan to complete in this installation. Follow the output of the root.sh
script, and run the command Grid_home/crs/install/roothas.pl
or Grid_home/crs/install/rootcrs.pl
as required. For example:
$ cd /u01/app/grid/11/2.0/crs/install $ perl rootcrs.pl
Use Grid_home/crs/install/roothas.pl
to configure Oracle Grid Infrastructure for a standalone server. Use Grid_home/crs/install/rootcrs.p
l to configure Oracle Grid Infrastructure for a cluster.
Note:
Oracle grid infrastructure can be used for standalone servers and for clusters. However, if you first configure Oracle grid infrastructure for a standalone server, and then decide you want to configure Oracle grid infrastructure for a cluster, then you must re-link the Oracle software before you runrootcrs.pl
to configure Oracle grid infrastructure for a clusters. The Install Grid Infrastructure Software Only installation option does not assume a cluster configuration, and therefore does not automatically link the Oracle RAC option.To relink Oracle Clusterware with the Oracle RAC option enabled, run commands similar to the following (in this example, the Grid home is /u01/app/grid/11.2.0):
$ cd /u01/app/grid/11.2.0 $ set env ORACLE_HOME pwd $ cd rdbms/lib $ make -f ins_rdmbs.mk rac_on ioracle
On each remaining node, verify that the cluster node meets installation requirements using the command runcluvfy.sh stage -pre crsinst
. Ensure that you have completed all storage and server preinstallation requirements.
Use Oracle Universal Installer as described in steps 1 through 4 to install the Oracle grid infrastructure software on every remaining node that you want to include in the cluster, and complete a software-only installation of Oracle grid infrastructure on every node.
If required relink the Oracle RAC binaries as described in step 5 on every node where you installed the Oracle grid infrastructure software.
When you install or copy Oracle grid infrastructure software on any node, you can defer configuration for a later time. This section provides the procedure for completing configuration after the software is installed or copied on nodes.
To configure and activate software-only grid infrastructure for a cluster installations, complete the following tasks:
Using a text editor, modify the template file /
Grid_home
/install/crs/crsconfig_params
to create a parameter file for the installer to use to configure the cluster. For example:
ORACLE_OWNER=grid ORA_DBA_GROUP=oinstall ORA_ASM_GROUP=asm LANGUAGE_ID='AMERICAN_AMERICA.WE8ISO8859P1' ORACLE_HOME=/u01/crs ORACLE_BASE=/u01/crsbase OCR_LOCATIONS=/u02/stor1/ocr,/u03/stor2/ocr CLUSTER_NAME=example_cluster HOST_NAME_LIST=node1,node2 NODE_NAME_LIST=node1,node2 VOTING_DISKS=/u02/stor1/vdsk,/u03/stor2/vdsk,/u04/stor3/vdsk CRS_STORAGE_OPTION=2 CRS_NODEVIPS='node1-vip/255.255.252.0/eth0,node2-vip/255.255.252.0/eth0' NODELIST=node1,node2 NETWORKS="eth0"/192.0.2.64:public,"eth1"/192.0.2.65:cluster_interconnect SCAN_NAME=example-scan.domain SCAN_PORT=1522
On all nodes, place the crsconfig_params
file in the path Grid_home
/crs/install/crsconfig_params
, where Grid_home
is the path to the Oracle grid infrastructure home for a cluster. For example:
$ cp crsconfig_params /u01/app/11.2.0/grid/crs/install/crsconfig_params
After configuring the crsconfig_params file, log in as root, and run the script Grid_home/crs/install/rootcrs.p
l, using the following syntax:.
Grid_home/perl/lib/perl -IGRID_HOME/perl/lib -IGrid_home/crs/install Grid_home/crs/install/rootcrs.pl
For example:
# /u01/app/grid/11.2.0/perl/lib/perl -I/u01/app/grid/11.2.0/perl/lib \ -I/u01/app/grid/11.2.0/crs/install /u01/app/grid/11.2.0/crs/install/rootcrs.pl
Change directory to Grid_home
/oui/bin
, where Grid_home
is the path of the Grid Infrastructure home on each cluster member node.
Enter the following command syntax, where Grid_home
is the path of the Grid Infrastructure home on each cluster member node, and node_list
is a comma-delimited list of nodes on which you want the software enabled:
runInstaller -updateNodeList ORACLE_HOME=Grid_home -defaultHomeName
For example
$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid -defaultHomeName "CLUSTER_NODES={node_list}" CRS=TRUE
To enable the Oracle Clusterware installation on the local node only, enter the following command, where Grid_home
is the Grid home on the local node, and node_list
is a comma-delimited list of nodes on which you want the software enabled:
runInstaller -updateNodeList ORACLE_HOME=Grid_home -defaultHomeName "CLUSTER_NODES={node_list}" CRS=TRUE
For example:
$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid -defaultHomeName "CLUSTER_NODES={node_list}" CRS=TRUE
After installation, log in as root
, and use the following command syntax on each node to confirm that your Oracle Clusterware installation is installed and running correctly:
crsctl check crs
For example:
$ crsctl check crs CRS-4638: Oracle High Availability Services is online CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online
Caution:
After installation is complete, do not remove manually or run cron jobs that remove/tmp/.oracle
or /var/tmp/.oracle
or its files while Oracle Clusterware is up. If you remove these files, then Oracle Clusterware could encounter intermittent hangs, and you will encounter error CRS-0184: Cannot communicate with the CRS daemon.If you installed the OCR and voting disk files on Oracle ASM, then use the following command syntax as the Grid Infrastructure installation owner to confirm that your Oracle ASM installation is running:
srvctl status asm
For example:
$ srvctl status asm ASM instance +ASM1 is running on node node1. ASM instance +ASM2 is running on node node2.
Oracle ASM is running only if it is needed for Oracle Clusterware files. If you have not installed OCR and voting disks files on Oracle ASM, then the Oracle ASM instance should be down.
Note:
To manage Oracle ASM or Oracle Net 11g release 2 (11.2) or later installations, use thesrvctl
binary in the Oracle grid infrastructure home for a cluster (Grid home). If you have Oracle Real Application Clusters or Oracle Database installed, then you cannot use the srvctl
binary in the database home to manage Oracle ASM or Oracle Net.