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 2b – Migrate a UFS File System (Incremental)

This example migrates an incremental subset of the data from a UFS file system to an already prepared ZFS or UFS file system.

This procedure is used in situations when there is a lapse between the time that the initial full dump is captured on the source and then restored on the target . If the source system remained in production, it is likely that data has changed on the source system. In such cases, you can perform an incremental dump and restore to migrate only the changed data to the target system.

  1. Ensure that shared storage is prepared.

    See Prepare Shared Storage.

  2. From the source global zone, create an incremental copy of the UFS file system in a compressed format on shared storage.

    The following examples show two types of incremental dumps. The difference between the examples is the way the source disk device is specified.

    • UFS running on SVM (raw disk specified)

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

      root@Source# ufsdump 0cf - /dev/md/rdsk/d20 | pigz > /SharedStorage/redo.ufsdump.gz
    • UFS (raw physical disk specified)

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

      root@Source# ufsdump 1cf - /dev/rdsk/c0t5000CCA0804092ECd0s6 | pigz > /SharedStorage/ufs1_ufsdump1.gz
      DUMP: Date of this level 1 dump: Wed Sep 25 14:45:01 2019
        DUMP: Date of last level 0 dump: the epoch
        DUMP: Dumping /dev/rdsk/c0t5000CCA0804092ECd0s6 (opc-s02-s72-06:/ufs1) to standard output.
        DUMP: Mapping (Pass I) [regular files]
        DUMP: Mapping (Pass II) [directories]
        DUMP: Writing 63 Kilobyte records
        DUMP: Estimated 930 blocks (465KB).
        DUMP: Dumping (Pass III) [directories]
        DUMP: Dumping (Pass IV) [regular files]
        DUMP: 880 blocks (440KB) on 1 volume at 22000 KB/sec
        DUMP: DUMP IS DONE
  3. From the target guest domain, uncompress and restore the incremental dump file.

    The following examples show two types of incremental restores.

    • UFS running on SVM

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

      root@Target# pigz -dc -f /SharedStorage/redo.ufsdump.gz | ufsrestore xvf -
    • UFS

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

      root@Target# pigz -dc -f /SharedStorage/ufs1_ufsdump1.gz | ufsrestore xvf -
      Verify volume and initialize maps
      Dump   date: Wed Sep 25 14:45:01 2019
      Dumped from: the epoch
      Level 1 dump of /ufs1 on opc-s02-s72-06:/dev/dsk/c0t5000CCA0804092ECd0s6
      Label: none
      Extract directories from tape
      Initialize symbol table.
      Warning: ./lost+found: File exists
      Extract requested files
      extract file ./hosts
      extract file ./nsswitch.conf
      Add links
      Set directory mode, owner, and times.
      set owner/mode for '.'? [yn] y
      Directories already exist, set modes anyway? [yn] n