Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

SPARC: How to Recreate the ZFS Root Pool (EFI (GPT))

Use the following procedure to recreate the ZFS root pool or to create an alternate root pool. The zpool create command automatically creates a EFI (GPT) labeled disk with the correct boot information.

  1. Become an administrator.

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

  2. Identify the disks for the root pool.

    Issue the format command to launch the Format utility. The following is a sample output of the command.

    # format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    AVAILABLE DISK SELECTIONS:
           0. c3t0d0 <FUJITSU-MAV2073RCSUN72G-0301 cyl 14087 alt 2 hd 24 sec 424>
              /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
           1. c3t1d0 <FUJITSU-MAV2073RCSUN72G-0301 cyl 14087 alt 2 hd 24 sec 424>
              /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
           2. c3t2d0 <FUJITSU-MAV2073RCSUN72G-0301-68.37GB>
              /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@2,0
           3. c3t3d0 <FUJITSU-MAV2073RCSUN72G-0301-68.37GB>
              /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0
    
  3. To recreate the root pool, exit the Format utility and type:
    # zpool create -B root-pool mirror disk1 disk2

    where root-pool is the name of the root pool.

    The following example sets and mirrors rpool on c3t0d0 and c3t1d0.

    # zpool create -B rpool mirror c3t0d0 c3t1d0 
  4. Restore the root pool snapshots, if necessary.

    For information about complete ZFS root pool recovery, see Using Unified Archives for System Recovery and Cloning in Oracle Solaris 11.3.