Go to main content

Managing Devices in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

How to Re-Create the ZFS Root Pool (EFI (GPT))

This procedure describes how to re-create the ZFS root pool or create an alternate root pool.

Before You Begin

If you are performing this procedure on an x86 system, ensure that the disk has a Oracle Solaris partition that is also selected as the active partition. Use the fdisk option of the Format utility to view partition information. Example 40, Partition Information From the fdisk Command partially shows the information that the option displays.

If no Oracle Solaris partition exists, You must create one. For more information about how to create an fdisk partition, see Example 52, Creating an Oracle Solaris fdisk Partition That Spans the Entire Drive.

  1. Become an administrator.
  2. Identify the disks for the root pool by issuing the format command to launch the Format utility.

    The following example shows sample output on a SPARC system.

    # format
    Searching for disks...done
    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
    

    The following example shows sample output on an x86 system.

    # 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. Type quit to exit the Format utility.
  4. Re-create the root pool.
    # zpool create -B root-pool mirror disk1 disk2

    This command automatically creates an EFI (GPT) labeled disk with the correct boot information.

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

    # zpool create -B rpool mirror c3t0d0 c3t1d0 
  5. (Optional) Restore the root pool snapshots.

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