Previous  |  Next  >  
Product: Storage Foundation for Databases Guides   
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide   

Storage Checkpoint Allocation Policies

VERITAS File System provides Multi-Volume File Systems (MVS) when used in conjunction with the Volumes Set feature in VERITAS Volume Manager. A volume set is a container for multiple different volumes. MVS enables creation of a single file system over multiple volumes, each volume with properties of its own. This helps administrators specify which data goes on which volume types. For more details about MVS, see VERITAS Volume Manager Administrator's Guide. Setting up a storage configuration for MVS operations is a system administrator's responsibility and requires superuser (root) privileges.

Multi-Volume File Systems provide, a database administrator, through the SFUA checkpoint administration interface, the ability to create Storage Checkpoint Allocation Policies. A Storage Checkpoint Allocation policy specifies a list of volumes and the order in which to attempt allocations. Once defined, a database administrator can use these policies to:

  • Control where the storage checkpoint should be created enabling separation of metadata and data of a storage checkpoint to different volumes.
  • Separate storage checkpoints so that data allocated to a storage checkpoint is isolated from the primary file system. This helps control the space used by the checkpoint and prevents the checkpoint from fragmenting the space in the primary fileset.

When policies are assigned to a storage checkpoint, the database administrator must specify the mapping to both metadata and file data. If no policies are specified for the storage checkpoint, the data is placed randomly within the primary file system. Data and metadata of storage checkpoints can have different policies assigned to them or use the same policy to be applied to data and metadata. Multiple checkpoints can be assigned the same checkpoint allocation policy. A partial policy is also allowed; a partial policy means that the policy does not exist on all file systems used by the database.

Once the policy is assigned to checkpoints, the allocation mechanism attempts to satisfy the request from each device in the policy in the order the devices are defined. If the request cannot be satisfied from any of the devices in the policy, the request will fail, even if other devices exist in the file system which have space. Only those devices can provide allocation that are listed in the policy. This implementation is the mechanism for preventing allocation requests from using space in other devices which are not specified in the policy. It is recommended that you allocate sufficient space for the volumes defined in the Storage Checkpoint policy or update the policy to include additional volumes. This also helps in retaining the old Storage Checkpoints.

Once the assigned policy is deleted, the allocation for metadata and file data for subsequent requests of storage checkpoint will return to the no policy assigned state.


Usage Notes

  • Since the checkpoint policies feature is associated with MVS file system, it is available only on file systems using disk layout Version 6.
  • Storage checkpoint allocation policy requires VxVM Volume Set and VxFS Multi-Volume File Systems features to be enabled. These features are included in the Enterprise Edition of Storage Foundation. Refer to the Multi-Volume File System chapter in the VERITAS File System Administrator's Guide, for creating Volume Sets and MVS file systems for the primary file systems used by the database datafiles.
  • Data allocation is done by the volumes in the order that was assigned in the policy.
  • The maximum length of an checkpoint policy name is 64 characters.

Using Storage Checkpoint Allocation Policies

You can use the dbed_ckptpolicy command to administrate the storage checkpoint allocation policies. For detailed information on administrating Storage Checkpoint Policy via the CLI, see VERITAS Storage Foundation for Oracle Command Line Interface.


Note   Note    You cannot administer Storage Checkpoint Allocation policies through the VxDBA utility menu or the GUI.

Usage Notes

See the dbed_ckptpolicy(1M) and dbed_ckptcreate(1M) manual pages for more information. dbed_ckptpolicy command need to be executed by the Oracle database administrator.

In the following example, the file systems for database datafiles are set up as follows:

  • Two MVS file systems /mvsfs/v1 and /mvsfs/v2 used for database datafiles.
  • File system /mvsfs/v1 is created on volume set mvsvset1.
  • File system /mvsfs/v2 is created on volume set mvsvset2.
  • Volume set mvsvset1 contains volumes mvsv1, mvsv2, and mvsv3.
  • Volume set mvsvset2 contains volumes mvsv4 and mvsv5.


Usage

Use the dbed_ckptpolicy command with the following options.


dbed_ckptpolicy -S ORACLE_SID [ -H ORACLE_HOME ] [-n] [-h] options

Where options could be any of the following parameters:


 -o create|update|remove -p ckpt_sample
 -o display [-c ckpt_name | -p ckpt_sample]
 -o assign -c ckpt_name -p ckpt_data_policy[,ckpt_metadata_policy]

Creating a Storage Checkpoint Allocation policy

  To create a Storage Checkpoint allocation policy

