How to Force a Reread of all Metadata

If you make a metadata change that is not read by restarting the sstore:default service, you can force a reread of all metadata by destroying the entire statistics repository.

Caution:

This action destroys all historical data.
  1. Disable the statistics store service.
    $ svcadm disable sstore:default
    $ svcs sstore
    STATE          STIME    FMRI
    disabled       13:03:54 svc:/system/sstore:default
  2. Destroy the statistics store repository.
    $ zfs destroy rpool/VARSHARE/sstore

    If the repository still exists, remove it:

    $ rm -fr /var/share/sstore/repo

    Note:

    Removing or modifying individual directories or files within the statistics store repository is not supported. Removing or modifying metadata directories or files that were delivered with Oracle Solaris is not supported.
  3. Reread the statistics metadata.
    $ svcadm enable sstore:default
    $ svcs sstore
    STATE          STIME    FMRI
    online         13:04:46 svc:/system/sstore:default

    If the service is not online, check the service log file.

    $ svcs -Lx sstore