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)
13. Data Integrity Validation in SAM-QFS
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
How to Set the Global VSN and Age Priority Directives
How to Set Global or File System-Specific Water Mark Directives
In the stager.cmd file, specify directives to override the default behaviors. You can configure the stager to stage files immediately, to never stage files, to staging partially, and to specify other staging actions. For example, specifying the never-stage attribute benefits applications that access small records from large files because the data is accessed directly from the archive media without staging the file online.
This section describes the stager directives. For additional information about stager directives, see stager.cmd(4) in Sun QFS and Sun Storage Archive Manager Reference Manual. If you are using the SAM-QFS Manager software, you can control staging from the File System Summary or File System Details page. You can browse the file system and see the status of individual files, use filters to view certain files, and select specific files to stage. You can select which copy to stage from or let the system choose the copy.
Example 15-1 stager.cmd File
The following example shows a stager.cmd file after all possible directives have been set.
# This is stager.cmd file /etc/opt/SUNWsamfs/stager.cmd drives=dog 1 bufsize=od 8 lock logfile=/var/adm/stage.log maxactive=500
# samd config
By default, the stager uses all available drives when staging files. If the stager keeps all the drives busy, it can interfere with the archiver's activities. The drives directive specifies the number of drives available to the stager. This directive has the following format:
drives = library count
|
Example 15-2 Drives Directive
The following example specifies that only one drive from the dog family set's library is used for staging files:
drives = dog 1
By default, a file being staged is read into memory in a buffer before being restored from the archive media to disk cache. Use the bufsize directive to specify a buffer size and, optionally, to lock the buffer. These actions can improve performance. You can experiment with various buffer-size values. The directive has the following format:
bufsize = media buffer-size [lock]
|
You can request that the SAM-QFS software collect file-staging event information and write it to a log file. By default, no log file is written. The logfile directive specifies a log file to which the stager can write logging information. The stager writes one or more lines to the log file for each file staged. This line includes information such as the name of the file, the date and time of the stage, and the volume serial number (VSN). The directive has the following format:
logfile=filename [event]
|
Example 15-3 Specifying a Stager Log File
The following directive creates the /var/adm/stage.log file:
logfile=/var/adm/stage.log
Example 15-4 Stager Log File
S 2003/12/16 14:06:27 dk disk01 e.76d 2557.1759 1743132 /sam1/testdir0/filebu 1 root other root 0 - F 2003/12/16 14:06:27 dk disk01 e.76d 2557.1759 1743132 /sam1/testdir0/filebu 1 root other root 0 - S 2003/12/16 14:06:27 dk disk02 4.a68 1218.1387 519464 /sam1/testdir1/fileaq 1 root other root 0 - S 2003/12/16 14:06:43 dk disk01 13.ba5 3179.41 750880 /sam1/testdir0/filecl 1 root other root 0 - F 2003/12/16 14:06:43 dk disk01 13.ba5 3179.41 750880 /sam1/testdir0/filecl 1 root other root 0 - S 2003/12/16 14:06:59 dk disk01 17.167b 1155.1677 1354160 /sam1/testdir0/filedb 1 root other root 0 / - F 2003/12/16 14:06:59 dk disk01 17.167b 1155.1677 1354160 /sam1/testdir0/filedb 1 root other root 0 / - S 2003/12/16 14:06:59 dk disk02 f.f82 3501.115 1458848 /sam1/testdir1/filecb 1 root other root 0 - S 2003/12/16 14:07:15 dk disk01 1f.473 1368.1419 636473 /sam1/testdir0/fileed 1 root other root 0 - S 2003/12/16 14:07:15 dk disk02 16.f15 3362.45 1065457 /sam1/testdir1/filecz 1 root other root 0 - S 2003/12/16 14:07:31 dk disk01 23.201d 3005.1381 556807 /sam1/testdir0/fileeq 1 root other root 0 - S 2003/12/16 14:07:47 dk disk01 26.c4d 2831.1113 1428718 /sam1/testdir0/fileez 1 root other root 0 - S 2003/12/16 14:07:47 dk disk02 1b.835 3736.59 1787855 /sam1/testdir1/filedp 1 root other root 0 -
The following table describes the content of the stager log file fields.
|
The maxactive directive enables you to specify the number of stage requests that can be active at any one time. The directive has the following format:
maxactive=number
By default, number is 4000. The minimum number allowed is 1. The maximum allowed is 500,000.
The following example specifies that no more than 500 stage requests can be in the queue simultaneously:
maxactive=500