Tuning Cached ODM settings via the cachemap in SFHA environment

You can use the odmadm setcachemap command to configure the cachemap. The cachemap maps file type and I/O type combinations to caching advisories. ODM uses the cachemap for all files that have the default conditional cache setting. Such files are those for which caching has not been turned on or off by the odmadm setcachefile command.

See the odmadm(1M) manual page.

By default, the cachemap is empty, but you can add caching advisories by using the odmadm setcachemap command.

To add caching advisories to the cachemap

  1. Add a caching advisory to the cachemap:
    # /opt/VRTS/bin/odmadm setcachemap \
     data/data_read_seq=cache,readahead

    With this example command, ODM uses caching and readahead for I/O to online log files (data) that have the data_read_seq I/O type. You can view the valid file type and I/O type values from the output of the odmadm getcachemap command.

    See the odmadm(1M) manual page.

  2. The cachemap is local on each node. To make the same caching decisions on each node in a cluster, keep the cachemap settings consistent by running the same /opt/VRTS/bin/odmadm setcachemap commands on each node in a cluster.