Monitor and Manage ZFS Shadow Migration

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 shadowstat -e are 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
    pinky/logarchive    16.4M  195M   1       00:01:20
    pinky/dbarchive     4.49M  248M   -       00:00:51
    pinky/logarchive    17.3M  194M   1       00:01:24
    pinky/dbarchive     5.16M  247M   -       00:00:55
    You can identify the specific migration error as follows:
    # shadowstat -E
    pinky/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 pinky/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).