home‎ > ‎storage‎ > ‎

func=extend

Extends a storage space by adding another chunk to it.

usage

infx storage func=extend space chunk size [ mchunk moffset first next user=no|yes ms mo ]
     extend a storage space
       required:
         space - the storage space name
         chunk - the chunk
         size - the size in mb or add g/k for gb/kb
       optional:
         first - the first size in mb
         next - the next size in mb
       -- mirroring parameters
         mchunk - chunk to put mirror on
         moffset - offset into mirror chunk in mb
       -- smart blobs
         user - use entire chunk for user data
         ms - enter size for metadata in mb
         mo - enter offset into device to add metadata in mb

note

  •     specify path=pool to allocate new chunk from the storage pool
  •     specify path=new to create new file for the chunk 

example

Add 100mb to dat01 storage space.

demo1@bobii:/home/informix>infx storage func=extend space=dat01 size=100 chunk=new

onspaces -a dat01 -p /infx/inst/demo1/chks/dat01.001 -s 100000 -o 0
Verifying physical disk space, please wait ...
Chunk successfully added.

Add 100mb to dat02, from the storage pool.

demo1@bobii:/home/informix>infx storage func=extend space=dat01 size=100 chunk=pool

execute function task('create chunk from storagepool','dat01','100000')

Chunk '/infx/inst/demo1/chks/demo1sec_dat01_p_1' added to space ' dat01'. Chunk 23 is now extendable.

Add 100mb to sblob01, use all for user space

demo1@bobii:/home/informix>infx storage func=extend space=sblob01 size=100 chunk=new user=yes

onspaces -a sblob01 -p /infx/inst/demo1/chks/sblob01.002 -s 100000 -o 0  -U
Verifying physical disk space, please wait ...
Chunk successfully added.