Use the dbed_ckptpolicy command as follows:


$ /opt/VRTS/bin/dbed_ckptpolicy -S ORACLE_SID \
-o create -p
ckpt_policy

Note   Note    A partial policy indicates that the Storage Checkpoint allocation policy does not include all the file systems used by the database.

Example

In the following example, the database name is PROD and the Storage Checkpoint allocation policy that is created is named ckpt_sample.


dbed_ckptpolicy -S PROD -o create -p ckpt_sample

Output similar to the following is displayed.


File System: /mvsfs/v2 (MVS volumes: mvsv4,mvsv5)
Assigned Data Policy: NONE (MVS Volumes: N/A)
Assigned Meta Data Policy: NONE (MVS Volumes: N/A)
Please enter the volume name(s), separated by space, for the policy ckpt_sample [skip,quit]: mvsv4
File System: /mvsfs/v1 (MVS volumes: mvsv1,mvsv2,mvsv3)
Assigned Data Policy: NONE (MVS Volumes: N/A)
Assigned Meta Data Policy: NONE (MVS Volumes: N/A)
Please enter the volume name(s), separated by space, for the policy ckpt_sample [skip,quit]: mvsv2
The following information will be used to create policy ckpt_sample
ckpt_sample               /mvsfs/v2             mvsv4
ckpt_sample               /mvsfs/v1             mvsv2

Assigning a Storage Checkpoint Allocation policy

You can use either of the following methods to assign an allocation policy to a Storage Checkpoint:

  • Use the dbed_ckptpolicy command to assign allocation policies to an existing storage checkpoint.
  • Use [ -p ckpt_data_policy[,ckpt_metadata_policy]] option in dbed_ckptcreate command to supply policies when executed.

  • Note   Note    dbed_ckptcreate command automaticlly assigns the policies when the storage checkpoint is created.

  To assign an allocation policy to an existing Storage Checkpoint

The following procedure uses dbed_ckptpolicy to assign an allocation policy to an existing Storage Checkpoint. This example uses PROD as the database name and Checkpoint_1096060202 as a sample Storage Checkpoint.

  1. Create an online Storage Checkpoint for database PROD.
     $ dbed_ckptcreate -S PROD -H ORACLE_HOME -o online

    As a result, Checkpoint_1096060202 is created.

  2. Assign a Storage Checkpoint policy to the Checkpoint_1096060202.
    $ dbed_ckptpolicy -S PROD -n -o assign -c Checkpoint_1096060202 \
    -p ckpt_data,ckpt_metadata
  3. Display the details of the Storage Checkpoint allocation policy assigned to Checkpoint_1096060202.
     $ dbed_ckptpolicy -S PROD -n -o display -c Checkpoint_1096060202

    Output similar to the following is displayed:


    Storage Checkpoint              File System         Data Policy         Meta Data Policy
    ------------------               ------------          ------------ ------------------
    Checkpoint_1096060202               /mvsfs/v2        ckpt_data         ckpt_metadata
    Checkpoint_1096060202               /mvsfs/v1        ckpt_data         ckpt_metadata

  To assign an allocation policy to a new Storage Checkpoint

  1. Use dbed_ckpcreate to assign an allocation policy to a new Storage Checkpoint.
      $ dbed_ckptcreate -S PROD -H -o online -p ckpt_data,ckpt_metadata

    As a result, a Storage Checkpoint allocation policy is assigned to Checkpoint_1096060122, which is a new Storage Checkpoint.

  2. Display the details of the Storage Checkpoint allocation policy assigned to checkpoint 1096060122.
      $ dbed_ckptpolicy -D PROD -n -o display -c Checkpoint_1096060122

Output similar to the following is displayed:


Storage Checkpoint              File System          Data Policy         Meta Data Policy
------------------              ------------         -----------         ----------------
Checkpoint_1096060122               /mvsfs/v2        ckpt_data         ckpt_metadata
Checkpoint_1096060122               /mvsfs/v1        ckpt_data         ckpt_metadata

Displaying a Storage Checkpoint Allocation policy

  To display a Storage Checkpoint allocation policy

Use the -o display option to list all the Storage Checkpoint allocation policies contained in the file systems used by the database.


Usage


dbed_ckptpolicy -S ORACLE_SID -n -o display

Output similar to the following is displayed:


