Decentralized administration permits the highest possible degree of flexibility in computer centers. However, tape processing under central administration is more cost-effective when using very small pubsets, since a smaller number of tape cartridges is required in this case.
In order to make it easier to restore a pubset after a system crash, the HSMS statements and commands defining the archives for backup, migration, etc., should be saved as a procedure file.
Notes regarding backups
A procedure file should be created for each pubset; the file should define an archive for migration, an archive for backup, and any other required archive types.
Example
/BEGIN-PROCEDURE PARAMETERS=*YES(PROCEDURE-PARAMETERS=(&PVSID) - / ESCAPE-CHARACTER=C'&') /START-HSMS //CREATE-ARCHIVE ARCHIVE-NAME=MIGRATE.&PVSID, - // ALLOWED-USAGE=*MIGRATION,..., - // DIRECTORY-NAME=:&PVSID:$SYSHSMS.MIGRATION.DIR //CREATE-ARCHIVE ARCHIVE-NAME=BACKUP.&PVSID, - // ALLOWED-USAGE=*BACKUP(SAVE-FILE-STRUCTURE=*SEVERAL-SVID),..., - // DIRECTORY-NAME=:&PVSID:$SYSHSMS.BACKUP.DIR //CREATE-ARCHIVE ARCHIVE-NAME=ARCH.&PVSID, - // ALLOWED-USAGE=*ARCHIVAL,..., - // DIRECTORY-NAME=:&PVSID:$SYSHSMS.ARCHIVAL.DIR //CREATE-ARCHIVE ARCHIVE-NAME=VERS.&PVSID, - // ALLOWED-USAGE=*VERSIONBACKUP,..., - // DIRECTORY-NAME=:&PVSID:$SYSHSMS.VERSBACK.DIR //MODIFY-PUBSET-PARAMETERS PUBSET-ID=&PVSID, - // STORAGE-LEVEL=*S0(SYSMIGRATE=MIGRATE.&PVSID), - // SYSARCHIVE=ARCH.&PVSID, - // SYSBACKUP=BACKUP.&PVSID,- // SYSVERSION=VERS.&PVSID //END /END-PROCEDURE
For system backup, the following HSMS statement must be specified for each pubset:
//BACKUP-FILES FILE-NAMES=:&PVSID:$*., - // JV-NAMES=:&PVSID:$*.,...
To migrate all the files on the system, the following HSMS statement must be included for each pubset:
//MIGRATE-FILES FROM-STORAGE=*S0-STORAGE-LEVEL - // (FILE-NAMES=:&PVSID:$*.,UNUSED=...,...)...
For version backup, the following HSMS statement must be specified for each pubset:
// BACKUP-FILE-VERSIONS FILE-NAMES=:&PVSID:$*.,...
File recall/restore must likewise be effected pubset by pubset.
Note on changing the home pubset
The archive definitions are lost whenever a pubset is exported and then imported. The directory files however, are still present on the pubset. Instead of the procedure shown above, as of HSMS V8.0 the archive attributes can be restored from the directory file with the CREATE-ARCHIVE statement (RECONTRUCT-ARCHIVE=*YES operand) (see also “Restoring an inadvertently deleted archive definition” in chapter "Deleting archive definitions"). If the migration or backup was performed on S1, the S1 pubset also has to be imported. The new system must also have access to storage level S2.