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"
'Informix > informix reference' 카테고리의 다른 글
ON-Bar configuration parameters on Informix (0) | 2011.10.24 |
---|---|
Uninstalling ISM (0) | 2011.10.24 |
Determine the server-processing locale (0) | 2011.10.18 |
How to use oncheck to detect corruption (0) | 2011.10.10 |
Informix Continuing Support Offering (0) | 2011.10.06 |