Policy Name             File System Coverage
------------------             --------------------
ckpt             Complete
ckpt_data             Complete
ckpt_metadata             Complete
new_ckpt             Partial
ckpt_sample             Complete
Note   Note    Partial in the File System Coverage column indicates that the Storage Checkpoint allocation policy does not include one or more of the file systems used by the database.

  To display Storage Checkpoint Allocation Policy information

Use the -o display -p checkpointpolicy_name option to display information related to a specific Storage Checkpoint allocation policy.


Usage


dbed_ckptpolicy -S ORACLE_SID -n -o display -p checkpointpolicy_name

Output similar to the following is displayed:


Policy Name          File System         MVS volumes
------------          -----------         -----------
ckpt_sample          /mvsfs/v2         mvsv4
ckpt_sample          /mvsfs/v1         mvsv2

  To display the allocation policies assigned to a Storage Checkpoint

Use the -o display -c checkpoint_xxxxxxxxx option to display the allocation policies assigned to the Storage Checkpoint.


Usage


dbed_ckptpolicy -S ORACLE_SID -n -o display -c Checkpoint_xxxxxxxxxx

Output similar to the following is displayed:


Storage Checkpoint               File System         Data Policy         Meta Data Policy
------------------           ---    -----------         -----------         ---------------
Checkpoint_1095125037               /mvsfs/v2         ckpt_data         ckpt_metadata
Checkpoint_1095125037               /mvsfs/v1         ckpt_data         ckpt_metadata

Updating a Storage Checkpoint Allocation Policy

  To update a Storage Checkpoint Allocation Policy

Use the -o update -p checkpoint_policy_name option to update an allocation policy.


Example


dbed_ckptpolicy -S ORACLE_SID -n -o update -p checkpointpolicy_name

Output similar to the following is displayed:


File System: /mvsfs/v2 (MVS volumes: mvsv4,mvsv5)
Policy: ckpt_sample (MVS volumes: mvsv4)
Please enter the volume name(s), separated by space, for the policy ckpt_sample [skip,quit]: mvsv5
File System: /mvsfs/v1 (MVS volumes: mvsv1,mvsv2,mvsv3)
Policy: ckpt_sample (MVS volumes: mvsv2)
Please enter the volume name(s), separated by space, for the policy ckpt_sample [skip,quit]: mvsv2,mvsv3
The following information will be used to create policy ckpt_sample
ckpt_sample          /mvsfs/v2         mvsv5
ckpt_sample          /mvsfs/v1         mvsv2,mvsv3
where mvsv4 is the volume currently using the allocation policy.
Note   Note    The output displays the volumes that are currently assigned in the Storage Checkpoint allocation policy.

Note   Note    You are prompted to enter any new volumes to which you would want to assign the Storage Checkpoint allocation policy.

Removing a Storage Checkpoint Allocation Policy

  To remove a Storage Checkpoint Allocation Policy

Use the following command to remove a Storage Checkpoint allocation policy:


dbed_ckptpolicy -S ORACLE_SID -n -o remove -p checkpointpolicy_name

Converting from Regular VxFS file system to MVS

The following procedure describes the conversion of a regular VxFS file system to MVS file system and optionally add new volume to it. Converting a regular VxFS to MVS requires superuser (root) privileges. For further details on creating and administrating the VxVM Volume Sets and VxFS Multi-Volume Files System, refer to the VERITAS Volume Manager Administrator's Guide and VERITAS File System Administrator's Guide.

  To convert from a regular VxFS file system to MVS:

  1. Select a non-MVS file system to convert to MVS and unmount it.
    # umount /mnt1
  2. Create the volume set.
    # vxvset -g dgname make myvset old_vol
  3. Mount the volume set.
    # mount -F vxfs /dev/vx/dsk/dgname/myvset /mnt1
  4. Upgrade the volume set's file system to Version 6 disk layout. See VERITAS File System Installation Guide and the vxfsconvert(1M) and vxupgrade(1M) manual pages for information on upgrading VxFS disk layouts.
    # vxupgrade -n 6 /mnt1
  5. Add the new volume to the volume set.
    # vxvset -g dgname addvol myvset new_vol
  6. Add the new volume to the file system. You must specify the size of the volume.
    # fsvoladm add /mnt1 new_vol 2g

    where new_vol is the name of the newly added volume and 2g is the size of the volume.

  7. Verify the new volume in the file system.
    # fsvoladm list /mnt1
 ^ Return to Top Previous  |  Next  >  
Product: Storage Foundation for Databases Guides  
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide  
VERITAS Software Corporation
www.veritas.com