Setting Up ISM on UNIX
To start ISM on UNIX for the first time, issue the ism_startup -init command. The following shell script is an example of a simple setup for making on–Bar storage-space and logical-log backups to disk files:
#!/usr/bin/ksh
# setup for ISM storage manager
INFORMIXDIR=/data/informix
export INFORMIXDIR
echo "ISM setup begins"
# the user must edit these two lines to select
# appropriate disk locations for storage manager use.
SM_DISKDEV1=/backups/dbspaces
SM_DISKDEV2=/backups/logfiles
export SM_DISKDEV1
export SM_DISKDEV2
# start ISM server
echo "initalize ISM server, must be done as root"
$INFORMIXDIR/bin/ism_startup -init
$INFORMIXDIR/bin/ism_add -admin informix@server (server=hostname)
Important: To make informix the ISM user and thereby ensure informix has access to conduct ISM operations during daily routines, you must run the following command after any ism_startup -init or ISM installation:
# 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"