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

Document Information


1.  Oracle Solaris ZFS File System (Introduction)

2.  Getting Started With Oracle Solaris ZFS

3.  Managing Oracle Solaris ZFS Storage Pools

4.  Managing ZFS Root Pool Components

5.  Managing Oracle Solaris ZFS File Systems

6.  Working With Oracle Solaris ZFS Snapshots and Clones

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

8.  Oracle Solaris ZFS Delegated Administration

9.  Oracle Solaris ZFS Advanced Topics

10.  Oracle Solaris ZFS Troubleshooting and Pool Recovery

11.  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

12.  Recommended Oracle Solaris ZFS Practices

A.  Oracle Solaris ZFS Version Descriptions


Recreating Your Root Pool and Recovering Root Pool Snapshots

If you need to recreate your root pool and recover you root pool snapshots, the general steps are as follows:

How to Recreate the Root Pool on the Recovery System

Review the following considerations when recovering your root pool.

  1. Identify and replace the failed root pool disk or system component.

    This disk is generally the default boot device or you can select another disk and then reset the default boot device.

  2. Boot the system from the Oracle Solaris 11 installation media by selecting one of the following.
    • DVD or USB install media (SPARC or x86) – Insert the media and select the appropriate device as the boot device.

      If text-based media is used, select the Shell option from the text installer menu.

    • Live media (x86 only) – The GNOME desktop session can be used during the recovery procedure.

    • Automated installer or a local copy of AI media (SPARC or x86) – From the text installer menu, select the shell option. On a SPARC system, boot the AI media (either locally or over the network), and select the Shell option:

      ok boot net:dhcp
      .Welcome to the Oracle Solaris 11 installation menu 
              1  Install Oracle Solaris
              2  Install Additional Drivers
              3  Shell
              4  Terminal type (currently xterm)
              5  Reboot
      Please enter a number [1]: 3
  3. SPARC or x86 (VTOC): Prepare the root pool disk.
    1. Confirm that the replacement root pool disk is visible from the format utility.
      # format
      Searching for disks...done
             0. c2t0d0 <FUJITSU-MAY2073RCSUN72G-0401 cyl 14087 alt 2 hd 24 sec 424>
             1. c2t1d0 <FUJITSU-MAY2073RCSUN72G-0401 cyl 14087 alt 2 hd 24 sec 424>
             2. c2t2d0 <SEAGATE-ST973402SSUN72G-0400-68.37GB>
             3. c2t3d0 <SEAGATE-ST973401LSUN72G-0556-68.37GB>
      Specify disk (enter its number): 0
    2. SPARC or x86 (VTOC): Confirm that the root pool disk has an SMI (VTOC) label and a slice 0 with the bulk of the disk space.

      Review the partition table to confirm that the root pool disk has an SMI label and a slice 0.

      selecting c2t0d0
      [disk formatted]
      format> partition
      partition> print
    3. SPARC or x86 (VTOC): Relabel the disk with an SMI (VTOC) label, if necessary.

      Use the following shortcut commands to relabel the disk. A caution is that these commands do not provide any error checking so make sure that you are relabeling the correct disk.

  4. Recreate the root pool.

    On a SPARC or an x86 (VTOC) system:

    sysA# zpool create rpool c2t0d0s0

    On an x86 based system with an EFI (GPT) labelled root pool disk, use syntax similar to the following:

    sysA# zpool create -B rpool c2t0d0
  5. Mount the file system that contains the snapshots from the remote system.
    sysA# mount -F nfs sysB:/tank/snaps /mnt
  6. Restore the root pool snapshots.
    sysA# gzcat /mnt/rpool.snap1.qz | zfs receive -Fv rpool
    receiving full stream of rpool@rpool.snap1 into rpool@rpool.snap1
    received 92.7KB stream in 1 seconds (92.7KB/sec)
    receiving full stream of rpool/export@rpool.snap1 into rpool/export@rpool.snap1
    received 47.9KB stream in 1 seconds (47.9KB/sec)
  7. Recreate swap and dump devices, if necessary.

    For example:

    sysA# zfs create -V 4G rpool/swap
    sysA# zfs create -V 4G rpool/dump

    For information about sizing swap and dump volumes, see Planning for Swap Space in Oracle Solaris 11.1 Administration: Devices and File Systems.

  8. Mount the BE.

    The next step requires that the BE is mounted so that the boot blocks can be installed.

    sysA# beadm mount solaris /tmp/mnt
  9. Install the boot blocks on the new disk.

    Use the following command on either a SPARC or an x86 based system.

    sysA# bootadm install-bootloader -P rpool
  10. If the same devices will not be used or the devices will be configured in a different way on the original system, clear the existing device information. Then, direct the system to reconfigure the new device information.
    # devfsadm -Cn -r /tmp/mnt
    # touch /tmp/mnt/reconfigure
  11. Unmount the BE.
    #beadm unmount solaris
  12. Activate the boot environment, if necessary.

    For example:

    sysA# beadm list
    BE        Active Mountpoint Space  Policy Created          
    --        ------ ---------- -----  ------ -------          
    solaris-1 -      -          46.95M static 2012-07-20 10:25 
    solaris   -      -           3.83G static 2012-07-19 13:44 
    # beadm activate solaris
  13. Verify that you can boot successfully from the replacement root pool disk.

    If necessary, reset the default boot device:

    • SPARC: Set up the system to boot automatically from the new disk, either by using the eeprom command or the setenv command from the boot PROM.

    • x86: Reconfigure the system BIOS.