Oracle® Grid Infrastructure Installation Guide 11g Release 2 (11.2) for IBM AIX on POWER Systems (64-Bit) Part Number E24614-03 |
|
|
PDF · Mobi · ePub |
This chapter describes the storage configuration tasks that you must complete before you start the installer to install Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM), and that you must complete before adding an Oracle Real Application Clusters (Oracle RAC) installation to the cluster.
This chapter contains the following topics:
This section describes supported options for storing Oracle Grid Infrastructure for a cluster storage options. It contains the following sections:
Overview of Oracle Clusterware and Oracle RAC Storage Options
General Storage Considerations for Oracle Grid Infrastructure and Oracle RAC
Using Logical Volume Managers with Oracle Grid Infrastructure and Oracle RAC
See Also:
The Oracle Certification site on My Oracle Support for the most current information about certified storage options:https://support.oracle.com
There are two ways of storing Oracle Clusterware files:
Oracle Automatic Storage Management (Oracle ASM): You can install Oracle Clusterware files (OCR and voting disks) in Oracle ASM diskgroups.
Oracle ASM is the required database storage option for Typical installations, and for Standard Edition Oracle RAC installations. It is an integrated, high-performance database file system and disk manager for Oracle Clusterware and Oracle Database files. It performs striping and mirroring of database files automatically.
Only one Oracle ASM instance is permitted for each node regardless of the number of database instances on the node.
A supported shared file system: Supported file systems include the following:
General Parallel File System (GPFS): A cluster file system for AIX that provides concurrent file access
A supported cluster file system. Note that if you intend to use a cluster file system for your data files, then you should create partitions large enough for the database files when you create partitions for Oracle Clusterware.
See Also:
The Certification page on My Oracle Support for supported cluster file systemsNetwork File System (NFS): Note that if you intend to use NFS for your data files, then you should create partitions large enough for the database files when you create partitions for Oracle Grid Infrastructure. NFS mounts differ for software binaries, Oracle Clusterware files, and database files.
Note:
You can no longer use OUI to install Oracle Clusterware or Oracle Database files on raw disks.See Also:
My Oracle Support for supported file systems and NFS or NAS filersWhen upgrading your Oracle9i release 9.2 Oracle RAC environment to Oracle Database 11g Release 2 (11.2), you are prompted to specify one or more voting disks during the Oracle Clusterware installation. You must specify a new location for the voting disk in Oracle Database 11g Release 1 (11.1). You cannot reuse the old Oracle9i release 9.2 quorum disk for this purpose.
When you have determined your disk storage options, you must perform the following tasks in the order listed:
1: Configure shared storage for Oracle Clusterware files
To use a file system (local or GPFS) for Oracle Clusterware files, refer to Shared File System Storage Configuration
2: Configure storage for Oracle Database files and recovery files
To use a file system for database or recovery file storage, refer to Section 3.2, "Shared File System Storage Configuration", and ensure that in addition to the volumes you create for Oracle Clusterware files, you also create additional volumes with sizes sufficient to store database files.
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) provides a general purpose file system. You can place Oracle Database binaries on this system, but you cannot place Oracle data files or Oracle Clusterware files on Oracle ACFS. Note the following about Oracle ACFS:
Oracle Restart does not support root-based Oracle Clusterware resources. For this reason, the following restrictions apply if you run Oracle ACFS on an Oracle Restart Configuration
You must manually load and unload Oracle ACFS drivers.
You must manually mount and unmount Oracle ACFS file systems, after the Oracle ASM instance is running
You can place Oracle ACFS database home file systems into the Oracle ACFS mount registry, along with other registered Oracle ACFS file systems.
You cannot put Oracle Clusterware binaries and files on Oracle ACFS.
You cannot put Oracle Database files on Oracle ACFS.
Oracle ACFS provides a general purpose file system for other files.
Note:
On AIX, Oracle ACFS has the following installation requirements:The AIX version must be AIX 7.1, or on AIX 6.1 TL4 SP2, or later updates to AIX 6.1 on PPC64.
The system must be running in the RBAC mode, which is the default.
The owner of the Oracle Grid Infrastructure installation must be a local user.
For all installations, you must choose the storage option to use for Oracle Grid Infrastructure (Oracle Clusterware and Oracle ASM), and Oracle Real Application Clusters databases (Oracle RAC). To enable automated backups during the installation, you must also choose the storage option to use for recovery files (the Fast Recovery Area). You do not have to use the same storage option for each file type.
Oracle Clusterware voting disks are used to monitor cluster node status, and Oracle Cluster Registry (OCR) files contain configuration information about the cluster. You can place voting disks and OCR files either in an ASM diskgroup, or on a cluster file system or shared network file system. Storage must be shared; any node that does not have access to an absolute majority of voting disks (more than half) will be restarted.
Use the following guidelines when choosing the storage options to use for each file type:
You can choose any combination of the supported storage options for each file type provided that you satisfy all requirements listed for the chosen storage options.
Oracle recommends that you choose Oracle ASM as the storage option for database and recovery files.
For Standard Edition Oracle RAC installations, Oracle ASM is the only supported storage option for database or recovery files.
If you intend to use Oracle ASM with Oracle RAC, and you are configuring a new Oracle ASM instance, then your system must meet the following conditions:
All nodes on the cluster have Oracle Clusterware and Oracle ASM 11g release 2 (11.2) installed as part of an Oracle Grid Infrastructure for a cluster installation.
Any existing Oracle ASM instance on any node in the cluster is shut down.
Raw disks are supported only when upgrading an existing installation using the disks already configured. On new installations, using disks is not supported by Oracle Automatic Storage Management Configuration Assistant (ASMCA) or Oracle Universal Installer (OUI), but is supported by the software if you perform manual configuration.
See Also:
Oracle Database Upgrade Guide for information about how to prepare for upgrading an existing databaseIf you do not have a storage option that provides external file redundancy, then you must configure at least three voting disk areas to provide voting disk redundancy.
During Oracle Grid Infrastructure installation, you can create one disk group. After the Oracle Grid Infrastructure installation, you can create additional disk groups using ASMCA, SQL*Plus, or ASMCMD. Note that with Oracle Database 11g release 2 (11.2) and later releases, Oracle Database Configuration Assistant (DBCA) does not have the functionality to create disk groups for Oracle ASM.
If you install Oracle Database or Oracle RAC after you install Oracle Grid Infrastructure, then you can either use the same disk group for database files, OCR, and voting disk files, or you can use different disk groups. If you create multiple disk groups before installing Oracle RAC or before creating a database, then you can decide to do one of the following:
Place the data files in the same disk group as the Oracle Clusterware files.
Use the same Oracle ASM disk group for data files and recovery files.
Use different disk groups for each file type.
If you create only one disk group for storage, then the OCR and voting disk files, database files, and recovery files are contained in the one disk group. If you create multiple disk groups for storage, then you can choose to place files in different disk groups.
Note:
The Oracle ASM instance that manages the existing disk group should be running in the Grid home.See Also:
Oracle Database Storage Administrator's Guide for information about creating disk groups
Oracle Grid Infrastructure and Oracle RAC only support cluster-aware volume managers. This means, the volume manager that you want to use comes with a certain vendor cluster solution. To confirm that a volume manager you want to use is supported, look under the Certifications tab on My Oracle Support whether the associated cluster solution is certified for Oracle RAC. My Oracle Support is available at the following URL:
https://support.oracle.com
The following table shows the storage options supported for storing Oracle Clusterware and Oracle RAC files.
Table 3-1 Supported Storage Options for Oracle Clusterware and Oracle RAC
Use the following guidelines when choosing storage options:
You can choose any combination of the supported storage options for each file type provided that you satisfy all requirements listed for the chosen storage options.
You can use Oracle ASM 11g release 2 (11.2) and later to store Oracle Clusterware files. You cannot use prior Oracle ASM releases to do this.
If you do not have a storage option that provides external file redundancy, then you must configure at least three voting disk locations and at least three Oracle Cluster Registry locations to provide redundancy.
When you have determined your disk storage options, configure shared storage:
To use a file system, refer to Section 3.2, "Shared File System Storage Configuration."
To use Oracle Automatic Storage Management, refer to Section 3.3, "Oracle Automatic Storage Management Storage Configuration."
The installer does not suggest a default location for the Oracle Cluster Registry (OCR) or the Oracle Clusterware voting disk. If you choose to create these files on a file system, then review the following sections to complete storage requirements for Oracle Clusterware files:
Deciding to Use a Cluster File System for Oracle Clusterware Files
Enabling Direct NFS Client Oracle Disk Manager Control of NFS
Configuring New Oracle Clusterware Volume Group Raw Logical Volumes
Activating the Volume Group in Concurrent Mode on All Cluster Nodes
Creating Directories for Oracle Clusterware Files on Shared File Systems
Creating Directories for Oracle Database Files on Shared File Systems
Disabling Direct NFS Client Oracle Disk Management Control of NFS
To use a shared file system for Oracle Clusterware, Oracle ASM, and Oracle RAC, the file system must comply with the following requirements:
To use a cluster file system, it must be a supported cluster file system. Refer to My Oracle Support (https://support.oracle.com
) for a list of supported cluster file systems.
To use an NFS file system, it must be on a supported NAS device. Log in to My Oracle Support, and click the Certification tab to find the most current information about supported NAS devices:
If you choose to place your Oracle Cluster Registry (OCR) files on a shared file system, then Oracle recommends that one of the following is true:
The disks used for the file system are on a highly available storage device, (for example, a RAID device).
At least two file systems are mounted on separate disks, and use the features of Oracle Clusterware 11g release 2 (11.2) to provide redundancy for the OCR.
If you choose to place your database files on a shared file system, then one of the following should be true:
The user account with which you perform the installation (oracle
or grid
) must have write permissions to create the files in the path that you specify.
Note:
Upgrading from Oracle9i release 2 using the raw disk or shared file for the OCR that you used for the SRVM configuration repository is not supported.If you are upgrading Oracle Clusterware, and your existing cluster uses 100 MB OCR and 20 MB voting disk partitions, then you must extend these partitions to at least 300 MB. Oracle recommends that you do not use partitions, but instead place OCR and voting disks in disk groups marked as QUORUM disk groups.
All storage products must be supported by both your server and storage vendors.
Use Table 3-2 and Table 3-3 to determine the minimum size for shared file systems:
Table 3-2 Oracle Clusterware Shared File System Volume Size Requirements
File Types Stored | Number of Volumes | Volume Size |
---|---|---|
Voting disks with external redundancy |
3 |
At least 300 MB for each voting disk volume. |
Oracle Cluster Registry (OCR) with external redundancy |
1 |
At least 300 MB for each OCR volume |
Oracle Clusterware files (OCR and voting disks) with redundancy provided by Oracle software. |
1 |
At least 300 MB for each OCR volume At least 300 MB for each voting disk volume |
Table 3-3 Oracle RAC Shared File System Volume Size Requirements
File Types Stored | Number of Volumes | Volume Size |
---|---|---|
Oracle Database files |
1 |
At least 1.5 GB for each volume |
Recovery files Note: Recovery files must be on a different volume than database files |
1 |
At least 2 GB for each volume |
In Table 3-2 and Table 3-3, the total required volume size is cumulative. For example, to store all Oracle Clusterware files on the shared file system with normal redundancy, you should have at least 2 GB of storage available over a minimum of three volumes (three separate volume locations for the OCR and two OCR mirrors, and one voting disk on each volume). You should have a minimum of three physical disks, each at least 500 MB, to ensure that voting disks and OCR files are on separate physical disks. If you add Oracle RAC using one volume for database files and one volume for recovery files, then you should have at least 3.5 GB available storage over two volumes, and at least 5.5 GB available total for all volumes.
Note:
If you create partitions on shared partitions withfdisk
by specifying a device size, such as +300M
, the actual device created may be smaller than the size requested, based on the cylinder geometry of the disk. This is due to current fdisk restrictions. Oracle recommends that you partition the entire disk that you allocate for use by Oracle ASM.For new installations, Oracle recommends that you use Oracle Automatic Storage Management (Oracle ASM) to store voting disk and OCR files.
Direct NFS is an alternative to using kernel-managed NFS. This section contains the following information about Direct NFS:
With Oracle Database 11g release 2 (11.2), instead of using the operating system kernel NFS client, you can configure Oracle Database to access NFS V3 servers directly using an Oracle internal Direct NFS client.
To enable Oracle Database to use Direct NFS, the NFS file systems must be mounted and available over regular NFS mounts before you start installation. Direct NFS manages settings after installation. You should still set the kernel mount options as a backup, but for normal operation, Direct NFS will manage NFS mounts.
Refer to your vendor documentation to complete NFS configuration and mounting.
Some NFS file servers require NFS clients to connect using reserved ports. If your filer is running with reserved port checking, then you must disable it for Direct NFS to operate. To disable reserved port checking, consult your NFS file server documentation.
Note:
Use NFS servers supported for Oracle RAC. Refer to the following URL for support information:If you use Direct NFS, then you can choose to use a new file specific for Oracle data file management, oranfstab
, to specify additional options specific for Oracle Database to Direct NFS. For example, you can use oranfstab
to specify additional paths for a mount point. You can add the oranfstab
file either to /etc
or to $ORACLE_HOME/dbs
.
With shared Oracle homes, when the oranfstab
file is placed in $ORACLE_HOME/dbs
, the entries in the file are specific to a single database. In this case, all nodes running an Oracle RAC database use the same $ORACLE_HOME/dbs/oranfstab
file. In non-shared Oracle RAC installs, oranfstab
must be replicated on all nodes.
When the oranfstab
file is placed in /etc
, then it is globally available to all Oracle databases, and can contain mount points used by all Oracle databases running on nodes in the cluster, including standalone databases. However, on Oracle RAC systems, if the oranfstab
file is placed in /etc
, then you must replicate the file /etc/oranfstab
file on all nodes, and keep each /etc/oranfstab
file synchronized on all nodes, just as you must with the /etc/fstab
file.
See Also:
Section 3.2.3.3, "Mounting NFS Storage Devices with Direct NFS"for information about configuring/etc/fstab
In all cases, mount points must be mounted by the kernel NFS system, even when they are being served using Direct NFS.
Direct NFS determines mount point settings to NFS storage devices based on the configurations in /etc/mtab
, which are changed with configuring the /etc/fstab
file.
Direct NFS searches for mount entries in the following order:
$ORACLE_HOME/dbs/oranfstab
/etc/oranfstab
/etc/mtab
Direct NFS uses the first matching entry found.
Oracle Database is not shipped with Direct NFS enabled by default. To enable Direct NFS, complete the following steps:
Change the directory to $ORACLE_HOME/rdbms/lib
.
Enter the following command:
make -f ins_rdbms.mk dnfs_on
Note:
You can have only one active Direct NFS implementation for each instance. Using Direct NFS on an instance will prevent another Direct NFS implementation.If Oracle Database uses Direct NFS mount points configured using oranfstab
, then it first verifies kernel NFS mounts by cross-checking entries in oranfstab
with operating system NFS mount points. If a mismatch exists, then Direct NFS logs an informational message, and does not operate.
If Oracle Database cannot open an NFS server using Direct NFS, then Oracle Database uses the platform operating system kernel NFS client. In this case, the kernel NFS mount options must be set up as defined in Section 3.2.8, "Configuring Raw Logical Volumes for Oracle Clusterware." Additionally, an informational message is logged into the Oracle alert and trace files indicating that Direct NFS could not be established.
Section 3.1.6, "Supported Storage Options" lists the file types that are supported by Direct NFS.
The Oracle files resident on the NFS server that are served by the Direct NFS Client are also accessible through the operating system kernel NFS client.
See Also:
Oracle Database Administrator's Guide for guidelines to follow regarding managing Oracle database data files created with Direct NFS or kernel NFSDirect NFS can use up to four network paths defined in the oranfstab
file for an NFS server. The Direct NFS client performs load balancing across all specified paths. If a specified path fails, then Direct NFS reissues I/O commands over any remaining paths.
Use the following SQL*Plus views for managing Direct NFS in a cluster environment:
gv$dnfs_servers: Shows a table of servers accessed using Direct NFS.
gv$dnfs_files: Shows a table of files currently open using Direct NFS.
gv$dnfs_channels: Shows a table of open network paths (or channels) to servers for which Direct NFS is providing files.
gv$dnfs_stats: Shows a table of performance statistics for Direct NFS.
Note:
Usev$
views for single instances, and gv$
views for Oracle Clusterware and Oracle RAC storage.Network-attached storage (NAS) systems use NFS to access data. You can store data files on a supported NFS system.
NFS file systems must be mounted and available over NFS mounts before you start installation. Refer to your vendor documentation to complete NFS configuration and mounting.
Be aware that the performance of Oracle software and databases stored on NAS devices depends on the performance of the network connection between the Oracle server and the NAS device.
For this reason, Oracle recommends that you connect the server to the NAS device using a private dedicated network connection, which should be Gigabit Ethernet or better.
If you are using NFS for the Grid home or Oracle RAC home, then you must set up the NFS mounts on the storage so that they allow root
on the clients mounting to the storage to be considered root
instead of being mapped to an anonymous user, and allow root
on the client server to create files on the NFS filesystem that are owned by root
.
If you are using NFS, then you must set the values for the NFS buffer size parameters rsize
and wsize
to 32768. The NFS mount options for binaries are:
rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,timeo=600
The NFS client-side mount options for Oracle Clusterware files (OCR and voting disk files) are:
cio,rw,bg,hard,intr,rsize=32768,wsize=32768,tcp,noac,vers=3,timeo=600
The NFS client-side mount options for Oracle Database datafiles are:
cio,rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,noac,vers=3,timeo=600
Update the /etc/filesystems
file on each node with entries similar to the following:
/NFS_mount: dev = "/vol/gridhome" vfs = nfs nodename = /vol/gridhome mount = true options = rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,timeo=600 account = false /NFS_mount: dev = "/vol/CWfiles" vfs = nfs nodename = /vol/CWfiles mount = true options = cio,rw,bg,hard,intr,rsize=32768,wsize=32768,tcp,noac,vers=3,timeo=600 account = false /NFS_mount: dev = "/vol/datafiles" vfs = nfs nodename = /u02/app/oracle/data mount = true options = cio,rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,noac,vers=3,timeo=600 account = false
Note that mount point options are different for Oracle software binaries, Oracle Clusterware files (OCR and voting disks), and data files.
If you want to create a mount point for binaries only, then enter the following line for a binaries mount point:
nfs_server:/vol/grid /u01/oracle/grid nfs -yes
rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,timeo=600
On NFS, you can obtain root
access for clients writing to the storage by enabling no_root_squash
on the server side. For example, to set up Oracle Clusterware file storage in the path /vol/grid
, with nodes node1, node 2, and node3 in the domain mycluster.example.com
, add a line similar to the following to the /etc/exports
file:
/vol/grid/ node1.mycluster.example.com(rw,no_root_squash) node2.mycluster.example.com(rw,no_root_squash) node3.mycluster.example.com (rw,no_root_squash)
If the domain or DNS is secure so that no unauthorized system can obtain an IP address on it, then you can grant root
access by domain, rather than specifying particular cluster member nodes:
For example:
/vol/grid/ *.mycluster.example.com(rw,no_root_squash)
Oracle recommends that you use a secure DNS or domain, and grant root
access to cluster member nodes using the domain, as using this syntax allows you to add or remove nodes without the need to reconfigure the NFS server.
If you use Grid Naming Service (GNS), then the subdomain allocated for resolution by GNS within the cluster is a secure domain. Any server without a correctly signed Grid Plug and Play (GPnP) profile cannot join the cluster, so an unauthorized system cannot obtain or use names inside the GNS subdomain.
Caution:
Grantingroot
access by domain can be used to obtain unauthorized access to systems. System administrators should refer to their operating system documentation for the risks associated with using no_root_squash
.After changing /etc/exports
, reload the file system mount using the following command:
# /usr/sbin/exportfs -avr
See Also:
My Oracle Support bulletin 359515.1, "Mount Options for Oracle Files When Used with NAS Devices" for the most current information about mount options, available from the following URL:Note:
Refer to your storage vendor documentation for additional information about mount options.Complete the following procedure to enable Direct NFS:
Create an oranfstab
file with the following attributes for each NFS server to be accessed using Direct NFS:
Server: The NFS server name.
Local: Up to four paths on the database host, specified by IP address or by name, as displayed using the ifconfig
command run on the database host.
Path: Up to four network paths to the NFS server, specified either by IP address, or by name, as displayed using the ifconfig
command on the NFS server.
Export: The exported path from the NFS server.
Mount: The corresponding local mount point for the exported volume.
Mnt_timeout: Specifies (in seconds) the time Direct NFS client should wait for a successful mount before timing out. This parameter is optional. The default timeout is 10 minutes (600
).
Dontroute: Specifies that outgoing messages should not be routed by the operating system, but instead sent using the IP address to which they are bound.
The examples that follow show three possible NFS server entries in oranfstab
. A single oranfstab
can have multiple NFS server entries.
Example 3-1 Using Local and Path NFS Server Entries
The following example uses both local and path. Since they are in different subnets, we do not have to specify dontroute
.
server: MyDataServer1 local: 192.0.2.0 path: 192.0.2.1 local: 192.0.100.0 path: 192.0.100.1 export: /vol/oradata1 mount: /mnt/oradata1
Example 3-2 Using Local and Path in the Same Subnet, with dontroute
The following example shows local and path in the same subnet. dontroute
is specified in this case:
server: MyDataServer2 local: 192.0.2.0 path: 192.0.2.128 local: 192.0.2.1 path: 192.0.2.129 dontroute export: /vol/oradata2 mount: /mnt/oradata2
Example 3-3 Using Names in Place of IP Addresses, with Multiple Exports
server: MyDataServer3 local: LocalPath1 path: NfsPath1 local: LocalPath2 path: NfsPath2 local: LocalPath3 path: NfsPath3 local: LocalPath4 path: NfsPath4 dontroute export: /vol/oradata3 mount: /mnt/oradata3 export: /vol/oradata4 mount: /mnt/oradata4 export: /vol/oradata5 mount: /mnt/oradata5 export: /vol/oradata6 mount: /mnt/oradata6
By default, Direct NFS is installed in a disabled state. To enable Direct NFS, complete the following steps on each node. If you use a shared Grid home for the cluster, then complete the following steps in the shared Grid home:
Log in as the Oracle Grid Infrastructure installation owner.
Change directory to Grid_home
/rdbms/lib
.
Enter the following commands:
$ make -f ins_rdbms.mk dnfs_on
This section contains the following topics:
See Also:
My Oracle Support for additional information about HACMP deployment and HACMP certificationOverview of Requirements for Using HACMP with Oracle Clusterware
Upgrading an Existing Oracle Clusterware and HACMP Installation
You must define one Multi-node Disk Heartbeat (MNDHB) network for each Oracle Clusterware voting disk. Each MNDHB and voting disk pair must be located on a single hard disk, separate from the other pairs. You must also configure MNDHB so that the node is halted if access is lost to a quorum of the MNDHB networks in the enhanced concurrent volume group.
To reduce the likelihood of a cluster partition, IBM recommends that HACMP is deployed with multiple IP networks and at least one non-IP network. The non-IP networks can be implemented using RS232 or disk heart-beating. For systems using Oracle RAC and HACMP enhanced concurrent resources (enhanced concurrent logical volumes) for database storage, you must configure MNDHB networks.
Install, configure and have HACMP running before installing Oracle Clusterware. For an Oracle RAC configuration, do not use HACMP for IP failovers on the Oracle RAC network interfaces (public, VIP or private). These network interfaces should not be configured to use HACMP IP failover, as Oracle Clusterware manages VIP failovers for Oracle RAC. The Oracle RAC network interfaces are bound to individual nodes and Oracle RAC instances. Problems can occur with Oracle Clusterware if HACMP reconfigures IP addresses over different interfaces, or fails over addresses across nodes. You only can use HACMP for failover of IP address on Oracle RAC nodes if Oracle RAC does not use these addresses.
Complete the following tasks, replacing each term in italics with the appropriate response for your system, or carrying out the action described and entering the appropriate response for your image:
Start HACMP.
Enter the following command to ensure that the HACMP clcomdES
daemon is running:
# lssrc -s clcomdES
If the daemon is not running, then start it using the following command:
# startsrc –s clcomdES
Ensure that your versions of HACMP and AIX meet the system requirements listed in Section 2.7, "Identifying the Software Requirements".
Create HACMP cluster and add the Oracle Clusterware nodes. For example:
# smitty cm_add_change_show_an_hacmp_cluster.dialog
* Cluster Name [mycluster]
Create an HACMP cluster node for each Oracle Clusterware node. For example:
# smitty cm_add_a_node_to_the_hacmp_cluster_dialog
* Node Name [mycluster_node1]
Communication Path to Node []
Create HACMP Ethernet heartbeat networks. The HACMP configuration requires network definitions. Select NO for the IP address takeover for these networks, since they are used by Oracle Clusterware.
Create at least two network definitions: one for the Oracle public interface and a second one for the Oracle private (cluster interconnect) network. Additional Ethernet heartbeat networks can be added if desired.
For example:
# smitty cm_add_a_network_to_the_hacmp_cluster_select - select ether network * Network Name [my_network_name] * Network Type ether * Netmask [my.network.netmask.here] * Enable IP Address Takeover via IP Aliases [No] IP Address Offset for Heart beating over IP Aliases []
For each of the networks added in the previous step, define all of the IP names for each Oracle Clusterware node associated with that network, including the public, private and VIP names for each Oracle Clusterware node. For example:
# smitty cm_add_communication_interfaces_devices.select - select: Add Pre-defined Communication Interfaces and Devices / Communication Interfaces / desired network * IP Label/Address [node_ip_address] * Network Type ether * Network Name some_network_name * Node Name [my_node_name] Network Interface []
Create an HACMP resource group for the enhanced concurrent volume group resource with the following options:
# smitty config_resource_group.dialog.custom * Resource Group Name [my_resource_group_name] * Participating Nodes (Default Node Priority) [mynode1,mynode2,mynode3] Startup Policy Online On All Available Nodes Fallover Policy Bring Offline (On Error Node Only) Fallback Policy Never Fallback
Create an AIX enhanced concurrent volume group (Big VG, or Scalable VG) using either the command smitty mkvg
, or using command lines. The VG must contain at least one hard disk for each voting disk. You must configure at least three voting disks.
In the following example, where you see default, accept the default response:
# smitty _mksvg VOLUME GROUP name [my_vg_name] PP SIZE in MB * PHYSICAL VOLUME names [mydisk1,mydisk2,mydisk3] Force the creation of a volume group? no Activate volume group AUTOMATICALLY no at system restart? Volume Group MAJOR NUMBER [] Create VG Concurrent Capable? enhanced concurrent Max PPs per VG in kilobytes default Max Logical Volumes default
Under "Change/Show Resources for a Resource Group (standard)", add the concurrent volume group to the resource group added in the preceding steps.
For example:
# smitty cm_change_show_resources_std_resource_group_menu_dmn.select - select_resource_group_from_step_6 Resource Group Name shared_storage Participating Nodes (Default Node Priority) mynode1,mynode2,mynode3 Startup Policy Online On All Available Nodes Fallover Policy Bring Offline (On Error Node Only) Fallback Policy Never Fallback Concurrent Volume Groups [enter_VG_from_step_7] Use forced varyon of volume groups, if necessary false Application Servers []
Using the following command, ensure that one MNDHB network is defined for each Oracle Clusterware voting disk. Each MNDHB and voting disk pair must be collocated on a single hard disk, separate from the other pairs. The MNDHB network and Voting Disks exist on shared logical volumes in an enhanced concurrent logical volume managed by HACMP as an enhanced concurrent resource. For each of the hard disks in the VG created in step 6 on which you want to place a voting disk logical volume (LV), create a MNDHB LV.
# smitty cl_add_mndhb_lv - select_resource_group_defined_in_step_6 * Physical Volume name enter F4, then select a hard disk Logical Volume Name [] Logical Volume Label [] Volume Group name ccvg Resource Group Name shared_storage Network Name [n]
Note:
When you define the LVs for the Oracle Clusterware voting disks, they should be defined on the same disks: one for each disk, as used in this step for the MNDHB LVs.Configure MNDHB so that the node is halted if access is lost to a quorum of the MNDHB networks in the enhanced concurrent volume group. For example:
# smitty cl_set_mndhb_response
- select_the_VG_created_in_step_7
On loss of access Halt the node
Optional notification method []
Volume Group ccvg
Verify and Synchronize HACMP configuration. For example:
# smitty cm_initialization_and_standard_config_menu_dmn - select "Verify and Synchronize HACMP Configuration"
Enter Yes if prompted: "Would you like to import shared VG: ccvg, in resource group my_resource_group onto node: mynode to node: racha702 [Yes / No]:"
Add the Add the HACMP cluster node IP names to the file /usr/es/sbin/cluster/etc/rhosts
.
Complete the following procedure:
Back up all databases, and back up the Oracle Cluster Registry (OCR)
Shut down on all nodes all Oracle RAC databases, all node applications, and Oracle Clusterware.
Enter the following command to disable Oracle Clusterware from starting when nodes are restarted:
# crsctl disable crs
Shut down HACMP on all nodes.
Install HACMP APAR IZ01809, following the directions in the README included with that APAR.
Determine if the existing voting disk LVs are already on separate hard disks, and if each of these disks have sufficient space (at least 256 MB for the MNDHB LVs. If this is true, then create a MNDHB LV on each of the hard disks. If this is not true, then create new MNDHB LVs and new voting disk LVs, located on separate hard disks using the following command, responding to the sections in italics with the appropriate information for your system:
# smitty cl_add_mndhb_lv - Select_resource_group * Physical Volume name Enter F4, then select disk for the MNDHB and Voting Disk pair Logical Volume Name [] Logical Volume Label [] Volume Group name ccvg Resource Group Name shared_storage Network Name [net_diskhbmulti_01]
Verify and Synchronize HACMP configuration.
Start HACMP on all nodes.
If you added new LVs for voting disks in step 5, then replace each of the existing voting disks with the new ones.
Enter the following command to re-enable Oracle Clusterware:
# crsctl enable crs
Start Oracle Clusterware on all nodes, and verify that all resources start correctly.
Note:
To use raw logical volumes for Oracle Clusterware, HACMP must be installed and configured on all cluster nodes.This section describes how to configure raw logical volumes for Oracle Clusterware and database file storage. The procedures in this section describe how to create a new volume group that contains the logical volumes required for both types of files.
Before you continue, review the following guidelines which contain important information about using volume groups with this release of Oracle RAC:
You must use concurrent-capable volume groups for Oracle Clusterware.
The Oracle Clusterware files require less than 560 MB of disk space, with external redundancy. To make efficient use of the disk space in a volume group, Oracle recommends that you use the same volume group for the logical volumes for both the Oracle Clusterware files and the database files.
If you are upgrading an existing Oracle9i release 2 Oracle RAC installation that uses raw logical volumes, then you can use the existing SRVM configuration repository logical volume for the OCR and create a new logical volume in the same volume group for the Oracle Clusterware voting disk. However, you must remove this volume group from the HACMP concurrent resource group that activates it before you install Oracle Clusterware.
See Also:
The HACMP documentation for information about removing a volume group from a concurrent resource group.Note:
If you are upgrading a database, then you must also create a new logical volume for the SYSAUX tablespace. Refer to the "Configuring New Oracle Clusterware Volume Group Raw Logical Volumes" section for more information about the requirements for the Oracle Clusterware voting disk and SYSAUX logical volumes.You must use a HACMP concurrent resource group to activate new or existing volume groups that contain only database files (not Oracle Clusterware files).
See Also:
The HACMP documentation for information about adding a volume group to a new or existing concurrent resource group.All volume groups that you intend to use for Oracle Clusterware must be activated in concurrent mode before you start the installation.
The procedures in this section describe how to create basic volumes groups and volumes. If you want to configure more complex volumes, (using mirroring, for example), then use this section in conjunction with the HACMP documentation.
To create the required raw logical volumes in the new Oracle Clusterware volume group:
If you prefer, you can also use the command smit mklv
to create raw logical volumes.
The following example shows the command used to create a logical volume for the ocr
volume group in the SYSAUX tablespace with a physical partition size of 114 MB (1792/7 = 256):
# /usr/sbin/mklv -y test_sysaux_raw_1792m -T O -w n -s n -r n ocr 7
Change the owner, group, and permissions on the character device files associated with the logical volumes that you created, as follows:
Note:
The device file associated with the Oracle Cluster Registry must be owned byroot
. All other device files must be owned by the Oracle software owner user (oracle
).# chown oracle:dba /dev/rora_vote_raw_280m # chmod 660 /dev/rora_vote_raw_280m # chown root:oinstall /dev/rora_ocr_raw_280m # chmod 640 /dev/rora_ocr_raw_280m
To create a volume group for the Oracle Database files:
If necessary, install the shared disks that you intend to use.
To ensure that the disks are available, enter the following command on every node:
# /usr/sbin/lsdev -Cc disk
The output from this command is similar to the following:
hdisk0 Available 1A-09-00-8,0 16 Bit LVD SCSI Disk Drive hdisk1 Available 1A-09-00-9,0 16 Bit LVD SCSI Disk Drive hdisk2 Available 17-08-L SSA Logical Disk Drive
If a disk is not listed as available on any node, then enter the following command to configure the new disks:
# /usr/sbin/cfgmgr
Enter the following command on any node to identify the device names and any associated volume group for each disk:
# /usr/sbin/lspv
The output from this command is similar to the following:
hdisk0 0000078752249812 rootvg hdisk1 none none hdisk4 00034b6fd4ac1d71 ccvg1
For each disk, this command shows:
The disk device name
Either the 16 character physical volume identifier (PVID) if the disk has one, or none
Either the volume group to which the disk belongs, or none
The disks that you want to use may have a PVID, but they must not belong to existing volume groups.
If a disk that you want to use for the volume group does not have a PVID, then enter a command similar to the following to assign one to it:
# /usr/sbin/chdev -l hdiskn -a pv=yes
To identify used device major numbers, enter the following command on each node of the cluster:
# ls -la /dev | more
This command displays information about all configured devices, similar to the following:
crw-rw---- 1 root system 45, 0 Jul 19 11:56 vg1
In this example, 45 is the major number of the vg1
volume group device.
Identify an appropriate major number that is unused on all nodes in the cluster.
To create a volume group, enter a command similar to the following, or use SMIT (smit mkvg
):
# /usr/sbin/mkvg -y VGname -B -s PPsize -V majornum -n \ -C PhysicalVolumes
The following table describes the options and variables used in this example. Refer to the mkvg
man page for more information about these options.
Command Option | SMIT Field | Sample Value and Description |
---|---|---|
-y VGname
|
VOLUME GROUP name |
oracle_vg1Specify the name for the volume group. The name that you specify could be a generic name, as shown, or it could specify the name of the database that you intend to create. |
-y VGname
|
VOLUME GROUP name |
oracle_vg1Specify the name for the volume group. The name that you specify could be a generic name, as shown, or for a database volume group, it could specify the name of the database that you intend to create. |
-B |
Create a big VG format Volume Group | Specify this option to create a big VG format volume group.
Note: If you are using SMIT, then choose yes for this field. |
-s PPsize
|
Physical partition SIZE in megabytes |
32Specify the size of the physical partitions for the database. The sample value shown enables you to include a disk up to 32 GB in size (32 MB * 1016). |
-V Majornum
|
Volume Group MAJOR NUMBER |
46Specify the device major number for the volume group that you identified in Step 7. |
-n |
Activate volume group AUTOMATICALLY at system restart | Specify this option to prevent the volume group from being activated at system restart.
Note: If you are using SMIT, then choose no for this field. |
-C |
Create VG Concurrent Capable | Specify this option to create a concurrent capable volume group.
Note: If you are using SMIT, then choose yes for this field. |
PhysicalVolumes
|
PHYSICAL VOLUME names |
hdisk3 hdisk4Specify the device names of the disks that you want to add to the volume group. |
Enter a command similar to the following to vary on the volume group that you created:
# /usr/sbin/varyonvg VGname
To create a volume group for the Oracle Clusterware files:
If necessary, install the shared disks that you intend to use.
To ensure that the disks are available, enter the following command on every node:
# /usr/sbin/lsdev -Cc disk
The output from this command is similar to the following:
hdisk0 Available 1A-09-00-8,0 16 Bit LVD SCSI Disk Drive hdisk1 Available 1A-09-00-9,0 16 Bit LVD SCSI Disk Drive hdisk2 Available 17-08-L SSA Logical Disk Drive
If a disk is not listed as available on any node, then enter the following command to configure the new disks:
# /usr/sbin/cfgmgr
Enter the following command on any node to identify the device names and any associated volume group for each disk:
# /usr/sbin/lspv
The output from this command is similar to the following:
hdisk0 0000078752249812 rootvg hdisk1 none none hdisk4 00034b6fd4ac1d71 ccvg1
For each disk, this command shows:
The disk device name
Either the 16 character physical volume identifier (PVID) if the disk has one, or none
Either the volume group to which the disk belongs, or none
The disks that you want to use may have a PVID, but they must not belong to existing volume groups.
If a disk that you want to use for the volume group does not have a PVID, then enter a command similar to the following to assign one to it:
# /usr/sbin/chdev -l hdiskn -a pv=yes
To identify used device major numbers, enter the following command on each node of the cluster:
# ls -la /dev | more
This command displays information about all configured devices, similar to the following:
crw-rw---- 1 root system 45, 0 Jul 19 11:56 vg1
In this example, 45 is the major number of the vg1
volume group device.
Identify an appropriate major number that is unused on all nodes in the cluster.
To create a volume group, enter a command similar to the following, or use SMIT (smit mkvg
):
# /usr/sbin/mkvg -y VGname -B -s PPsize -V majornum -n \ -C PhysicalVolumes
The following table describes the options and variables used in this example. Refer to the mkvg
man page for more information about these options.
Command Option | SMIT Field | Sample Value and Description |
---|---|---|
-y VGname
|
VOLUME GROUP name |
oracle_vg1Specify the name for the volume group. The name that you specify could be a generic name, as shown, or it could specify the name of the database that you intend to create. |
-y VGname
|
VOLUME GROUP name |
oracle_vg1Specify the name for the volume group. The name that you specify could be a generic name, as shown, or for a database volume group, it could specify the name of the database that you intend to create. |
-B |
Create a big VG format Volume Group | Specify this option to create a big VG format volume group.
Note: If you are using SMIT, then choose yes for this field. |
-s PPsize
|
Physical partition SIZE in megabytes |
32Specify the size of the physical partitions for the database. The sample value shown enables you to include a disk up to 32 GB in size (32 MB * 1016). |
-V Majornum
|
Volume Group MAJOR NUMBER |
46Specify the device major number for the volume group that you identified in Step 7. |
-n |
Activate volume group AUTOMATICALLY at system restart | Specify this option to prevent the volume group from being activated at system restart.
Note: If you are using SMIT, then choose no for this field. |
-C |
Create VG Concurrent Capable | Specify this option to create a concurrent capable volume group.
Note: If you are using SMIT, then choose yes for this field. |
PhysicalVolumes
|
PHYSICAL VOLUME names |
hdisk3 hdisk4Specify the device names of the disks that you want to add to the volume group. |
Enter a command similar to the following to vary on the volume group that you created:
# /usr/sbin/varyonvg VGname
To make the volume group available to all nodes in the cluster, you must import it on each node, as follows:
Because the physical volume names may be different on the other nodes, enter the following command to determine the PVID of the physical volumes used by the volume group:
# /usr/sbin/lspv
Note the PVIDs of the physical devices used by the volume group.
To vary off the volume group that you want to use, enter a command similar to the following on the node where you created it:
# /usr/sbin/varyoffvg VGname
On each cluster node, complete the following steps:
Enter the following command to determine the physical volume names associated with the PVIDs you noted previously:
# /usr/sbin/lspv
On each node of the cluster, enter commands similar to the following to import the volume group definitions:
# /usr/sbin/importvg -y VGname -V MajorNumber PhysicalVolume
In this example, MajorNumber
is the device major number for the volume group and PhysicalVolume
is the name of one of the physical volumes in the volume group.
For example, to import the definition of the oracle_vg1
volume group with device major number 45 on the hdisk3
and hdisk4
physical volumes, enter the following command:
# /usr/sbin/importvg -y oracle_vg1 -V 45 hdisk3
Change the owner, group, and permissions on the character device files associated with the logical volumes you created, as follows:
# chown oracle:dba /dev/rora_vote_raw_280m # chmod 660 /dev/rora_vote_raw_280m # chown root:oinstall /dev/rora_ocr_raw_280m # chmod 640 /dev/rora_ocr_raw_280m
Enter the following command to ensure that the volume group will not be activated by the operating system when the node starts:
# /usr/sbin/chvg -a n VGname
To activate the volume group in concurrent mode on all cluster nodes, enter the following command on each node:
# /usr/sbin/varyonvg -c VGname
Use the following instructions to create directories for Oracle Clusterware files. You can also configure shared file systems for the Oracle Database and recovery files.
Note:
For NFS or GPFS storage, you must complete this procedure only if you want to place the Oracle Clusterware files on a separate file system to the Oracle base directory.To create directories for the Oracle Clusterware files on separate file systems from the Oracle base directory, follow these steps:
If necessary, configure the shared file systems that you want to use and mount them on each node.
Note:
The mount point that you use for the file system must be identical on each node. Make sure that the file systems are configured to mount automatically when a node restarts.Use the df
-k
command to determine the free disk space on each mounted file system.
From the display, identify the file systems that you want to use:
File Type | File System Requirements |
---|---|
Oracle Clusterware files | Choose a file system with at least 600 MB of free disk space (one OCR and one voting disk, with external redundancy). |
Database files | Choose either:
|
Recovery files | Choose a file system with at least 2 GB of free disk space. |
If you are using the same file system for more than one type of file, then add the disk space requirements for each type to determine the total disk space requirement.
Note the names of the mount point directories for the file systems that you identified.
If the user performing installation has permissions to create directories on the storage location where you plan to install Oracle Clusterware, then OUI creates the Oracle Clusterware file directory.
If necessary, configure the shared file systems to use and mount them on each node.
Note:
The mount point that you use for the file system must be identical on each node. Ensure that the file systems are configured to mount automatically when a node restarts.Use the df
command to determine the free disk space on each mounted file system.
From the display, identify the file systems to use. Choose a file system with a minimum of 600 MB of free disk space (one OCR and one voting disk, with external redundancy).
If you are using the same file system for multiple file types, then add the disk space requirements for each type to determine the total disk space requirement.
Note:
If you are using GPFS, then you can use the same file system for all purposes. This includes using it for the Oracle home directory and for storing data files and logs. For optimal performance, you should use a large GPFS block size (typically, at least 512 KB). GPFS is designed for scalability, and there is no requirement to create multiple GPFS file systems as long as the amount of data fits in a single GPFS file system.Note the names of the mount point directories for the file systems that you identified.
If the user performing installation (typically, grid
or oracle
) has permissions to create directories on the storage location where you plan to install Oracle Clusterware files, then OUI creates the Oracle Clusterware file directory.
If the user performing installation does not have write access, then you must create these directories manually using commands similar to the following to create the recommended subdirectories in each of the mount point directories and set the appropriate owner, group, and permissions on the directory. For example, where the user is oracle
, and the Oracle Clusterware file storage area is cluster
:
# mkdir /mount_point/cluster # chown oracle:oinstall /mount_point/cluster # chmod 775 /mount_point/cluster
Note:
After installation, directories in the installation path for the Oracle Cluster Registry (OCR) files should be owned byroot
, and not writable by any account other than root
.When you have completed creating subdirectories in each of the mount point directories, and set the appropriate owner, group, and permissions, you have completed GPFS configuration.
Use the following instructions to create directories for shared file systems for Oracle Database and recovery files (for example, for an Oracle RAC database).
If necessary, configure the shared file systems and mount them on each node.
Note:
The mount point that you use for the file system must be identical on each node. Ensure that the file systems are configured to mount automatically when a node restarts.Use the df -k
command to determine the free disk space on each mounted file system.
From the display, identify the file systems:
File Type | File System Requirements |
---|---|
Database files | Choose either:
|
Recovery files | Choose a file system with at least 2 GB of free disk space. |
If you are using the same file system for multiple file types, then add the disk space requirements for each type to determine the total disk space requirement.
Note the names of the mount point directories for the file systems that you identified.
If the user performing installation (typically, oracle
) has permissions to create directories on the disks where you plan to install Oracle Database, then DBCA creates the Oracle Database file directory, and the Recovery file directory.
If the user performing installation does not have write access, then you must create these directories manually using commands similar to the following to create the recommended subdirectories in each of the mount point directories and set the appropriate owner, group, and permissions on them:
Database file directory:
# mkdir /mount_point/oradata # chown oracle:oinstall /mount_point/oradata # chmod 775 /mount_point/oradata
Recovery file directory (Fast Recovery Area):
# mkdir /mount_point/fast_recovery_area # chown oracle:oinstall /mount_point/fast_recovery_area # chmod 775 /mount_point/fast_recovery_area
By making members of the oinstall
group owners of these directories, this permits them to be read by multiple Oracle homes, including those with different OSDBA groups.
When you have completed creating subdirectories in each of the mount point directories, and set the appropriate owner, group, and permissions, you have completed NFS configuration for Oracle Database shared storage.
Complete the following steps to disable the Direct NFS client:
Log in as the Oracle Grid Infrastructure installation owner, and disable the Direct NFS client using the following commands, where Grid_home
is the path to the Oracle Grid Infrastructure home:
$ cd Grid_home/rdbms/lib
$ make -f ins_rdbms.mk dnfs_off
Enter these commands on each node in the cluster, or on the shared Grid home if you are using a shared home for the Oracle Grid Infrastructure installation.
Remove the oranfstab
file.
Note:
If you remove an NFS path that Oracle Database is using, then you must restart the database for the change to be effective.Review the following sections to configure storage for Oracle Automatic Storage Management:
This section describes how to configure storage for use with Oracle Automatic Storage Management (Oracle ASM).
To identify the storage requirements for using Oracle ASM, you must determine how many devices and the amount of free disk space that you require. To complete this task, follow these steps:
Determine whether you want to use Oracle ASM for Oracle Clusterware files (OCR and voting disks), Oracle Database files, recovery files, or all files except for Oracle Clusterware or Oracle Database binaries. Oracle Database files include data files, control files, redo log files, the server parameter file, and the password file.
Note:
You do not have to use the same storage mechanism for Oracle Clusterware, Oracle Database files and recovery files. You can use a shared file system for one file type and Oracle ASM for the other.If you choose to enable automated backups and you do not have a shared file system available, then you must choose Oracle ASM for recovery file storage.
If you enable automated backups during the installation, then you can select Oracle ASM as the storage mechanism for recovery files by specifying an Oracle Automatic Storage Management disk group for the Fast Recovery Area. If you select a noninteractive installation mode, then by default it creates one disk group and stores the OCR and voting disk files there. If you want to have any other disk groups for use in a subsequent database install, then you can choose interactive mode, or run ASMCA (or a command line tool) to create the appropriate disk groups before starting the database install.
Choose the Oracle ASM redundancy level to use for the Oracle ASM disk group.
The redundancy level that you choose for the Oracle ASM disk group determines how Oracle ASM mirrors files in the disk group and determines the number of disks and amount of free disk space that you require, as follows:
External redundancy
An external redundancy disk group requires a minimum of one disk device. The effective disk space in an external redundancy disk group is the sum of the disk space in all of its devices.
For Oracle Clusterware files, External redundancy disk groups provide 1 voting disk file, and 1 OCR, with no copies. You must use an external technology to provide mirroring for high availability.
Because Oracle ASM does not mirror data in an external redundancy disk group, Oracle recommends that you use external redundancy with storage devices such as RAID, or other similar devices that provide their own data protection mechanisms.
Normal redundancy
In a normal redundancy disk group, to increase performance and reliability, Oracle ASM by default uses two-way mirroring. A normal redundancy disk group requires a minimum of two disk devices (or two failure groups). The effective disk space in a normal redundancy disk group is half the sum of the disk space in all of its devices.
For Oracle Clusterware files, Normal redundancy disk groups provide 3 voting disk files, 1 OCR and 2 copies (one primary and one secondary mirror). With normal redundancy, the cluster can survive the loss of one failure group.
For most installations, Oracle recommends that you select normal redundancy.
High redundancy
In a high redundancy disk group, Oracle ASM uses three-way mirroring to increase performance and provide the highest level of reliability. A high redundancy disk group requires a minimum of three disk devices (or three failure groups). The effective disk space in a high redundancy disk group is one-third the sum of the disk space in all of its devices.
For Oracle Clusterware files, High redundancy disk groups provide 5 voting disk files, 1 OCR and 3 copies (one primary and two secondary mirrors). With high redundancy, the cluster can survive the loss of two failure groups.
While high redundancy disk groups do provide a high level of data protection, you should consider the greater cost of additional storage devices before deciding to select high redundancy disk groups.
Determine the total amount of disk space that you require for Oracle Clusterware files, and for the database files and recovery files.
Use Table 3-4 and Table 3-5 to determine the minimum number of disks and the minimum disk space requirements for installing Oracle Clusterware files, and installing the starter database, where you have voting disks in a separate disk group:
Table 3-4 Total Oracle Clusterware Storage Space Required by Redundancy Type
Redundancy Level | Minimum Number of Disks | Oracle Cluster Registry (OCR) Files | Voting Disk Files | Both File Types |
---|---|---|---|---|
External |
1 |
300 MB |
600 MB |
900 MB |
Normal |
3 |
600 MB |
900 MB |
1.5 GBFoot 1 |
High |
5 |
900 MB |
1.5 GB |
2.4 GB |
Footnote 1 If you create a diskgroup during installation, then it must be at least 2 GB.
Note:
If the voting disk files are in a disk group, be aware that disk groups with Oracle Clusterware files (OCR and voting disks) have a higher minimum number of failure groups than other disk groups.If you create a disk group as part of the installation in order to install the OCR and voting disk files, then the installer requires that you create these files on a disk group with at least 2 GB of available space.
A quorum failure group is a special type of failure group and disks in these failure groups do not contain user data. A quorum failure group is not considered when determining redundancy requirements in respect to storing user data. However, a quorum failure group counts when mounting a disk group.
For Oracle Clusterware installations, you must also add additional disk space for the Oracle ASM metadata. You can use the following formula to calculate the additional disk space requirements (in MB) for OCR and voting disk files, and the Oracle ASM metadata:
total = [2 * ausize * disks] + [redundancy * (ausize * (nodes * (clients + 1) + 30) + (64 * nodes) + 533)]
Where:
redundancy = Number of mirrors: external = 1, normal = 2, high = 3.
ausize = Metadata AU size in megabytes.
nodes = Number of nodes in cluster.
clients - Number of database instances for each node.
disks - Number of disks in disk group.
For example, for a four-node Oracle RAC installation, using three disks in a normal redundancy disk group, you require an additional X MB of space:
[2 * 1 * 3] + [2 * (1 * (4 * (4 + 1)+ 30)+ (64 * 4)+ 533)] = 1684 MB
To ensure high availability of Oracle Clusterware files on Oracle ASM, you need to have at least 2 GB of disk space for Oracle Clusterware files in three separate failure groups, with at least three physical disks. Each disk must have at least 1 GB of capacity to ensure that there is sufficient space to create Oracle Clusterware files.
Optionally, identify failure groups for the Oracle ASM disk group devices.
If you intend to use a normal or high redundancy disk group, then you can further protect your database against hardware failure by associating a set of disk devices in a custom failure group. By default, each device comprises its own failure group. However, if two disk devices in a normal redundancy disk group are attached to the same SCSI controller, then the disk group becomes unavailable if the controller fails. The controller in this example is a single point of failure.
To protect against failures of this type, you could use two SCSI controllers, each with two disks, and define a failure group for the disks attached to each controller. This configuration would enable the disk group to tolerate the failure of one SCSI controller.
Note:
Define custom failure groups after installation, using the GUI tool ASMCA, the command line toolasmcmd
, or SQL commands.
If you define custom failure groups, then for failure groups containing database files only, you must specify a minimum of two failure groups for normal redundancy disk groups and three failure groups for high redundancy disk groups.
For failure groups containing database files and clusterware files, including voting disks, you must specify a minimum of three failure groups for normal redundancy disk groups, and five failure groups for high redundancy disk groups.
Disk groups containing voting files must have at least 3 failure groups for normal redundancy or at least 5 failure groups for high redundancy. Otherwise, the minimum is 2 and 3 respectively. The minimum number of failure groups applies whether or not they are custom failure groups.
If you are sure that a suitable disk group does not exist on the system, then install or identify appropriate disk devices to add to a new disk group. Use the following guidelines when identifying appropriate disk devices:
All of the devices in an Oracle ASM disk group should be the same size and have the same performance characteristics.
Do not specify multiple partitions on a single physical disk as a disk group device. Oracle ASM expects each disk group device to be on a separate physical disk.
Although you can specify a logical volume as a device in an Oracle ASM disk group, Oracle does not recommend their use because it adds a layer of complexity that is unnecessary with Oracle ASM. In addition, Oracle RAC requires a cluster logical volume manager in case you decide to use a logical volume with Oracle ASM and Oracle RAC.
Oracle recommends that if you choose to use a logical volume manager, then use the logical volume manager to represent a single LUN without striping or mirroring, so that you can minimize the impact of the additional storage layer.
If you have a certified NAS storage device, then you can create zero-padded files in an NFS mounted directory and use those files as disk devices in an Oracle ASM disk group.
To create these files, follow these steps:
If necessary, create an exported directory for the disk group files on the NAS device.
Refer to the NAS device documentation for more information about completing this step.
Switch user to root
.
Create a mount point directory on the local system. For example:
# mkdir -p /mnt/asm
To ensure that the NFS file system is mounted when the system restarts, add an entry for the file system in the mount file /etc/vfstab
.
See Also:
My Oracle Support note 359515.1 for updated NAS mount option information, available at the following URL:https://support.oracle.com
For more information about editing the mount file for the operating system, refer to the man
pages. For more information about recommended mount options, refer to the section Section 3.2.5, "Configuring Storage NFS Mount and Buffer Size Parameters".
Enter a command similar to the following to mount the NFS file system on the local system:
# mount /mnt/asm
Choose a name for the disk group to create. For example: sales1
.
Create a directory for the files on the NFS file system, using the disk group name as the directory name. For example:
# mkdir /mnt/asm/nfsdg
Use commands similar to the following to create the required number of zero-padded files in this directory:
# dd if=/dev/zero of=/mnt/asm/nfsdg/disk1 bs=1024k count=1000
This example creates 1 GB files on the NFS file system. You must create one, two, or three files respectively to create an external, normal, or high redundancy disk group.
Enter commands similar to the following to change the owner, group, and permissions on the directory and files that you created, where the installation owner is grid
, and the OSASM group is asmadmin
:
# chown -R grid:asmadmin /mnt/asm # chmod -R 660 /mnt/asm
If you plan to install Oracle RAC or a standalone Oracle Database, then during installation, edit the Oracle ASM disk discovery string to specify a regular expression that matches the file names you created. For example:
/mnt/asm/sales1/
Note:
During installation, disk paths mounted on Oracle ASM are listed as default database storage candidate disks.Select from the following choices to store either database or recovery files in an existing Oracle ASM disk group, depending on installation method:
If you select an installation method that runs Database Configuration Assistant in interactive mode, then you can decide whether you want to create a disk group, or to use an existing one.
The same choice is available to you if you use Database Configuration Assistant after the installation to create a database.
If you select an installation method that runs Database Configuration Assistant in noninteractive mode, then you must choose an existing disk group for the new database; you cannot create a disk group. However, you can add disk devices to an existing disk group if it has insufficient free space for your requirements.
Note:
The Oracle ASM instance that manages the existing disk group can be running in a different Oracle home directory.To determine if an existing Oracle ASM disk group exists, or to determine if there is sufficient disk space in a disk group, you can use the Oracle ASM command line tool (asmcmd
), Oracle Enterprise Manager Grid Control or Database Control. Alternatively, you can use the following procedure:
View the contents of the oratab
file to determine if an Oracle ASM instance is configured on the system:
$ more /etc/oratab
If an Oracle ASM instance is configured on the system, then the oratab
file should contain a line similar to the following:
+ASM2:oracle_home_path
In this example, +ASM2
is the system identifier (SID) of the Oracle ASM instance, with the node number appended, and oracle_home_path
is the Oracle home directory where it is installed. By convention, the SID for an Oracle ASM instance begins with a plus sign.
Set the ORACLE_SID
and ORACLE_HOME
environment variables to specify the appropriate values for the Oracle ASM instance.
Connect to the Oracle ASM instance and start the instance if necessary:
$ $ORACLE_HOME/bin/asmcmd ASMCMD> startup
Enter one of the following commands to view the existing disk groups, their redundancy level, and the amount of free disk space in each one:
ASMCMD> lsdb
or:
$ORACLE_HOME/bin/asmcmd -p lsdg
From the output, identify a disk group with the appropriate redundancy level and note the free space that it contains.
If necessary, install or identify the additional disk devices required to meet the storage requirements listed in the previous section.
Note:
If you are adding devices to an existing disk group, then Oracle recommends that you use devices that have the same size and performance characteristics as the existing devices in that disk group.You can configure raw disks for use as Oracle Automatic Storage Management (Oracle ASM) disk groups. To use Oracle ASM with raw disks, you must create sufficient partitions for your data files, and then bind the partitions to raw disks. Make a list of the raw disk names you create for the data files, and have the list available during database installation.
In the following procedure, you are directed to set physical volume IDs (PVIDs) for raw disks. Oracle recommends that you complete the entire procedure, even if you are certain that you do not have PVIDs configured on your system, to prevent the possibility of configuration issues.
Note:
If you intend to use Hitachi HDLM (dmlf
devices) for storage, then ASM instances do not automatically discover the physical disks, but instead discover only the logical volume manager (LVM) disks. This is because the physical disks can only be opened by programs running as root.
Physical disk paths have path names similar to the following:
/dev/rdlmfdrv8 /dev/rdlmfdrv9
Use the following procedure to configure disks:
If necessary, install the disks that you intend to use for the disk group and restart the system.
Identify or create the disks that you want to include in the Oracle ASM disk group. As the root
user, enter the following command on any node to identify the device names for the disk devices that you want to use:
# /usr/sbin/lspv | grep -i none
This command displays information similar to the following for each disk device that is not configured in a volume group:
hdisk17 0009005fb9c23648 None
In this example, hdisk17
is the device name of the disk and 0009005fb9c23648
is the physical volume ID (PVID).
If a disk device that you want to use does not have a PVID, then enter a command similar to the following to assign one to it, where n
is the number of the hdisk
:
# chdev -l hdiskn -a pv=yes
Note:
If you have an existing PVID, thenchdev
overwrites the existing PVID. Be aware that if you have applications depending on the previous PVID, then they will fail.On each of the other nodes, enter a command similar to the following to identify the device name associated with each PVID on that node:
# /usr/sbin/lspv | grep -i "0009005fb9c23648"
The output from this command should be similar to the following:
hdisk18 0009005fb9c23648 None
In this example, the device name associated with the disk device (hdisk18
) is different on this node.
If the device names are the same on all nodes, then enter commands similar to the following on all nodes to change the owner, group, and permissions on the character raw device files for the disk devices where grid
is the Oracle Grid Infrastructure installation owner, and asmadmin
is the OSASM group:
# chown grid:asmadmin /dev/rhdiskn # chmod 660 /dev/rhdiskn
To enable simultaneous access to a disk device from multiple nodes, you must set the appropriate Object Data Manager (ODM) attribute, depending on the type of reserve attribute used by your disks. The following section describes how to perform this task using hdisk logical names. Refer to your operating system documentation to find logical device names.
To determine the reserve setting your disks use, enter the following command, where n is the hdisk device number:
# lsattr -E -l hdiskn | grep reserve_
The response is either a reserve_lock
setting, or a reserve_policy
setting. If the attribute is reserve_lock
, then ensure that the setting is reserve_lock = no
. If the attribute is reserve_policy
, then ensure that the setting is reserve_policy = no_reserve
.
If necessary, change the setting with the chdev
command using the following syntax, where n is the hdisk device number:
chdev -l hdiskn -a [ reserve_lock=no | reserve_policy=no_reserve ]
For example, to change a setting for the device hdisk4
from reserve_lock=yes
to reserve_lock=no
, enter the following command:
# chdev -l hdisk4 -a reserve_lock=no
To verify that the setting is correct on all disk devices, enter the following command:
# lsattr -El hdiskn | grep reserve
Enter commands similar to the following on any node to clear the PVID from each disk device that you want to use:
# /usr/sbin/chdev -l hdiskn -a pv=clear
When you are installing Oracle Clusterware, you must enter the paths to the appropriate device files when prompted for the path of the OCR and Oracle Clusterware voting disk. For example:
/dev/rhdisk10
Review the following sections to configure Oracle Automatic Storage Management storage for Oracle Clusterware and Oracle Database Files:
The following section describes how to identify existing disk groups and determine the free disk space that they contain.
Optionally, identify failure groups for the Oracle Automatic Storage Management disk group devices.
If you intend to use a normal or high redundancy disk group, then you can further protect your database against hardware failure by associating a set of disk devices in a custom failure group. By default, each device comprises its own failure group. However, if two disk devices in a normal redundancy disk group are attached to the same SCSI controller, then the disk group becomes unavailable if the controller fails. The controller in this example is a single point of failure.
To protect against failures of this type, you could use two SCSI controllers, each with two disks, and define a failure group for the disks attached to each controller. This configuration would enable the disk group to tolerate the failure of one SCSI controller.
Note:
If you define custom failure groups, then you must specify a minimum of two failure groups for normal redundancy and three failure groups for high redundancy.If you are sure that a suitable disk group does not exist on the system, then install or identify appropriate disk devices to add to a new disk group. Use the following guidelines when identifying appropriate disk devices:
All of the devices in an Oracle Automatic Storage Management disk group should be the same size and have the same performance characteristics.
Do not specify multiple partitions on a single physical disk as a disk group device. Oracle Automatic Storage Management expects each disk group device to be on a separate physical disk.
Although you can specify logical volumes as devices in an Oracle ASM disk group, Oracle does not recommend their use. Non-shared logical volumes are not supported with Oracle RAC. If you want to use logical volumes for your Oracle RAC database, then you must use shared and concurrent raw logical volumes created by a cluster-aware logical volume manager.
Oracle ACFS is installed as part of an Oracle Grid Infrastructure installation (Oracle Clusterware and Oracle Automatic Storage Management) for 11g release 2 (11.2). You can configure Oracle ACFS for a database home, or use ASMCA to configure ACFS as a general purpose file system.
Note:
Oracle ACFS is supported only on AIX 6.1 TL4 SP2 and later updates to AIX 6.1 (on PPC64 only). All other AIX releases supported with Oracle Grid Infrastructure for a Cluster 11g release 2 (11.2) are not supported for Oracle ACFS.To configure Oracle ACFS for an Oracle Database home for an Oracle RAC database:
Install Oracle Grid Infrastructure for a cluster (Oracle Clusterware and Oracle Automatic Storage Management)
Change directory to the Oracle Grid Infrastructure home. For example:
$ cd /u01/app/11.2.0/grid
Ensure that the Oracle Grid Infrastructure installation owner has read and write permissions on the storage mountpoint you want to use. For example, if you want to use the mountpoint /u02/acfsmounts/
:
$ ls -l /u02/acfsmounts
Start Oracle ASM Configuration Assistant as the grid installation owner. For example:
./asmca
The Configure ASM: ASM Disk Groups page shows you the Oracle ASM disk group you created during installation. Click the ASM Cluster File Systems tab.
On the ASM Cluster File Systems page, right-click the Data disk, then select Create ACFS for Database Home.
In the Create ACFS Hosted Database Home window, enter the following information:
Database Home ADVM Volume Device Name: Enter the name of the database home. The name must be unique in your enterprise. For example: dbase_01
Database Home Mountpoint: Enter the directory path for the mount point. For example: /u02/acfsmounts/dbase_01
Make a note of this mount point for future reference.
Database Home Size (GB): Enter in gigabytes the size you want the database home to be.
Database Home Owner Name: Enter the name of the Oracle Database installation owner you plan to use to install the database. For example: oracle
1
Database Home Owner Group: Enter the OSDBA group whose members you plan to provide when you install the database. Members of this group are given operating system authentication for the SYSDBA privileges on the database. For example: dba1
Click OK when you have completed your entries.
Run the script generated by Oracle ASM Configuration Assistant as a privileged user (root
). On an Oracle Clusterware environment, the script registers the ACFS as a resource managed by Oracle Clusterware. Registering ACFS as a resource helps Oracle Clusterware to mount the ACFS automatically in proper order when ACFS is used for an Oracle RAC database Home.
During Oracle RAC installation, ensure that you or the DBA who installs Oracle RAC selects for the Oracle home the mount point you provided in the Database Home Mountpoint field (in the preceding example, /u02/acfsmounts/dbase_01
).
See Also:
Oracle Database Storage Administrator's Guide for more information about configuring and managing your storage with Oracle ACFSIf you have an Oracle ASM installation from a prior release installed on your server, or in an existing Oracle Clusterware installation, then you can use Oracle Automatic Storage Management Configuration Assistant (ASMCA, located in the path Grid_home
/bin
) to upgrade the existing Oracle ASM instance to 11g release 2 (11.2), and subsequently configure failure groups, Oracle ASM volumes and Oracle Automatic Storage Management Cluster File System (Oracle ACFS).
Note:
You must first shut down all database instances and applications on the node with the existing Oracle ASM instance before upgrading it.During installation, if you are upgrading from an Oracle ASM release prior to 11.2, and you chose to use Oracle ASM and ASMCA detects that there is a prior Oracle ASM version installed in another Oracle ASM home, then after installing the Oracle ASM 11g release 2 (11.2) binaries, you can start ASMCA to upgrade the existing Oracle ASM instance. You can then choose to configure an Oracle ACFS deployment by creating Oracle ASM volumes and using the upgraded Oracle ASM to create the Oracle ACFS.
If you are upgrading from Oracle ASM 11g release 2 (11.2.0.1) or later, then Oracle ASM is always upgraded with Oracle Grid Infrastructure as part of the rolling upgrade, and ASMCA is started by the root scripts during upgrade. ASMCA cannot perform a separate upgrade of Oracle ASM from release 11.2.0.1 to 11.2.0.2.
On an existing Oracle Clusterware or Oracle RAC installation, if the prior version of Oracle ASM instances on all nodes is 11g release 1, then you are provided with the option to perform a rolling upgrade of Oracle ASM instances. If the prior version of Oracle ASM instances on an Oracle RAC installation are from a release prior to 11g release 1, then rolling upgrades cannot be performed. Oracle ASM on all nodes will be upgraded to 11g release 2 (11.2).
With the release of Oracle Database 11g release 2 (11.2) and Oracle RAC 11g release 2 (11.2), using Database Configuration Assistant or the installer to store Oracle Clusterware or Oracle Database files directly on raw disks is not supported.
If you intend to upgrade an existing Oracle RAC database, or an Oracle RAC database with Oracle ASM instances, then you can use a existing raw disks or raw logical volumes, and perform a rolling upgrade of your existing installation. Performing a new installation using raw disks or raw logical volumes is not allowed.