11 Installing the Recovery Appliance Software

This chapter describes the procedures for installing the Recovery Appliance software. It contains the following sections:

Note:

Recovery Appliance software is supported only when installed on Recovery Appliance hardware. See the Zero Data Loss Recovery Appliance Licensing Information User Manual for information about software licensing.

11.1 About the Installation Software

The following scripts install the Recovery Appliance software:

  • ra_preinstall.pl: Performs initial checks and prepares the Recovery Appliance for new installations and upgrades. This script was introduced in Zero Data Loss Recovery Appliance software update 12.1.1.1.7. See Zero Data Loss Recovery Appliance Upgrade and Patching (Doc ID 2028931.1) for more information.

  • install.sh: Uses the files generated by Oracle Exadata Deployment Assistant to configure the networks, Oracle Database, and other software components.

    The OneCommand ZIP file that contains Oracle Exadata Deployment Assistant for use in Using the Deployment Assistant also contains this script. You can run this script from any system on the same network as Recovery Appliance. Some platforms use install.cmd.

  • ra_install.pl: Performs additional configuration steps for the Recovery Appliance infrastructure. You must run this script while logged in to a Recovery Appliance compute server, and not from another server on the same network.

11.2 Software Installation Prerequisites

Before you begin the software installation, ensure that these procedures are complete:

11.2.1 About Adding a Rack to an Existing Rack

When you add a new Recovery Appliance rack to an older rack, the factory installed images are typically different. You can either update the older rack to the new image, or retain the older version and reimage the new rack to match it. In either case, ensure that all servers and all Sun Datacenter InfiniBand Switch 36 switches are at the same patch level.

11.2.2 About Adding New Storage Servers to an Existing Rack

Additional patching considerations include the Grid Infrastructure and database home releases and bundle patch updates. If the software installation applies new patches, then Oracle recommends changing the existing servers so the new servers inherit the releases as part of the extension procedure. This way, the number of servers that require patches is lower. Apply any patches to the existing servers in advance, so that they are at the desired level when the extension work is scheduled, thereby reducing the amount of work required by the extension.

11.3 Reclaiming Disk Space on the Compute Servers

Before you install the Recovery Appliance software, you must run the reclaimdisks script on each compute server. The script checks the volume configuration and reallocates all space correctly for the Recovery Appliance. Reclaiming the disk space converts the Linux system to four disks in a RAID-5 configuration at the disk controller level.

Perform the following steps to configure the disks on a compute server:

  1. Log in to the compute server as the root user.
  2. Change to the /opt/oracle.SupportTools directory.
  3. Start the disk reclamation process:
    # ./reclaimdisks.sh -free -reclaim
    

    The command frees any preconfigured disks, schedules reclamation of all free disks to Linux on the next boot, and restarts Recovery Appliance. The process may take two hours to complete.

    Caution:

    Do not restart Recovery Appliance or interrupt the reclamation process.

  4. Validate the Linux configuration:
    ./reclaimdisks.sh -check
    

    The last lines of the output should be the following:

    [INFO]  Valid single boot configuration found for Linux: RAID5 from 4 disks
     with no global and dedicated hot spare disks
    Valid. Booted: Linux. Layout: Linux.
    
  5. Repeat these steps on the other compute servers.

11.4 Installing the Software on Recovery Appliance

After completing the prerequisites and assembling the necessary files, you are ready to install the software.

