Go to main content

Creating and Using Oracle® Solaris 10 Zones

Exit Print View

Updated: October 2017

How to Use flarcreate to Exclude Certain Data

To exclude data that is not on a ZFS dataset boundary from the archive, you must use cpio or pax with flarcreate. You can use the –L archiver option to specify cpio or pax as the method to archive the files.

This example procedure uses NFS to place the flash archive on the target Oracle Solaris 11 system, but you could use any method to move the files.

You must be the global administrator or a user with the required rights profile in the global zone to perform this procedure.

  1. Become an administrator.

    For more information, see Assigning Rights to Non-Root Users to Manage Zones in Creating and Using Oracle Solaris Zones.

  2. Log in to the source Oracle Solaris 10 system to be archived.
  3. Change directories to the root directory.
    # cd /
  4. Use flarcreate to create a flash archive image file named s10-system on the source system, and place the archive onto the target Oracle Solaris 11 system:
    source-system # flarcreate -S -n s10-system -x /path/to/exclude -L cpio /net/target/export/archives/s10-system.flar
    Determining which filesystems will be included in the archive...
    Creating the archive...
    cpio: File size of "etc/mnttab" has
    increased by 435
    2068650 blocks
    1 error(s)
    Archive creation complete.

    Tip  -  In some cases, flarcreate can display errors from the cpio command. Most commonly, these are messages such as File size of etc/mnttab has increased by 33. When these messages pertain to log files or files that reflect system state, they can be ignored. Be sure to review all error messages thoroughly.