Go to main content

Lift and Shift Guide – Migrating Application Data From Older SPARC Systems to Newer SPARC Systems

Exit Print View

Updated: February 2020
 
 

Example 1a – Migrate a ZFS File System (Full)

This example migrates data from a ZFS file system to an already prepared ZFS file system.

image:A diagram showing the commands to migrate from ZFS to ZFS.
  1. Ensure that shared storage is prepared.

    See Prepare Shared Storage.

  2. From the source global zone, create a ZFS snapshot of the source system's zpool.
    root@Source# zfs snapshot -r zone01@snap01
    
    root@Source# zfs list -t snapshot
    NAME USED AVAIL REFER MOUNTPOINT
    zone01@snap01 0 - 16.8G -
  3. Send the ZFS snapshots to the shared storage.

    Note – For the appropriate path to the pigz command, see the Secondary Commands table in Data Migration Commands.

    root@Source# zfs send zone01@snap01 | pigz > /SharedStorage/zone01.gz
  4. From the target, transfer the compressed snapshot from the shared storage to the target zpool.

    Note – For the appropriate path to the pigz command, see the Secondary Commands table in Data Migration Commands.

    root@Target# pigz -dc -f /SharedStorage/zone01.gz | zfs receive -F zone01@snap01