To install the software on a new Recovery Appliance rack:

  1. Log in as root to the first compute server.
  2. Change to the u01 directory:
    # cd /u01
    
  3. Create a directory named ra_install directly under u01:
    # mkdir ra_install
    
  4. Extract the latest Linux version of the OneCommand ZIP file into /u01/ra_install/, using the default directory name, linux-x64. (The ZIP file can be downloaded from My Oracle Support Doc ID 1927416.1.)
  5. Copy the XML configuration files that were generated by using the Oracle Exadata Deployment Assistant into the ExadataConfigurations subdirectory under /u01/ra_install/linux-x64. See "Generating the Configuration Files" for information about the configuration files.
  6. Run the Recovery Appliance preinstallation script:
    1. Obtain the latest Recovery Appliance patch file from My Oracle Support Doc ID 1927416.1, and extract it into /u01/ra_install/linux-x64/WorkDir.
    2. Change to the WorkDir directory:
      # cd /u01/ra_install/linux-x64/WorkDir
      

      Notes:

      • The preinstallation script is available with Zero Data Loss Recovery Appliance software update 12.1.1.1.7 and later. See Zero Data Loss Recovery Appliance Upgrade and Patching (Doc ID 2028931.1) for information about the latest patch file

      • The files you extracted to WorkDir should include a readme file (README.txt) that contains important information to review before you proceed

    3. Run the script with the path of the XML configuration file and the Oracle Exadata Deployment Assistant directory:
      # /usr/bin/perl ra_preinstall.pl --config_xml=/u01/ra_install/linux-x64/ExadataConfigurations/Example_Inc-ra01.xml 
      --oeda_dir=/u01/ra_install/linux-x64
      
  7. Change to the linux-x64 directory:
    # cd /u01/ra_install/linux-x64
    
  8. List the steps you need to run.

    This example runs the install script from a Linux system, using an XML file named ExadataConfigurations/Example_Inc-ra01.xml:

    $ ./install.sh -cf ExadataConfigurations/Example_Inc-ra01.xml -l
    
  9. Run each step in numeric order except the last step (Resecure Machine), and verify that it completed successfully before continuing to the next step. You will resecure the machine in a later step.

    This example runs step 1 from a Linux system, using an XML file named ExadataConfigurations/Example_Inc-ra01.xml:

    $ ./install.sh -cf ExadataConfigurations/Example_Inc-ra01.xml -s 1
    

    See "About the Install Utility Steps".

  10. Change to the Recovery Appliance installation directory:
    # cd /opt/oracle.RecoveryAppliance/install
    
  11. List the steps in the ra_install script:
    # ./ra_install.pl --help
    

    See "Recovery Appliance Installer Syntax" for information about the steps in this utility.

  12. Run all steps of the ra_install script in order. This example runs step 1:
    # ./ra_install.pl --step=1
    
  13. Change back to the linux-x64 directory:
    # cd /u01/ra_install/linux-x64
    
  14. Use the install.sh utility to run the last step (Resecure Machine) to secure Recovery Appliance.
  15. To complete the Recovery Appliance installation:
    1. Use Oracle Enterprise Manager Cloud Control to deploy the agents and discover the Recovery Appliance targets. Then you can use Cloud Control to monitor and administer the Recovery Appliance environment.

      See "Setting Up Enterprise Manager to Administer Recovery Appliance".

    2. If you will use VLAN tagging for the Recovery Appliance ingest network, configure and test the VLAN tagging.

      See Enabling 8021.Q VLAN Tagging in Zero Data Loss Recovery Appliance over ingest networks (Doc ID 2047411.1) for instructions.

    3. Enroll the Oracle databases, so that they can use Recovery Appliance.

      See Zero Data Loss Recovery Appliance Protected Database Configuration Guide.

11.5 Install Utility Syntax

The install utility has the following syntax:

./install.sh -cf config_filename.xml option1 option2...

11.5.1 Install Utility Parameters

The syntax of the install utility enables you to run one step or multiple steps, and to undo one or more steps that ran with errors. You can then fix whatever problems caused the errors and run the step again.

Table 11-1 describes the options.

Table 11-1 Options of the Install Utility

Option Description

-cf config_filename.xml

Identifies the XML configuration file. Required.

-h

Describes the script options.

-l

List the steps needed to install and configure the software for the configuration described in the XML file.

-r {n-N | n}

Runs steps n through N, or step n.

-s n

Runs step n.

-u {n-N | n}

Undoes steps n through N, or step n.

11.5.2 Install Utility Syntax Examples

The following examples provide examples of the syntax and sample output. The XML configuration file is named Example_Inc-ra01.xml (linux-x64/ExadataConfigurations/Example_Inc-ra01.xml).

This command displays Help for the utility:

