Monitor and Manage ZFS Shadow Migration

The Oracle Solaris 11.4 release provides improved ZFS shadow migration operation with enhancements for better visibility in monitoring migration errors and controlling in-progress migrations.

The following new options are introduced:

  • shadowstat -E and -e — Provided for monitoring migration errors for all migrations or a single migration.
  • shadowadm — Control in-progress migrations. For example, you can identify shadow migration errors of multiple migration operations:
    # shadowstat
                               EST
                        BYTES  BYTES  ELAPSED
    DATASET             XFRD   LEFT   ERRORS  TIME
    tank/logarchive     16.4M  195M   1       00:01:20
    tank/dbarchive      4.49M  248M   -       00:00:51
    tank/logarchive     17.3M  194M   1       00:01:24
    tank/dbarchive      5.16M  247M   -       00:00:55
    You can identify the specific migration error as follows:
    # shadowstat -E
    tank/logarchive:
    PATH                          ERROR
    e-dir/socket                  Operation not supported
    pond/dbarchive:
    No errors encountered.
    For example, to cancel the migration as the open socket cannot be migrated:
    # shadowadm cancel tank/logarchive

For more information, see Managing ZFS File Systems in Oracle Solaris 11.4.

Read the entire article on the upcoming features in Oracle® Solaris 11.4 (PDF).