Solaris: How to Copy the Partition Table From One Disk to Another With prtvtoc and fmthard Command also for Mirrored Disks and Solaris Volume Manager (SVM)
(Doc ID 1386408.1)
Last updated on DECEMBER 06, 2021
Applies to:Sun Solaris Volume Manager (SVM) - Version 11.9.0 to 11.11 [Release 11.0]
Solstice DiskSuite Software - Version 4.2.1 to 4.2.1 [Release 4.0]
Solaris Operating System - Version 8 6/00 U1 to 11.1 [Release 8.0 to 11.0]
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on x86-64 (64-bit)
It is a best practice when mirroring data on two disks to make their partition tables identical. There are a number of ways to accomplish this. The easiest and least prone to clerical error is to use the prtvtoc command to read the label of the source disk and pipe the output to the fmthard command to write the label on the target disk, as described below.
<Document 1012091.1> Overview of Extensible Firmware Interface (EFI) Disk Labels Versus Volume Table of Contents (VTOC) in the Solaris Operating System.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
|1. Determine the type of partition table: VTOC or EFI|
|2. Select a target disk|
|3. Copy the partition table|
|Messages that appear when a disk label mismatch occurs|