$ ./install.sh -cf ExadataConfigurations/Example_Inc-ra01.xml -h
  install.sh -cf <config.xml> -l [options]
  install.sh -cf <config.xml> -s <step #> | -r <num-num>
  install.sh
  ARGUMENTS:
   -l                 List all the steps that exist
   -cf                config file name [Full path please]
   -s <step #>        Run the step # at a time
   -r <num-num>       Run the steps one after the other as long as no errors
                      are encountered
   -u <num-num> | <step#> Undo a range of steps or a particular step
   -h                 Usage
  Version : 14.254.04:00

This command lists the steps:

$ ./install.sh -cf ExadataConfigurations/Example_Inc-ra01.xml -l
 
1. Validate Configuration File
2. Setup Required Files
3. Create Users
4. Setup Cell Connectivity
5. Verify Infiniband
6. Calibrate Cells
7. Create Cell Disks
8. Create Grid Disks
9. Configure Alerting
10. Install Cluster Software
11. Initialize Cluster Software
12. Install Database Software
13. Relink Database with RDS
14. Create ASM Diskgroups
15. Create Databases
16. Apply Security Fixes
17. Install Exachk
18. Setup ASR Alerting
19. Create Installation Summary
20. Resecure Machine

The next example runs step 7:

./install.sh -cf ExadataConfigurations/Example_Inc-ra01.xml -s 7
 
 Executing Create Cell Disks
 Check physical disks for errors before creating celldisks..............
 Restarting cell services..................
 Initializing cells..............
 Cleaning cells....................
 Restarting cell services...................
 Creating cell disks.........................
 Creating flashlog on cells..........
 Creating flashcache on cells........
 Successfully completed execution of step Create Cell Disks
]

This command reverses step 15:

$ ./install.sh -cf ExadataConfigurations/Example_Inc-ra01.xml -u 15
 
 Undoing Create Databases
 Deleting databases...
 Deleting database zdlra
     .
     .
     .

11.5.3 About the Install Utility Steps

The following descriptions show how each step contributes to the complete software installation. The install script lists the substeps as it performs them.

Step 1 Validate Configuration File

Runs a series of checks to ensure that the configuration file contains settings that are appropriate for the specified cluster on the current network:

  • Validates the host names and IP addresses

  • Verifies the operating system

  • Validates the cluster networks and network connectivity

  • Validates the network time protocol (NTP) setup

  • Validates the physical disks in the storage servers

  • Validates the compute servers for database readiness

Step 2 Setup Required Files

Ensures that the required files are accessible, copies them to the second compute server, unzips them as needed, and creates symbolic links.

See "Software Installation Prerequisites" if this step fails.

Step 3 Create Users

Creates the required users and groups for the cluster, updates /etc/hosts, and sets up a secure shell (SSH).

Step 4 Setup Cell Connectivity

Generates several files that are used by other steps, including cellip.ora, cellinit.ora, and cellaffinity, if required.

Step 5 Verify InfiniBand

Performs a series of checks on the InfiniBand fabric to ensure that the compute servers, storage servers, and InfiniBand switches are cabled together correctly.

If errors occur, a diagnostic ZIP file is generated. The output from this step includes the location of this file.

Step 6 Calibrate Cells

Uses the I/O calibration feature of Oracle Database to assess the I/O capability of the storage subsystem.

Step 7 Create Cell Disks

Performs a series of steps on the storage server disks that include creating the cell disks, and then creating a flash log and a flash cache on each cell.

Step 8 Create Grid Disks

Creates the grid disks for the cluster.

In this release, you must follow this step with additional manual procedures.

Step 9 Configure Alerting

Configures email on the storage servers, so that they can send alerts when problems occur.

Step 10 Install Cluster Software

Uses an Oracle Database utility to obtain the grid disk identifiers, and then runs the clusterware installer. It patches the software as needed.

Step 11 Initialize Cluster Software

If a replication network is being configured, this step creates the single client access name (SCAN) and virtual IP (VIP) for it. Then it initializes the cluster.

Step 12 Install Database Software

Installs the Oracle Database software and creates the Oracle Database home directory on both compute servers. It also patches the software as required.

In this release, you must follow this step with additional manual procedures.

