Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

x86: 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.

Before You Begin

Ensure that the disk has a Solaris partition that is also selected as the active partition. Use the fdisk option of the Format utility to view partition information. Example 34, Partition Information From the fdisk Command partially shows the information that the option displays.

If no Solaris partition exists, create one. See Example 46, Creating a Solaris fdisk Partition That Spans the Entire Drive as a guide.

  1. Become an administrator.

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

  2. (Optional) 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:
    0. c6t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
    1. c6t1d0 <FUJITSU-MAV2073RCSUN72G-0301-68.37GB>
    /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
    2. c6t2d0 <FUJITSU-MAV2073RCSUN72G-0301-68.37GB>
    /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@2,0
    3. c6t3d0 <FUJITSU-MAV2073RCSUN72G-0301 cyl 14087 alt 2 hd 24 sec 424>
    /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0
    Specify disk (enter its number): 
  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 root-pool on c6t0d0 and c6t1d0.

    # zpool create -B root-pool mirror c6t0d0 c6t1d0
  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.