home‎ > ‎inst‎ > ‎

func=new

Create a new infx instance.

usage

infx inst func=new newinst [ config onconfig servernum sw ]
     create a new instance
       required:
         inst - instance name
         newinst - the new instance
       optional:
         config - the instance definition to use
         onconfig - the ONCONFIG definition to use
         servernum - number to assign to this instance (0-255)
         sw - informix software to use

notes

When a new instance is created:
  1. creates directories, files and links from infx-config.inst
  2. generates an ONCONFIG from infx-small.onconfig
  3. adds entries to the SQLHOSTS file
  4. records instance alias in sub-host.ini

example

Create a new instance called test01.

demo1@bobii:/home/informix>infx inst func=new newinst=test01

INFO: creating instance test01
  server number: 6
  instance config: infx-config.inst
  onconfig file: infx-small.onconfig
where to store chunk files
  /infx/inst/test01/chks created, mode 0755 set
backup files
  /infx/inst/test01/backup created, mode 0755 set
dbspace backup files
  /infx/inst/test01/backup/db created, mode 0775 set
logical log backup files
  /infx/inst/test01/backup/logs created, mode 0775 set
instance, command and service log files
  /infx/inst/test01/logs created, mode 0755 set
instance specific config files
  /infx/inst/test01/etc created, mode 0755 set
temporary file location
  /infx/inst/test01/tmp created, mode 0755 set
instance diagnostic dumps, can be large
  /infx/inst/test01/dump created, mode 0700 set
sql files
  /infx/inst/test01/sql created, mode 0755 set
location for unloads
  /infx/inst/test01/exports created, mode 0755 set
log staging dir for replication
  /infx/inst/test01/staging created, mode 0700 set
informix product binaries
  /infx/inst/test01/informixdir linked to /infx/sw/latest
create file for root chunk
  /infx/inst/test01/chks/root.001 created, mode 660 set
>> instance configuration
  CONFIG /infx/inst/test01/etc/config.ini created
OK: creating onconfig file /infx/inst/test01/informixdir/etc/onconfig.test01 from /infx/etc/infx-small.onconfig
  ONCONFIG: /infx/inst/test01/informixdir/etc/onconfig.test01 template /infx/etc/infx-small.onconfig
  SQLHOSTS: /infx/inst/test01/informixdir/etc/sqlhosts
  INFO: test01 added to sqlhosts
  INFO: test01sec added to sqlhosts
  DBSERVERALIAS: added test01sec to /infx/local/etc/sub-bobii.ini