Software >> OS >> Unix >> Solaris >> 11 >> ZFS >> How to relabel a disk with SMI (VTOC) label e.g. when recovering ZFS root disk

  • SPARC:

    sysA# format -L vtoc -d c2t0d0

    Confirm that slice 0 has disk space allocated appropriately. The default partition is applied in the above command, which might be too small for the root pool slice 0. For information about modifying the default partition table, see How to Create a Disk Slice for a ZFS Root File System in Oracle Solaris Administration: Devices and File Systems.

    Note: For ZFS root pool use SMI (vtoc) label.  For non-root pool that use whole disks, use EFI label.  The above command is
    for SMI (vtoc) label.

  • x86:

    sysA# fdisk -B /dev/rdsk/c2t0d0p0
    sysA# format -L vtoc -d c2t0d0