Setting Up Volume Sets and Volumes for ON-Archive with SAP Scripts
Use
This procedure describes how to define volume sets and volumes for
ON-Archive with the Informix database if you are using the SAP scripts. For more information about volume sets (including a suggestion for the default number of volumes to create), see Volume Sets and Volumes for ON-Archive.You should have already entered your device names in the
config.arc file. For more information, see Defining Devices for ON-Archive with SAP Scripts.Follow this procedure before you start performing database archives, logical-log backups, and restores of your database.
Procedure
su - informix
You can also log on as user
<sid>adm if you prefer.The first script,
arcprep , sets up the volume sets and volumes required to start archiving and backing up your database (that is, the volume sets DBTAP , LOGTAP , and ONDATARTRLOG , each containing the number of volumes you specify).
You must not run
arcprep more than once. This script labels volumes starting from 1 upwards. Therefore, running it again can cause problems. If you need to define additional volumes or redefine existing ones, use the script arcvolum .arcprep
arcprep identifies itself as follows:
Installation script for default Volume-Sets
and Volumes in the SAP R/3 Environment
For more information about volume sets (including a suggestion for the default number of volumes to create), see
Volume Sets and Volumes for ON-Archive.arcprep
tells you how many tapes you need in total. You can add additional tape volumes later if required using the second script, arcvolum .arcprep
calls ON-Archive to write an electronic label to the tape you have mounted.Steps 4 and 5 are repeated until all tape volumes in each volume set have been created. Finally,
arcprep issues a message to confirm satisfactory completion.The second script,
arcvolum , sets up additional volumes as required. If one of your volumes is damaged, lost, or for some other reason unavailable, you need to redefine the missing volume. You might also want to assign new volumes to a volume set if your database archive and logical-log backup approach changes. For example, you might decide to keep a logical-log backup every day for two months instead of only one month, so requiring an extra set of volumes.Before you start
arcvolum , you need to know the name of the volume set for which you want to create a new volume. The example below uses volume set LOGTAP .arcvolum -v LOGTAP
The script displays the current contents of the volume set you have chosen.
Using the next free volume number (for example, if the last free volume is
LOGT30 , the next would be LOGT31 ) as labelUsing a label of your own choice (for example, an existing volume is damaged)
arcvolum
calls ON-Archive to write an electronic label to the tape you have mounted.Repeat steps 7 to 10 for each new volume you want to create.
Result
Look in the
archive.log file to see the results. You can see entries similar to the following for each volume set:Apr 13 1995 13:20:03 #00000000# <21434> onarchive (informix) Defined DBTAP: DEFINE/VSET=DBTAP/DEVICE_TYPE=DBTP1_VOP/DRIVER=TAPE/
ACCESSIBILITY=10/CLASS=USER/USER=(root, informix, arcadm)
You can see entries similar to the following for each volume:
Apr 13 1995 13:22:37 #00000000# <21444> onarchive (informix) Defined DBTAP:0001: DEFINE/VOLUME/VSET=DBTAP/LABEL=DBT1
You have now completed one of the steps required to configure
ON-Archive for performing database archives, logical-log backups, and restores of your database.
See also:
Setting Up Volume Sets and Volumes for ON-Archive Without SAP ScriptsInformix documentation at
http://www.informix.com