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 |
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
7. Managing Automated Libraries and Manually Loaded Drives
8. Managing Vendor-Specific Libraries
11. Archive Directives (archiver.cmd)
12. Archive Set Directives (archiver.cmd)
Releasing and staging are complementary processes. Files can be completely released from online disk cache after they are archived, or a site can specify that the beginning of a file (the stub) remain in disk cache while the remainder of the file is released. Partially releasing a file provides immediate access to data in the file stub without requiring that the file be staged. You can specify both the default partial release size and the maximum size of the stub to remain online when a file system is mounted.
You can set the through the values for partial releasing and staging using the mount command or in the SAM-QFS Manager. See the SAM-QFS Manager online help for more information.
The mount command options are as follows:
-o partial= n option - Sets the default size (n) of a file stub to remain online. The -o partial= n setting must be less than or equal to the -o maxpartial= n setting.
-o maxpartial= n option - Sets the maximum size (n) of a file stub to remain online.
You can specify the default stub size for a file by specifying the --p option on the release command or the -p option on the sam_release library routine. To specify different-sized file stubs for different types of files or different applications, specify the --s option on the release command or the -s option on the sam_release library routine. The -s and s values must be less than the -o maxpartial value used with the mount command when the file system was mounted.
Note - A partially released file takes up space on the disk equal to one DAU. For example, if the partial release file stub is set to 16K and the DAU size is 256K, the actual space consumed by the file on the disk is 256K.
Use the mount option, -o partial_stage= n, to establish how much of a partial release stub must be read before the rest of the file is staged. Reading past the -o partial_stage= n size specification initiates the stage of the file.
By default, the -o partial_stage= n option is set to the size of the partial release stub. Changing this value affects file staging as follows:
If the -o partial_stage= n option is set to the size of the partial release stub, the default behavior prevents the file from being staged until the application reaches the end of the partial release stub. Waiting until the end of the stub is reached causes a delay in accessing the rest of the file.
If the -o partial_stage= n option is set to a value smaller than the partial release stub, the file is staged after the application crosses the threshold set by the -o partial_stage= n option. This reduces the chance of a delay in accessing the rest of the file data.
Example 14-1 Partial Staging
In this example, a site has set the following options:
-o partial_stage=16 (16 kilobytes)
-o partial=2097152 (2 gigabytes)
-o maxpartial=2097152 (2 gigabytes)
The filemgr program reads the first 8 kilobytes of a file. The file is not staged.
A video-on-demand application reads the same file. After it reads past the first 16 kilobytes of the file, the file is staged. The application continues reading while the archive tape is mounted and positioned.
When the video-on-demand application reads past 2 gigabytes of file data, it is reading immediately behind the staging activity. The application does not wait, because the tape mounting and positioning is done while the application reads the partial file data.
Several command-line options affect whether a file can be marked for partial release. Some options are enabled by the system administrator, and others can be enabled by individual users. The following sections describe the release characteristics that can be set by the various types of users.
As a system administrator, you can change the maximum value and default value for partial release when the file system is mounted. The mount options in the following table affect partial release. For more information about the mount command, see mount_samfs(1M) in Sun QFS and Sun Storage Archive Manager Reference Manual.
|
As a user, you can set maximum and default values for the size of a file stub that can remain in disk cache after the file is released. You can also determine whether the partial release feature is enabled for a particular file system.
By using the release command and the sam_release library routines, however, a user can set other release attributes and can specify the files to be marked for partial release. The command and library options that determine partial release attributes are shown in the following table. For more information, see release(1) in Sun QFS and Sun Storage Archive Manager Reference Manual and sam_release(3) in Sun QFS and Sun Storage Archive Manager Reference Manual.
Table 14-1 User Release Options
|