Oracle8i Parallel Server Getting Started
Release 8.1.5 for Windows NT
A68813-01

Library

Product

Contents

Index

PrevNext

3
Setting Up Raw Partitions

This chapter describes required pre-installation tasks.


Note:

Specific topics discussed are:

Raw Partition Overview

Because no true distributed file system support exists on Windows NT, the mechanism Oracle uses to allow nodes running different instances to access shared disks is to bypass the NT file system by using raw partitions. Data files are stored on the raw partitions. The shared disks are then a collection of unformatted raw devices.

Raw Partition

A raw partition is a portion of a physical disk that is accessed at the lowest possible level. I/O to a raw partition offers approximately a 5% to 10% performance improvement over I/O to a partition with a file system on it.

A raw partition is created when an extended partition is created and logical partitions are assigned to it without applying any formatting. The Windows NT Disk Administrator application allows you to create an extended partition on a physical drive.

Extended Partition

An extended partition points to raw space on the disk that can be assigned multiple logical partitions for the database files. An extended partition avoids the four-partition limit by allowing you to define large numbers of logical partitions to accommodate applications using Oracle8 Enterprise Edition. Logical partitions can then be given symbolic link names to free up drive letters. We create an extended partition and link the drive letters to symbolic link names "Step 1: Create an Extended Partition".

The Disk Administrator window shown below shows four disks, two of the disks having an extended partition:

Figure 3-1 Disk Administrator


This disk.... Contains...

Disk 0 

a primary partition 

Disk 1 

an extended partition with six logical partitions and 246 MB of free space 

Disk 2 

an extended partition with three logical partitions and 1146 MB of free space 

Disk 3 

an unformatted partition with 2047 MB of free space 


Note:

