JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Administration: ZFS File Systems     Oracle Solaris 11 Information Library
search filter icon
search icon

Document Information

Preface

1.  Oracle Solaris ZFS File System (Introduction)

2.  Getting Started With Oracle Solaris ZFS

3.  Oracle Solaris ZFS and Traditional File System Differences

4.  Managing Oracle Solaris ZFS Storage Pools

5.  Managing ZFS Root Pool Components

6.  Managing Oracle Solaris ZFS File Systems

7.  Working With Oracle Solaris ZFS Snapshots and Clones

8.  Using ACLs and Attributes to Protect Oracle Solaris ZFS Files

9.  Oracle Solaris ZFS Delegated Administration

10.  Oracle Solaris ZFS Advanced Topics

11.  Oracle Solaris ZFS Troubleshooting and Pool Recovery

12.  Archiving Snapshots and Root Pool Recovery

Overview of ZFS Recovery Process

ZFS Pool Recovery Requirements

Creating a ZFS Snapshot Archive for Recovery

How to Create a ZFS Snapshot Archive

Recreating Your Root Pool and Recovering Root Pool Snapshots

How to Recreate the Root Pool on the Recovery System

13.  Recommended Oracle Solaris ZFS Practices

A.  Oracle Solaris ZFS Version Descriptions

Index

Creating a ZFS Snapshot Archive for Recovery

Before you create the ZFS root pool snapshot, consider saving the following information:

How to Create a ZFS Snapshot Archive

The following steps describe how to create a recursive snapshot of the root pool that will include all file systems in the root pool. Other non-root pools can be archived in this same way.

Consider the following points:

In the steps that follow, the recursive snapshot is named rpool@snap1. The local system to be recovered is sysA and the remote system is sysB. Note that rpool is the default root pool name and might be different on your system.

  1. Become an administrator.
  2. Create a recursive snapshot of the root pool.
    sysA# zfs snapshot -r rpool@rpool.snap1
  3. Reduce the snapshot archive by removing the swap and dump snapshots, if desired.
    sysA# zfs destroy rpool/dump@rpool.snap1
    sysA# zfs destroy rpool/swap@rpool.snap1

    The swap volume does not contain data that is relevant to a system migration or recovery. Do not remove the dump volume snapshot if you wish to preserve any crash dumps.

  4. Send the recursive root pool snapshot to another pool on another system.
    1. Share a file system on a remote system for receiving the snapshot or snapshots:

      In the following steps, the /tank/snaps file system is shared for storing the recursive root snapshot.

      sysB# zfs set share=name=snapf,path=/tank/snaps,prot=nfs,root=sysA tank/snaps
      sysB# zfs set sharenfs=on tank/snaps
    2. Send the recursive root pool snapshot to a remote system.

      Send the recursive snapshot to the remote file system that was shared in the previous step.

      sysA# zfs send -Rv rpool@rpool.snap1 | gzip > /net/sysB/tank/snaps/
      rpool.snap1.gz
      sending from @ to rpool@rpool.snap1
      sending from @ to rpool/export@rpool.snap1
      sending from @ to rpool/export/home@rpool.snap1
      sending from @ to rpool/export/home/admin@rpool.snap1
      sending from @ to rpool/ROOT@rpool.snap1
      sending from @ to rpool/ROOT/solaris@install
      sending from @ to rpool/ROOT/solaris@install
      sending from @install to rpool/ROOT/solaris@rpool.snap1
      sending from @ to rpool/ROOT/solaris/var@install
      sending from @install to rpool/ROOT/solaris/var@rpool.snap1