Step 13 Relink Database with RDS

Relinks Oracle Database with Reliable Datagram Sockets (RDS).

Step 14 Create ASM Disk Groups

Obtains the grid disk identifiers and creates the Automatic Storage Management (ASM) disk groups.

Step 15 Create Databases

Creates the Recovery Appliance catalog on both compute servers.

Step 16 Apply Security Fixes

Restarts the cluster software to set the security parameters, and enables turbo mode if required.

Step 17 Install Exachk

Installs the exachk utility on the Recovery Appliance. See My Oracle Support Doc ID 1070954.1 for information about the utility.

Step 18 Setup ASR Alerting

Installs and configures Auto Service Request (ASR). Optional.

This step does the following:

  • Installs the required software packages

  • Configures the trap destinations

  • Starts the monitoring daemon

Step 19 Create Installation Summary

Obtains the system details, calibrates the storage servers, and generates a summary XML report. The output from this step includes the location of this file.

Step 20 Resecure Machine

Replaces the default passwords with custom passwords.

11.6 Recovery Appliance Installer Syntax

The postinstallation utility is located on the first compute node in the /opt/oracle.RecoveryAppliance/install directory. It has the following syntax:

./ra_install.pl --help | [--install | --uninstall] --step=STEP_NUMBER [--stdout]

Table 11-2 describes the options.

Table 11-2 Options of the Postinstallation Utility

Option Description

--help

Describes the utility options.

--install

Runs the step and installs the software. Default.

--uninstall

Undoes the step and uninstalls the software.

--step=number

Runs a step. Valid values are 1 to 7. You must complete all steps in order.

--stdout

Prints all messages to the standard output instead of the log file.

11.6.1 Postinstallation Utility Examples

This example displays the Help topic:

# ra_install.pl --help
ra_install.pl - Recovery Appliance Installer
You must be logged in as root to run this command.
All steps should be run successfully for install.
Usage: ./ra_install.pl --help | --step=STEP_NUMBER  {--install|--uninstall} [--stdout]
Options:
  --help: displays this help message
  --step=number: Which step to run
  --stdout: Print all messages to stdout rather then the log file
  --install: Installs the step rather then installing it. [Default]
  --uninstall: Uninstalls the step rather then installing it.
Step Numbers:
  Step 1 - Validation and Configuration Prep
  Step 2 - OS Setup
  Step 3 - Oracle User Setup
  Step 4 - DBFS Setup
  Step 5 - Tape Backup configuration
  Step 6 - ZDLRA DB Backup Setup
  Step 7 - Enable ZDLRA Services

This example runs step 2:

# ./ra_install.pl --step=2
Created log file /opt/oracle.RecoveryAppliance/log/ra_install.step1.20140823.1959.log
Start: Configuring OS for ZDLRA - Successful: OK
Start: Running on node: ra06adm07 - Successful: OK
End: Running on node: ra06adm07 - Successful: OK
Start: Running on node: ra06adm08 - Successful: OK
End: Configured OS for ZDLRA - Successful: OK

11.6.2 About the Postinstallation Utility Steps

This section describes the postinstallation steps. Each step generates a log file in /opt/oracle.RecoveryAppliance/log. The output from a step includes the path to its log file.

Step 1 Validation and Configuration Prep

Creates the ra_xml configuration file, validates the configuration, and sets up the installer wallet.

Step 2 OS Setup

Configures the operating system. Starts the portmap and nscd daemon, and creates various operating system users and groups.

Step 3 Oracle User Setup

Configures the oracle operating system user.

Step 4 DBFS Setup

Creates the database file system (DBFS) mounts.

Step 5 Tape Backup Configuration

Determines whether a tape backup system is present, and makes the applicable configuration changes based on the details that were specified on the Tape Library Connectivity Page in the Oracle Exadata Deployment Assistant.

Step 6 ZDLRA DB Backup Setup

Configures backup of the Recovery Appliance catalog database and creates credentials for performing the backups. The catalog is backed up to a Recovery Appliance disk on an automated schedule.

Step 7 Enables ZDLRA Services

Starts all services installed in the previous steps.

