![]() |
< Previous | Next > |
Product: Storage Foundation for Databases Guides | |
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide |
Storage Checkpoint Allocation PoliciesVERITAS 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:
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.
Using Storage Checkpoint Allocation PoliciesYou 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. ![]() 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:
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
Use the dbed_ckptpolicy command as follows: $ /opt/VRTS/bin/dbed_ckptpolicy -S ORACLE_SID \ -o create -p ckpt_policy ![]() 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 policyYou can use either of the following methods to assign an allocation policy to a 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.
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
Use the -o display option to list all the Storage Checkpoint allocation policies contained in the file systems used by the database. $ 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 ![]()
Use the -o display -p checkpointpolicy_name option to display information related to a specific Storage Checkpoint allocation policy. $ 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
Use the -o display -c checkpoint_xxxxxxxxx option to display the allocation policies assigned to the Storage Checkpoint. $ 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
Use the -o update -p checkpoint_policy_name option to update an allocation policy. $ 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. ![]() ![]() Removing 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 MVSThe 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.
|
^ 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 |