D    Data Management Applications Programming Interface (DMAPI)

DMAPI is a Common Applications Environment (CAE) standard that allows data management applications to interface with the underlying operating system. An example of a data management application is a hierarchical storage manager (HSM), which can use DMAPI features to migrate data to and from tertiary storage as well as to track file information.

DMAPI functionality requires an AdvFS Utilities license. See dmapi(3) to identify the data management operations that are supported.

Use the showfsets command to determine if a file is enabled for DMAPI. To enable a fileset for DMAPI, execute the chfsets command. You must have root user privilege.

A number of restrictions apply to DMAPI-enabled filesets:

To create a new domain and fileset and enable DMAPI for the fileset:

  1. Create a new domain and fileset.

  2. Turn on DMAPI functionality by using the chfsets command with the -o dmapi option.

  3. Check the fileset status by using the showfsets command.

For example, to create the fileset sales_fset in the domain receipt_dmn:

# mkfdmn /dev/disk/dsk1c receipt_dmn
# mkfset receipt_dmn sales_fset
# chfsets -o dmapi receipt_dmn sales_fset 
# showfsets receipt_dmn

To enable an existing fileset for DMAPI:

  1. Be certain only one fileset exists in the domain. If it does not:

    1. Dump the fileset by using the vdump command.

    2. Create a new domain and a new fileset. Because it is in a new domain, the fileset can have the same name as the old fileset.

    3. Restore the fileset to the new domain by using the vrestore command.

  2. Unmount the fileset if needed.

  3. Enable DMAPI by using the chfsets command.

  4. Check the fileset status by using the showfsets command.

To disable DMAPI for a fileset:

  1. Unmount the filesets.

  2. Call the chfsets command with the -o nodmapi option.

  3. Check the fileset status by using the showfsets command.

    Note that you can disable DMAPI only if the data management application has not begun modifying the fileset. In order to avoid the possibility of corruption, if it has begun you cannot disable DMAPI.

To check if DMAPI-managed regions are enabled on a file, execute the showfile command.

# showfile /mnt/file1
     Id Vol PgSZ Pages XtntType Segs SegSZ    I/O Perf File
 6.8006   1   16     4   simple   **    **  async 100% file1
  DMAPI regions present on this file.