11.7 Setting Up Enterprise Manager to Administer Recovery Appliance

To enable Enterprise Manager to administer Recovery Appliance, you must deploy the management agents to each compute server, then discover the targets for the Recovery Appliance. The targets include the cluster, database, listeners, Automatic Storage Management (ASM), and the appliance itself.

Work with your Oracle support engineer to perform the tasks in this section.

Note:

See Doc ID 1929507.1 for information about the plug-ins and patches required for Zero Data Loss Recovery Appliance management, monitoring, and protected database management.

11.7.1 Deploying the Enterprise Manager Agents

Perform the following steps to deploy a management agent to each Recovery Appliance compute server:

  1. On each compute server, create a directory owned by oracle:oinstall in which to install the agent.
  2. Log in to Oracle Enterprise Manager Cloud Control (Cloud Control) as a user with privileges to discover and manage a Recovery Appliance target.
  3. From the Setup menu, choose Add Target, select Add Targets Manually, choose Add Host Targets, then click Add Host...

    The Add Host Targets: Host and Platform page appears.

  4. From the Platform list, select Same for All Hosts.
  5. For each compute server, click Add, enter the fully qualified host name, and select Linux x86-64 in the Platform list. Then click Next.

    The Add Host Targets: Installation Details page appears.

  6. Specify the Agent installation directory that you created in Step 1, Named Credential for the user that will own the Agent installation, and other requested properties, then click Next.

    The Add Host Targets: Review page appears.

  7. Click Deploy Agent to begin deploying Agents to all Recovery Appliance compute servers.

    The Add Host page appears, displaying warnings about remote prerequisite checks in the Agent Deployment Summary section. The Remote Prerequisite Check Details section indicates that the root.sh script could not be run due to insufficient privileges. You will fix this in a subsequent step.

  8. To resume the deployment, click Continue, and select All Hosts.

    The Add Host page displays a message that the deployment was successful.

  9. Follow to the on screen instructions to run root.sh manually on each compute server.
  10. Return to the Add Host page, and click Done.

11.7.2 Discovering the Cluster

Perform the following steps to discover the Recovery Appliance cluster:

  1. From the Setup menu in Cloud Control, choose Add Target, select Add Targets Manually.

    The Add Targets Manually page appears.

  2. Select Add Targets Using Guided Process.
  3. From the Target Types drop-down list, select Oracle Cluster and High Availability Service, then click Add Using Guided Process...

    The Add Target: Cluster and Oracle High Availability Service page appears.

  4. Enter the host name of one of the compute servers on the Recovery Appliance, then click the Search icon.

    The Select Targets dialog appears.

  5. Select the target host, and click Select.
  6. Click Discover Target.
  7. Review the automatically detected cluster information on the Cluster and Oracle High Availability Service page. Verify that all compute servers on the Recovery Appliance cluster are included in the list of cluster hosts and that the SCAN Name and SCAN Ports display the correct values for the ingest network, then click Save.

    When the cluster target is created successfully, the Confirmation window appears.

  8. Close the Confirmation window.

11.7.3 Discovering the Cluster Database Targets

Before you discover the Recovery Appliance itself, perform the following steps to discover the Recovery Appliance cluster database, listener, and ASM targets:

  1. From the Setup menu in Cloud Control, choose Add Target, select Add Targets Manually.

    The Add Targets Manually page appears.

  2. Select Add Targets Using Guided Process.
  3. From the Target Types drop-down list, choose Oracle Database, Listener, and Automatic Storage Management, then click Add Using Guided Process...

    The Database Discovery: Search Criteria page appears.

  4. Use the Recovery Appliance cluster name or the host name of one of the compute servers as the criteria to perform the search, then click Next.

    The Database Discovery: Results page appears, showing the Recovery Appliance cluster database is listed, along with the ASM instances and listeners on all compute servers.

  5. Select the cluster database, and click Configure.
  6. Modify the settings to use fully qualified names in the Listener Machine Name fields and 1521 in the Port fields, then click Save.
  7. Supply the monitoring credentials for the cluster database, and click Test Connection.
  8. Select the cluster ASM, configure the appropriate monitoring credentials, and click Test Connection.
  9. Ensure that the management database under Single Instance Databases (-MGMTDB) is not selected.
  10. Select all listeners except the management listener (MGMTLSNR), and click Next.

    The Database Discovery: Review page appears.

  11. Verify the information, then click Save to start monitoring the targets.
  12. Close the Confirmation window.

