JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun Storage Archive Manager 5.3 Configuration and Administration Guide     Sun QFS and Sun Storage Archive Manager 5.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  About SAM-QFS

2.  Configuring Storage Devices for Archiving

3.  Performing Additional SAM-QFS Configuration

4.  Creating Parameters Files for Network-Attached Automated Libraries

5.  Checking the Drive Order in Libraries

6.  Populating the Catalog

7.  Managing Automated Libraries and Manually Loaded Drives

8.  Managing Vendor-Specific Libraries

9.  About Archiving

10.  Configuring the Archiver

11.  Archive Directives (archiver.cmd)

12.  Archive Set Directives (archiver.cmd)

13.  Data Integrity Validation in SAM-QFS

14.  About Releasing

15.  Configuring the Stager

About Staging

About the stager.cmd File

How to Create a stager.cmd File

drives Directive: Specifying the Number of Drives for Staging

bufsize Directive: Setting the Stage Buffer Size

logfile Directive: Specifying a Log File

maxactive Directive: Specifying the Number of Stage Requests

Archive Set Assignment Directive: Specifying Stage Attributes for All Files in an Archive Set

copysel Directive: Specifying the Copy Sequence for Staging

Prioritizing Preview Requests

About the preview.cmd File

How to Set the Global VSN and Age Priority Directives

How to Set Global or File System-Specific Water Mark Directives

Setting Up a Preview Request Priority Scheme

16.  Configuring the Recycler

17.  Advanced SAM-QFS Topics

18.  Using the Sun SAM-Remote Software

Prioritizing Preview Requests

Both the archiver and stager processes request that media is loaded and unloaded. If the number of requests exceeds the number of drives available for media loads, the excess requests are sent to the preview queue.

The number of entries that can be in the preview queue is determined by the previews= directive in the defaults.conf file. For information about changing the value of this directive, see defaults.conf(4) in Sun QFS and Sun Storage Archive Manager Reference Manual.

By default, preview requests are satisfied in first-in-first-out (FIFO) order.

The overall priority of preview requests is determined by the combination of static and dynamic factors. Higher numbers correspond to higher priority. A static priority factor is set when the request is generated. Its effect does not change the overall priority after the request is generated and is waiting to be satisfied. A dynamic priority factor can increase or decrease the overall priority of a request while the request is waiting to be satisfied.

You can override the FIFO default by entering directives in the /etc/opt/SUNWsamfs/preview.cmd command file.

About the preview.cmd File

The sam-amld daemon reads the preview.cmd file at startup. This file orders the requests in the preview queue according to whether the request is for staging or archiving. You can increase the priority for specific VSNs and you can control the priority of preview requests for specific file systems.

The following rules apply to the preview.cmd file:

The following types of directives are used in the preview.cmd file:

Global directives are placed at the top of the file and their settings apply to all file systems.

File system directives begin with the fs = directive, which names the file system to which all subsequent directives apply. More than one block of file directives can appear in a file. File system directives apply until the next fs = line is encountered or until the end of file is encountered.

When multiple directives affect a file system, the directives that are specific to that file system override the global directives.

The following sections describe how to edit the preview.cmd file to control the preview queue:

How to Set the Global VSN and Age Priority Directives


Caution

Caution - The VSN and age priority directives are global directives, so they are placed before any file-system-specific directives in the preview.cmd file.


  1. Update the vsn_priority directive.
    vsn_priority = value

    This directive is a static priority factor that indicates the value by which the total priority increases when there is a high-priority volume. The default value for is 1000.0. To use this priority factor, a volume must have its priority flag set before it is scheduled as a preview request. Use the chmed(1M) command to set the priority flag with the -p option (for example, chmed +p lt.AAA123).

  2. Update the age_priority directive.
    age_priority = factor

    This directive is a static priority factor, although its effect is dynamic. This factor is multiplied by the number of seconds for which a request is a preview request. The result is then added to the overall priority of the request. The longer a request waits, the higher the priority becomes. Setting this factor ensures that older requests are not indefinitely superseded by newer requests with other higher-priority factors.

    Setting this factor to more than 1.0 increases the importance of the time factor in calculation of the total priority and setting it to less than 1.0 decreases the importance of the time factor. Setting the factor to 0.0 eliminates the time factor from the overall priority calculation.

    A volume whose priority flag is not set increases in priority based on the time it remains in the queue. Its priority can become higher than a VSN that comes into the queue later with the priority flag already set.

How to Set Global or File System-Specific Water Mark Directives

Setting Up a Preview Request Priority Scheme

The total priority for a preview request is the sum of all priority factors:

total priority = vsn_priority + wm_priority + (age_priority * time_in_sec_as_preview_request)

Change the default FIFO scheme only for reasons such as the following:

Example 15-6 Sample preview.cmd File

# condition 1
lwm_priority = -200.0
lhwm_priority = -200.0
hlwm_priority = -200.0
# condition 2
hwm_priority = 500.0
# condition 3
age_priority = 1.0

For environments in which user access to data is of paramount importance, the VSN drives are limited, or file archiving is performed as a background function, use the preview.cmd file to influence how the storage system resources handle staging requests. You can customize the settings in the preview.cmd file to support any of the preceding scenarios and influence the configured SAM-QFS environment.

Because data is not affected by the settings in this file, you are encouraged to experiment and adjust the directive settings to achieve the proper balance between archiving and staging requests when weighed against the priorities of each preview request.

Example 15-7 Scheme for Enforcing Stage Requests

The following example calculations show how you can use a negative value for wm_priority to ensure that stage requests have priority over archive requests. This example assumes the following:

The following table shows how the total request priorities are calculated as follows:

Priority
Calculation
Archive VSN with priority, LWM
1000 + (-200) + (1 x 100) = 900
Stage VSN with priority, LWM
1000 + 0 + (1 x 100) = 1100
Stage VSN without priority, LWM
0 + 0 + (1 x 100) = 100

Example 15-8 Scheme for Enforcing Archive Requests

When the environment is balanced between the importance of staging a file for the user and the importance of getting new files archived to media, the biggest concern is exceeding the HWM level. In this situation, if not enough files have met their archive requirements to lower the percentage of the file system that is full, meeting the pending archive requests is the best way to keep the file system from reaching its limit.

In this situation, the preview.cmd file can be as simple as the following example:

hwm_priority = 500.0

Example 15-9 Scheme for Ranking Requests by Media Type

Assume that a site has an environment in which users are working on groups of files that use specific volumes and are segregated from other users. In this environment, certain projects might have higher priorities at certain times; therefore, greater priority is required from the available system storage resources. The following example gives users and their media the appropriate priority:

vsn_priority = 5000.0

Then, for every volume in the priority user's group, include the following information:

# chmed +p lt. VSN

Now every request that requires the specified VSN is placed above other pending mount requests in the preview queue.

Example 15-10 Scheme for Complex Priorities

Assume two file systems that have the following requirements:

Assume both file systems are over the HWM level but the second file system (samfs2) must be prevented from reaching its limit. The following example shows a preview.cmd file that prioritizes requests according to these requirements.

age_priority = 100.0
vsn_priority = 20000.0
lhwm_priority = -200.0
hlwm_priority = -200.0
fs = samfs1
hwm_priority = 1000.0
fs = samfs2
hwm_priority = 5000.0