home‎ > ‎chunk‎ > ‎


Add a new file or device to be used as chunks for this instance.


infx chunk func=new chunk [ pool=yes|no off size alloc pri ]
     create a new chunk file
         chunk - the chunk
         pool - add this file/device to the storage pool
         off - the offset in mb or add g/k for gb/kb
         size - the size in mb or add g/k for gb/kb
         alloc - the amount to allocate
         pri - the priority of the item


If new chunk is a relative path, infx uses its chunk path.

If chunk is a file outside of instance chunk directory, infx creates a link in chunk directory to the file. 
Link has the same name as the file. 

For example, file=/data/chunk/data.001, link=/infx/inst/demo1/chks/data.001

if chunk is a raw device, infx creates a unique, incremental link name for the link.

For example, device=/dev/sdb, link=/infx/inst/demo1/chks/demo1.000

Otherwise, specify "as" to supply your own name

For example, chunk=/dev/sdb+as+dev1, device=/dev/sdb, link=/infx/inst/demo1/chks/dev1
  • pool=yes to also add this file/device to the storage pool
  • use alloc/pri with pool=yes to specify pool parameters
  • if file/device is outside infx chunk dir, a link is created


Add raw devices to an instance, infx automatically creates a symbolic name for each device.

demo1raw@bobii:/home/informix>infx chunk func=new chunk=/dev/raw/raw1

linked /infx/inst/demo1raw/chks/demo1raw.000 to /dev/raw/raw1

demo1raw@bobii:/home/informix>infx chunk func=new chunk=/dev/raw/raw2

linked /infx/inst/demo1raw/chks/demo1raw.001 to /dev/raw/raw2

Adding a cooked file from outside the instance chunk directory

demo1raw@bobii:/home/informix>infx chunk func=new chunk=/data/demo1.001

linked /infx/inst/demo1/chks/demo1.001 to /data/demo1.001