Go to main content

Managing Devices in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018
 
 

Oracle Solaris Disk Management Concepts and Terminology

This section describes concepts that are useful to understand disk management in Oracle Solaris.

About EFI (GPT) Disk Labels

A disk label stores information about the disk's controller, geometry, and slices. A disk label is also called the VTOC (Volume Table of Contents) label.

Labeling a disk means writing slice information onto the disk. You usually label a disk after you change its slices or partitions. The OS uses the label to obtain information about the slices. If you fail to label a disk after you create slices, the slices will be unavailable.

Oracle Solaris supports the following disk labels:

  • SMI – Traditional VTOC label for disks that are smaller than 2 TB.

  • EFI – Label for disks that are larger than 2 TB. However, the Extensible Firmware Interface GUID Partition Table (EFI GPT) disk label is also available for disks smaller than 2 TB.


Note -  You can continue to use the VTOC label on any size disk, but the addressable space by the VTOC is limited to 2 TB.

In Oracle Solaris, an EFI (GPT) labeled disk is installed by default on the following systems:

  • SPARC systems with GPT enabled firmware

    On SPARC T4 servers, the Sun System Firmware must be at least version 8.4.0. On SPARC T5 and SPARC M5 servers, the firmware must be at least version 9.1.0. On Fujitsu M10 servers, the firmware must be at least version XCP 2230 or later.

  • x86 systems

The Oracle Solaris ZFS file system supports file systems that are larger than 1 TB.


Note -  The legacy Oracle Solaris Volume Manager software can also be used to manage disks that are larger than 1 TB, but you cannot use a root disk that is managed by Oracle Solaris Volume Manager for booting Oracle Solaris 11.4.

The following additional features differentiate the EFI disk label from the VTOC disk label:

  • Provides usable slices 0-6, where partition 2 is just another slice.

  • Prohibits overlap of partitions or slices with a primary or backup label, or with other partitions. The size of the EFI label is usually 34 sectors, so partitions usually start at sector 34. No partition can start at sector zero (0). The entire disk is represented by cxtydz.

  • Does not use the notion of geometry. Partitions in EFI (GPT) labeled disks are defined based on logical blocks. Therefore, the EFI disk label provides information about disk or partition sizes in sectors and blocks but not in cylinders and heads.

  • Stores information in the last two cylinders of a disk or partition instead of in an alternate cylinder area.

  • Supports reassigning partition tags after partition sizes are changed. However, note that the unassigned partition tag is assigned only to partitions with sizes equal to zero.

Before deciding to use EFI disks, consider that layered software products that are intended for systems with VTOC-labeled disks might be incapable of accessing a disk with an EFI disk label.

About Disk Slices or Partitions

Files on a disk are contained in file systems. Each file system on a disk is assigned to a slice composed of a group of sectors. Certain interfaces, such as the format utility, refer to slices as partitions.

Each disk slice appears as a separate disk drive.

When setting up slices, note these rules:

  • Each disk slice holds only one file system.

  • No file system can span multiple slices.

For information about file systems, see Managing File Systems in Oracle Solaris 11.4.


Note -  Third-party database applications typically create raw data slices. These applications must not use block 0 or slice 2 for raw slices. Block 0 stores the disk label while slice 2 represents the entire disk with a VTOC label. Creating raw slices on these two locations overwrites the disk label and renders data on the disk inaccessible.

Using the Free Hog Slice

When you use the format utility to change the size of one or more disk slices, you designate a temporary slice that will expand and shrink to accommodate the resizing operations.

This temporary slice donates, or "frees", space when you expand a slice, and receives, or "hogs", the discarded space when you shrink a slice. For this reason, the donor slice is sometimes called the free hog slice.

The free hog slice exists only during installation or when you run the format utility. There is no permanent free hog slice during day-to-day operations.

For information about using the free hog slice, see How to Replace a ZFS Root Pool Disk.