You can tell whether space is unpartitioned free space or free space within an extended partitions by the direction of the diagonal lines. Lines for free space within an extended partition display from top left to the bottom (\\), and lines for unpartitioned free space display from top right to the bottom (//). 


Disk Definition

Windows NT defines each disk drive found at startup with the following naming convention:

where Harddiskm is the number of the physical drive, and Partitionn is a logical partition number, as shown in the Disk Administrator window (in Figure 3-1). Harddiskm starts at 0, and Partitionn starts at 1. Partition0 has a special meaning in that it has access to the whole disk. For example, the first logical partition (E:) on the second physical drive in Figure 3-1 has the following entry:

The first logical partition on a system (normally the C drive) has the following entry:

Raw Partition Definition

Raw partitions are of two types:

Physical Disk

A physical disk represents the entire disk. It points to \Device\Harddiskx\Partition0. Windows NT automatically creates a symbolic link name of \\.\PhysicalDriveX, where X is the number corresponding to your hard disk drive number in the Disk Administrator. The X matches the X in \Device\HarddiskX\Partition0.

\\.\PhysicalDriveX is automatically defined by Windows NT for every hard disk in the machine. For example, a machine with three hard disks will have the following names defined by Windows NT:

Internally, these names expand to:

\\.\PhysicalDrive0 = \Device\Harddisk0\Partition0

\\.\PhysicalDrive1 =\Device\Harddisk1\Partition0

\\.\PhysicalDrive2 =\Device\Harddisk2\Partition0

Partition0 is special in that it represents the entire physical disk regardless of any partitioning scheme on that disk. On all disks recognized by Windows NT, the Disk Administrator writes a signature on the first block of all disks. To avoid overwriting that block, Oracle skips the first block of a physical raw partition which is used for an Oracle data file.

Logical Partition

A logical partition is a partition created by the Disk Administrator that points to a A logical partition is a partition created by the Disk Administrator that points to a drive other than \Device\Harddiskx\Partition0. Logical partitions are initially assigned names with drive letters (\\.\drive_letter:) and typically re-assigned symbolic link names (\\.\symbolic link name). For example, \\.\D: may be assigned a symbolic link name of \\.\ops_sys1. Regardless of whether a drive letter or symbolic link name is used, logical partitions are defined to represent a specific partition in a disk rather than the entire disk. Internally, these names may expand to:

\\.\D:= \Device\Harddisk2\Partition1

\\.\op_sys1= \Device\Harddisk3\Partition2

Drive letters can be assigned to specific partitions using the Disk Administrator, while symbolic link names can be assigned using the SETLINKS utility (shipped with the Parallel Server Option).


Note:

Oracle does not skip the first block of a logical raw partition used for an Oracle data file. 


Physical Disk and Logical Partition Considerations

Please consider the following when deciding which raw partition to use:

Frequently Asked Questions

  • Select an area of free space in an extended partition on a disk that is on the shared disk subsystem by clicking the mouse.

  •  

     

    Oracle recommends you use the entire disk.

  • Choose Create Extended... from the Partition menu.

  •  

     

    The Disk Administrator displays the minimum and maximum sizes for the extended partition:

  • Use the default maximum size, then click OK.

  •  

     


    Note:

    Changes you have made are not saved until you choose Commit Changes Now from the Partition menu or quit the Disk Administrator


    The extended partition is created.

    Note the lines now display diagonally from top left to bottom right, indicating the partition is an extended partition.

    Step 2: Create Logical Partitions in an Extended Partition

    After an extended drive is created, you must assign logical partitions to it. Logical partitions are assigned letters of the alphabet.

    The Oracle Database Configuration Assistant requires at least 12 partitions for a two-node cluster's tablespaces.

    Shown below are the number of partitions that must be created and the minimum size that the Oracle Database Configuration Assistant expects. When creating a raw partition, ensure that the size is a little larger than indicated below to account for future growth.

    Number of Partitions Size of Each Partition

    6 for data files 

    101 MB for 2 of the partitions

    50 MB for 3 of the partitions

    20 MB for 2 of the partitions 

    (Optional) 1 data file for Oracle8i interMedia 

    101 MB 

    2 for control files 

    2 MB each 

    2 for redo log for each node 

    3 MB each 

    Partition Creation

    To create logical partitions in an extended partition:

    1. On one of the nodes, select an area of free space in an extended partition by clicking the mouse on it.
    2. Choose Create from the Partition menu.

    3.  

       

      The Disk Administrator window displays the minimum and maximum sizes for the logical partition:

    4. Enter the size of the logical partition, then click OK.
    5. Repeat Steps 1-3 until you have the required number of logical partitions.

    6.  

       

    7. Choose Commit Changes Now from the Partition menu.

    8.  

       

      A confirmation dialog appears, informing you changes have been made to the disk.

    9. Click Yes to acknowledge the message.

    10.  

       

      A dialog box appears, informing you the disks have been updated successfully.

    11. Click OK.
    12. Choose Close from the Partition menu.
    13. Reboot all of the other nodes.
    14. Choose Start > Programs > Administrative Tools > Disk Administrator on all the nodes.

    15.  

       

      On all nodes except the node you created the logical partitions, a dialog box appears, informing you the disk configuration has been detected. If you do not see this dialog box, it does not mean the disk configuration has not changed.

    16. Click OK.

    17.  

       

      The extended partition and the logical partitions are now seen by all of the nodes.


      Note:

      The hard disks that access the shared area may be different from node to node. The logical partitions, however, that reside on the hard disks must be identical on all nodes. 


      For example, Node 1 may look like:

    Figure 3-2 Node 1 Logical Partitions

    Node 2 may look like:

    Figure 3-3 Node 2 Logical Partitions

    On Node 1, the logical partition E is defined as \Device\Harddisk1\Partition1. On Node 2, it is defined as \Device\Harddisk2\Partition1. Even though these map to different disks, they map to the same space on the shared disk.

    Step 3: Unassign Drive Letters

    To free up other drive letters for other purposes, such as mapping network drives, it is important to also unassign the drive letters from the logical partitions on each partition. Oracle8i Parallel Server does not need to access a partition through a drive letter.


    Note:

    If your disks have been previously configured, the logical partitions may already be unassigned. If this is the case, you can skip to Step 6 of this procedure. 


    To unassign drive letters:

    1. On each node, select a logical partition.
    2. Choose Assign Drive Letter from the Tools menu

    3.  

       

      The Assign Drive Letter dialog box appears:

    4. Choose Do not assign a driver letter and click OK.

    5.  

       

      A confirmation dialog box appears.

    6. Click Yes to confirm change.
    7. Repeat Steps 1-4 for each logical partition on each node.
    8. For each node in the cluster, write down the hard disk number(s) and the number of the partition (starting at 1) for that drive. The number of partitions should match the recommendations in "Step 2: Create Logical Partitions in an Extended Partition".

    9.  

       


      Note:

      The hard disks that access the shared area may be different from node to node. The logical partitions, however, that reside on the hard disks must be identical from node to node. 


      Oracle Corporation recommends using a worksheet similar to the one below.

      Node 1 Node 2 Node 3 Node 4

      Hard DiskX

      Partitions X-X

      Partitions X-X

      Partitions X-X

      Partitions X-X

      Hard DiskX

      Partitions X-X

      Partitions X-X

      Partitions X-X

      Partitions X-X

      For example, the worksheet for the Disk Administrator windows shown in Figure 3-2 and Figure 3-3 would look like:

      Node 1 Node 2

      Hard Disk1 

      Partitions 1-6 

      n/a 

      Hard Disk2 

      Partitions 1-3 

      Partitions 1-6 

      Hard Disk3 

      n/a 

      Partitions 1-3 

    10. Choose Close from the Partition menu on all nodes.

    11.  

       

      The Disk Administrator application exits.

    12. Reboot each node.

    13.  

       
       
       

    Step 4: Assign Symbolic Links to Each Logical Partition


    Note:

    If you do not plan create a database during a Typical or Custom install and do not want to use the Oracle Configuration Database Assistant, you do not have to perform this procedure. Instead, proceed to Oracle8i Parallel Server Setup and Configuration Guide, Chapter 3, "Installing Oracle8i Parallel Server" to install, then to "Starting the Database in Parallel Mode"


    The Oracle SETLINKS utility creates symbolic links to raw logical partitions.


    Note:

    It is not required to run this utility prior to installation if the Custom installation type was chosen and:

    • the Oracle Database Configuration Assistant was not run
    • a database was not installed but the Oracle8i Parallel Server Option was chosen

    See Chapter 4, "Configuring Oracle8i Parallel Server", for information about running SETLINKS during a manual configuration. 


    For example, with the SETLINKS utility, you can create a symbolic link called OP_log1 to the second logical partition on the second physical disk:

    OP_log1_1 \Device\Harddisk2\Partition2
    

    The Oracle8i Enterprise Edition CD-ROM contains the following ASCII files (in the \OPS_PREINSTALL directory), with symbolic link names already associated with raw partitions. These files should be used as templates to create your own *.TBL files.
    .
    This File... Description

    OP.TBL 

    Contains symbolic link names already associated with raw partitions for a two-node cluster, supporting a database type created with the Oracle Database Configuration Assistant. This file should be used if you plan to create a database with the Oracle Database Configuration Assistant and you want the database name to be OP. 

    TEMPLATE.TBL 

    Contains symbolic link names already associated with raw partitions for a four-node cluster, supporting a database created with the Oracle Database Configuration Assistant. 

    Figure 3-4 shows TEMPLATE.TBL, which contains symbolic links to support a four-node cluster.

    Figure 3-4 TEMPLATE.TBL

    where:

    This symbolic link name... Corresponds to...

    <DB_NAME>_sys1 

    SYSTEM tablespace for system data file 

    <DB_NAME>_dr 

    DR tablespace for Oracle8i interMedia data file

    This symbolic link is only necessary if the Oracle8i interMedia option is to be installed. 

    <DB_NAME>rbs1 

    RBS tablespace for rollback data file 

    <DB_NAME>oemrep1 

    OEM_REPOSITORY tablespace for the Oracle Enterprise Manager repository 

    <DB_NAME>usr1 

    USERS tablespace for user workspace 

    <DB_NAME>indx1 

    INDX tablespace for indexes 

    <DB_NAME>tmp1 

    TEMP tablespace for temporary data file 

    <DB_NAME>ctl1 

    first control file 

    <DB_NAME>ctl2 

    second control file 

    <DB_NAME>log1_1 

    first log file for first node 

    <DB_NAME>log1_2 

    second log file for first node 

    To create symbolic links to the logical partitions, perform the following steps on each node:

    1. Create a temporary directory.
    2. Insert the Oracle8 Enterprise Edition CD-ROM.
    3. Copy the SETLINKS executable and the OP.TBL or TEMPLATE.TBL file you will need from the \OPS_PREINSTALL directory to the temporary directory you created.
    4. Add additional entries for log files if your cluster contains more than two nodes or your node numbers are not 0 and 1.
    5. Edit the partition and hard disk numbers appropriately in the *.TBL file to match the disk numbers and partitions number you wrote down in "Step 3: Unassign Drive Letters".

    6.  

       

      You can use a worksheet similar the one below to assist with the process:

      Symbolic Link Node 1 Node 2

      OP_dr 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_sys1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_tmp1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_rbs1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_indx1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_oemrep1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_usr1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_ctl1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_ctl2 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_log1_1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_log1_2 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_log2_1 

      Harddiskx Partitionx

      Harddiskx Partitionx

      OP_log2_2 

      Harddiskx Partitionx

      Harddiskx Partitionx

    7. Run the *.TBL through the SETLINKS application as shown below:
    8. C:\> CD TEMP_DIR
      C:\> TEMP_DIR> SETLINKS /F:FILE.TBL
      

      SETLINKS maps the drives to the symbolic label names. For example:

      Oracle Corporation. Copyright (c) 1998. All rights reserved.
      Created Link:
      Created Link:OP_dr = Device:\Device\Harddisk1\Partition1
      Created Link:OP_sys1 = Device:\Device\Harddisk1\Partition2
      Created Link:OP_tmp1 = Device:\Device\Harddisk1\Partition3
      Created Link:OP_rbs1 = Device:\Device\Harddisk1\Partition4
      Created Link:OP_oemrep1 = Device:\Device\Harddisk1\Partition5
      Created Link:OP_usr1 = Device:\Device\Harddisk1\Partition6
      Created Link:OP_ctl1 = Device:\Device\Harddisk2\Partition1
      Created Link:OP_ctl2 = Device:\Device\Harddisk2\Partition2
      Created Link:OP_log1_1 = Device:\Device\Harddisk2\Partition3
      Created Link:OP_log1_2 = Device:\Device\Harddisk2\Partition4
      Created Link:OP_log2_1 = Device:\Device\Harddisk2\Partition5
      Created Link:OP_log2_2 = Device:\Device\Harddisk2\Partition6
      Dos devices updated successfully.
      
    9. Make sure the drives have been mapped with the correct names as shown below:
    10. C:\> TEMP_DIR> SETLINKS /D
      

      SETLINKS shows how the symbolic link names have been mapped:

      Oracle Corporation. Copyright (c) 1999. All rights reserved.
      OP_dr = \Device\Harddisk1\Partition1
      OP_sys1 = \Device\Harddisk1\Partition2
      OP_tmp1 = \Device\Harddisk1\Partition3
      OP_rbs1 = \Device\Harddisk1\Partition4
      ...
    Remove Links

    To remove an existing symbolic link:

    List a symbolic link without a device path in the *.TBL file.

    For example:

    OP_dr
    OP_sys1 \Device\HarddiskX\PartitionX
    OP_tmp1 \Device\HarddiskX\PartitionX
    OP_rbs1 \Device\HarddiskX\PartitionX 
    OP_indx1        \Device\HarddiskX\PartitionX
    OP_oemrep1      \Device\HarddiskX\PartitionX
    OP_usr1 \Device\HarddiskX\PartitionX
    OP_ctl1 \Device\HarddiskX\PartitionX
    OP_ctl2 \Device\HarddiskX\PartitionX
    OP_log1_1                               \Device\HarddiskX\PartitionX                                    
    OP_log1_2                               \Device\HarddiskX\PartitionX                                    
    OP_log2_1                               \Device\HarddiskX\PartitionX                                    
    OP_log2_2                               \Device\HarddiskX\PartitionX                                    
    

    This removes the OP_dr link and creates the other links specified.


    Prev Next
    Oracle
    Copyright © 1999 Oracle Corporation.
    All Rights Reserved.
    Library Product Contents Index