To start ISM on UNIX for the first time, issue the ism_startup -init command. The following C shell script is an example of a simple setup for making ON–Bar storage-space and logical-log backups to disk files:
#!/bin/csh # setup for ISM storage manager echo "ISM setup begins" # the user must edit these two lines to select # appropriate disk locations for storage manager use. setenv SM_DISKDEV1 /backups/dbspaces setenv SM_DISKDEV2 /backups/logfiles # start ISM server echo "initialize ISM server, must be done as root" ism_startup -init
ism_add -admin informix@server # create some devices and media # the ISM user, defined in ism_add -admin, can do these tasks echo "create and mount ISM devices and pools" ism_add -device $SM_DISKDEV1 -type file ism_add -device $SM_DISKDEV2 -type file ism_op -label $SM_DISKDEV1 -pool ISMDiskData -volume ISMData ism_op -label $SM_DISKDEV2 -pool ISMDiskLogs -volume ISMLogs ism_op -mount $SM_DISKDEV1 ism_op -mount $SM_DISKDEV2 echo "end of ISM setup"
After you configure ISM, you can set the LOG_BACKUP_MODE configuration parameter to CONT or MANUAL to back up the logical logs. Until ISM is configured and available to back up the logical logs, LOG_BACKUP_MODE should be set to NONE.