Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015

How to Create an Archive of the System Image on a Network Device

Archive the file systems in the global zone. Verify that no non-global zones are installed on the source system.The examples in this section use the zfs send command for creating archives. The examples assume the root pool is named rpool.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Create a snapshot of the entire root pool, named rpool@p2v in this procedure.
    source# zfs snapshot -r rpool@p2v
  3. Destroy the snapshots associated with swap and dump devices, because these snapshots are not needed on the target system.
    source# zfs destroy rpool/swap@p2v
    source# zfs destroy rpool/dump@p2v
  4. Archive the system.
    • Generate a ZFS replication stream archive that is compressed with gzip, and stored on a remote NFS server.
      source# zfs send -R rpool@p2v | gzip > /net/somehost/p2v/s11-zfs.gz
    • You can avoid saving intermediate snapshots and thus reduce the size of the archive by using the following alternative command.
      source# zfs send -rc rpool@p2v

See also

For more information, see the zfs(1M) and archiveadm(1M)man pages.