11.7.4 Discovering the Recovery Appliance

After discovering the Recovery Appliance cluster and cluster database targets, the Recovery Appliance target itself can be discovered. As part of discovering the top-level Recovery Appliance target that will include all Enterprise Manager Recovery Appliance software and hardware management functionality, a separate Recovery Appliance hardware target will also be discovered.

Perform the following steps to manually discover the Recovery Appliance target:

  1. From the Setup menu in Cloud Control, choose Add Target, then select Add Targets Manually.

    The Add Targets Manually page appears.

  2. Select Add Targets Using Guided Process.
  3. From the Target Types drop-down list, choose Recovery Appliance, then click Add Using Guided Process...

    The Recovery Appliance Hardware Discovery page appears.

  4. Select Discover new Recovery Appliance hardware components as targets, and click Discover Targets.

    The Recovery Appliance Hardware Discovery: Discovery Inputs page appears.

  5. Specify the URL of the agent on the compute server on which the schematic file (databasemachine.xml) resides. You can use the host name of the compute server on the Recovery Appliance to search for the correct value to use.

    Information about the schematic file appears.

  6. Set the credential for the host, and click Next.

    The Recovery Appliance Hardware Discovery: Infiniband Discovery page appears.

  7. Follow the detailed instructions in all subsequent pages of the Recovery Appliance Hardware Discovery wizard, supplying all requested credentials for hardware components. On the Review page, review all hardware component details, then click Submit. The Database Machine target representing the Recovery Appliance hardware will be created, along with targets for all hardware components.

    The Target Creation Summary page appears, showing a summary of all hardware targets created, including the Database Machine target representing the Recovery Appliance hardware and all member targets for all hardware components.

  8. Click Continue With Recovery Appliance Discovery.

    The Recovery Appliance Discovery: Properties page appears.

  9. Select the Target Name for the Recovery Appliance. The Recovery Appliance Hardware target name is already filled-in with the target name discovered in a previous step.

    (If the Recovery Appliance hardware discovery was completed without completing the full Recovery Appliance discovery process, that may leave one or more Recovery Appliance hardware targets in a state where they are not associated with a Recovery Appliance target. In this case, when Recovery Appliance discovery is re-initiated from the Add Targets Manually page, the discovery process will not automatically go in to the Recovery Appliance hardware discovery wizard. Instead, the process will go directly to the Properties page to allow selection of an unassociated Recovery Appliance hardware target. In this case, the hardware target name will not be pre-filled. Click the Select Target icon to launch the Search and Select Targets popup, which shows a list of Recovery Appliance hardware targets that have not yet been associated with a Recovery Appliance target. Select the correct Recovery Appliance hardware target.)

  10. In the Recovery Appliance Administrator Credentials section, specify the database user credentials for the Recovery Appliance recovery catalog owner. This user is also the Recovery Appliance administrator. You can use Named or New credentials. Click More Details to see detailed information about the credentials.
  11. In the Recovery Appliance Monitoring Credentials section, specify the database user credentials that will be used to monitor the Recovery Appliance. If necessary, that user will be granted the role required to access monitoring information in the Recovery Appliance database. Alternatively, you can select Use base catalog user credentials as monitoring credentials which disables the Username and Password fields.
  12. Click Next.

    The Recovery Appliance Discovery: Oracle Secure Backup Domain page appears.

  13. If Oracle Secure Backup is installed on the Recovery Appliance, enter /usr/local/oracle/backup in the Installation Home field and specify the monitoring credentials for the Oracle Secure Backup domain. Otherwise, select Skip Oracle Secure Backup Domain Discovery.
  14. Click Next.

    The Recovery Appliance Discovery: Review page appears.

  15. Review the target discovery selections, and click Submit.

    The Recovery Appliance target is created.