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

16.  Configuring the Recycler

About Recycling

Recycle Process

Planning for Recycling

Recycling Methods

Controlling Recycling

Starting the Recycler

Configuring Recycling on Removable Media Cartridges

Creating a recycler.cmd File

logfile Directive: Specifying a Log File

no_recycle Directive: Preventing Recycling

library Directive: Specifying Recycling for an Automated Library

-hwm Parameter

-mingain Parameter

-ignore Parameter

-mail Parameter

Creating a recycler.sh File

Configuring Recycling for Disk Archive Volumes

Editing the archiver.cmd File

Recycler Logging for Disk Archives

Recycling for Archive Copy Retention

17.  Advanced SAM-QFS Topics

18.  Using the Sun SAM-Remote Software

About Recycling

Recycling is the process of reclaiming space on archive volumes. The recycler works with the archiver to reclaim the space occupied by unused archive copies. As users modify files, the archive copies associated with the old versions can be purged from the system. The recycler identifies the volumes with the largest proportions of expired archive copies and directs the movement of unexpired copies to different volumes. If only expired copies exist on a given volume, a site-defined action is taken. For example, a volume can be relabeled for immediate reuse or exported to offsite storage, keeping a separate historical record of file changes. Users are unaware of the recycling process.

At any time, the space on an archive volume consists of the following:

The recycler keeps the amount of space consumed by expired data to the minimum defined by site-specified parameters.

The capacity of a volume is the total amount of space for data on a volume. For example, a 10-gigabyte volume with 3 gigabytes written to it has a capacity of 10 gigabytes and 7 gigabytes of free space.

New or newly labeled archive media starts with all of its capacity as free space. As data is archived to the media, the amount of free space decreases and the amount of current data increases.

As files in the file system are changed or removed, their archive images expire and the classification of their data changes from the current data to the expired data. The physical space used by the archive images does not change. However, no file in the file system points to that space. When space is recycled, these images are removed and the space they occupied become free, available for other purposes. The goal of the recycler is to transform space used by expired data into free space without losing any current data.

Recycle Process

The recycler and the archiver work together as follows:

  1. The recycler marks all the current archive images that are present on a volume with the rearchive attribute.

  2. If you are archiving to removable media, the recycler marks the archive volume with the recycle attribute to prevent the archiver from writing any more archive images to the volume.

  3. The archiver moves all the marked images to another volume. This operation is called re-archiving. After the archiver moves the current archive images from the old volume to the new volume, the old volume contains only free space and expired space. If you are archiving to removable media cartridges, you can relabel and reuse the cartridge. If you are archiving to disk, the recycler removes the file that contains the expired archive images.

The recycler is designed to run periodically, although you can run it at any time. It performs as much work as it can each time it is invoked. The recycler has to finish marking copies for re-archiving before the archiver can re-archive the files. Sometimes expired archive images, with the rearchive attribute set, remain on media. This situation can happen under the following conditions:

Between executions, the recycler keeps state information in the library catalogs and the inodes. During the recycling process, you can use the sls(1) command and its -D option to display information about a file. The output from the sls(1) command shows whether a file is scheduled for re-archiving.

Planning for Recycling

Recycling is accomplished using two methods, depending on the type of media.

Table 16-1 Media Types and Recycling Methods

Archive Media
Recycling Method
Removable media cartridges
By automated library
Removable media cartridges
By archive set
Disks
By archive set

For information about configuring by these methods, see Chapter 16, Configuring the Recycler.