home‎ > ‎utilities‎ > ‎

infx cmap

Show a map of each chunk files usage. Shows parts of chunk files or devices, that have been allocated, and locates free space available.

usage

infx cmap [ order chunkfile path space status ]
  optional
    order - change order of output
    chunkfile - only show chunks on this chunk file
    path - only show chunks that match this path
    space - only show chunks allocated to this storage space
    status - only show chunks of this status

example

demo1@bobii:/home/informix>infx cmap

chunk       path           #   status  flags   space   offset mb  size mb  used mb  free mb    %  read mb  write mb
... snip ...
demo1r.001  /dev/raw/raw2  2   OK      PO-B--  plog         0.00   100.00    95.11     4.89   96     0.00      0.12
demo1r.001  /dev/raw/raw2  5   OK      PO-B--  dat01      100.00   100.00     0.11    99.89    1     0.00      0.00
demo1r.001  /dev/raw/raw2      POOL                       200.00    60.00
demo1r.001  /dev/raw/raw2  14  OK      PO-B--  tmp02      260.00    20.00     0.11    19.89    1     0.00      0.00
demo1r.001  /dev/raw/raw2      POOL                       280.00   220.00
demo1r.002  /dev/raw/raw3  3   OK      PO-B--  log01        0.00   100.00    99.11     0.89  100     0.00      0.06
demo1r.002  /dev/raw/raw3  6   OK      PO-B--  dat02      100.00    25.00     0.11    24.89    1     0.00      0.00
demo1r.002  /dev/raw/raw3  9   OK      PO-B--  idx01      125.00    25.00     0.11    24.89    1     0.00      0.00
demo1r.002  /dev/raw/raw3  12  OK      PO-B--  idx04      150.00    35.00     0.11    34.89    1     0.00      0.00
demo1r.002  /dev/raw/raw3  15  OK      PO-B--  ltmp01     185.00   100.00     0.11    99.89    1     0.00      0.00
demo1r.002  /dev/raw/raw3      FREE                       285.00   215.00

Only chunk files allocated to the dat01 storage space.

demo1r@bobii:/home/informix>infx cmap space=dat01

chunk       path           #  status  flags   space  offset mb  size mb  used mb  free mb  %  read mb  write mb
demo1r.001  /dev/raw/raw2  5  OK      PO-B--  dat01     100.00   100.00     0.11    99.89  1     0.00      0.00

Only parts of chunk files that are free

demo1@bobii:/home/informix>infx cmap status=free

chunk       path           #  status  flags  space  offset mb  size mb  used mb  free mb  %  read mb  write mb
demo1r.002  /dev/raw/raw3     FREE                     285.00   215.00

notes

  • output template is in /infx/template/infx-cli-cmap.htmlt, make a copy in /infx/local/etc before changing
  • see space for definition and full list of variables available