Archiving
Data archiving is a technique for saving valuable disk space by selecting infrequently used objects, saving them to tape, save file, IBM i Internal Virtual tape, or optical and then deleting them from disk.  Archiving saves disk space on primary (fast, expensive) disk because it moves the object to secondary (slower, less expensive) storage. The BRMS-Advanced Functions Feature of 57xxBR1 is required to use archiving and dynamic retrieval

NOTES :



Dynamic retrieval

To allow applications to work seamlessly with objects that have been archived, save with storage free can be used.  Save with storage free causes the storage for the object to be moved to a less expensive form of storage but leaves object description on the system. Since the object description is left on the system, applications can still access the object.   When the object is accessed by an application, the system will automatically attempt to recall the object data using a restore command, this is called dynamic retrieval.

BRMS enables full tape automation to perform data archiving quickly and effortlessly while appearing seamless in its operation.  Because BRMS tracks the information about the objects that have been archived,  it can also automatically handle dynamic retrieval of archived object data.

Changing the retrieve policy will affect the action that will occur when an archived object is used - WRKPCYBRM TYPE(*RTV):

The following table lists when dynamic retrieval will occur or not:


Commands that affect dynamic retrieval

Dynamic
Retrieval
Object Type
Operation or CommandCalls
Dynamic
Retrieval
Dynamic
Retrieval Is
Not Called
Database
 
 
 
Any data base open operationX
DSPOBJD
X
OPNDBFX
OPNQRYFX
DSPPFMX
DSPFD and DSPFFD
X
RTVMBRDX
CPYFX
SNDNETFX
CHGOBJ, CHGOBJOWN or CHGOBJA
X
CHGPFM
X
RNMOBJ and RNMM
X
MOVOBJ
X
CHKOBJ
X
ADDPFM and RMVM
X
CHGPFXX
DLTF
X
RCLSTG
X
DSPLOG
X
CRTxxxPGMXX
Query/400X
SQLX
DFUX
Options in PDMXX
Client Access file transfers
X
Start or end journalling
X
Journal changesX
Document
Library
Objects (DLO)

Viewing a DLO   

X
Printing a DLO  X
Copying a DLO   X
Moving a DLO    X
Changing details of a DLOX
Changing contents of a DLOX

Integrated file system or hierarchical file system (HFS)
open API’s


X

Security changes of a DLO
(ADDDLOAUT,CHGDLOAUT,EDTDLOAUT, DSPDLOAUT,
RTVDLOAUT)

X

Renaming a DLO

X
Direct existence of a DLO (CHKDLO, DSPDLONAM,
RTVDLONAM)

X
Indirect existence of a DLO (Dir, WRKDOC, DSPFLR)
X
Search of a DLO object
X
Save of a DLO object
X
Restore of a DLO object
X
Reclaim of a DLO object
X
Reorganize a DLO object
X
Deletion of a DLO object
X
Dump of a DLO object
X
Stream FilesChecking out the object (CHKOBJ)X
Accessing the data of the object (a open(), create), MOV,
CPY, or CPYFRMSTMF, CPYTOSTMF)
X
Adding a new name to the object (RNM, ADDLNK, link(),
rename(), Qp0lRenameKeep(), Qp0lRemaneUnlink())

X
Indirect existence of a stream file (Stream file objects)
X


NOTES :


Duplicate Your Archive Tapes

The implication of archiving an object is that it is saved and deleted or storage freed in one operation. Despite the extensive error checking and correction routines of modern device technology, the only way to check data on media is to read the entire media file.   With data archiving the ability to check whether the media produced by a save is readable before you delete it is reduced.  Also, eventually all other copies of an object that have been saved in the normal backup procedure will expire, leaving only one copy (on media) of the archived object.  This will be the most up-to-date copy.

In summary, data loss exposure created by data archiving is two-fold:

  1. Limited verification of a media before deletion of the object.
  2. Eventually there will be only one copy of the object on save media.

For these reasons we recommend that you make duplicate copies (not possible with optical) of archived data immediately and then move them to an off-site storage location.


Archiving spooled files

When archiving spool files, there is a limit of 190,000 spooled files that can be archived in a single operation. If more than 190,000 spooled files exist in an outqueue, users will get a CPF0804 message with a 04 Return Code. To prevent the error, you will need to specify a subset of the outqueue using the File, Job, User or  User data options in the spool list.


More information on Archiving can be found here: