A power or system failure might cause a disk's label to become unrecognizable. Although a corrupted disk label does not always mean that the slice information or the disk's data must be re-created or restored, the label itself must be restored.
Recovering a corrupted disk label requires two general steps: specifying the correct type for the disk and then recovering the backup label.
Use either a local Oracle Solaris DVD or the network to boot and access the disk.
For information about booting the system, see Booting and Shutting Down Oracle Solaris 11.4 Systems.
# format
Specify disk (enter its number):
If the utility can configure the selected disk, the utility displays the following message:
disk: configured with capacity of size
The verification process includes searching for the disk's backup label.
The Available Drives Type menu is displayed.
The verification process includes searching for the disk's backup label.
For information about using the zpool scrub command for ZFS file systems, see the zpool(8) man page.
This example assumes that you have already selected the disk whose label you want to recover.
format> verify Warning: Could not read primary label. Warning: Check the current partitioning and 'label' the disk or use the 'backup' command. Backup label contents: Volume name = < > ascii name = <FUJITSU-MAP3147N SUN146G-0501> pcyl = 14089 ncyl = 14087 acyl = 2 nhead = 24 nsect = 848 Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 14086 136.71GB (14087/0/0) 286698624 1 swap wu 0 0 (0/0/0) 0 2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
After the backup label is retrieved and you ensure that the contents are satisfactory, proceed with applying the label.
format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label format> qExample 55 Recovering the Label of a Disk Not Automatically Configurable
This example assumes that you have already selected the disk whose label you want to recover.
format> type Specify disk type (enter its number)[12]: 12 Disk not labeled. Label it now? no format> verify Warning: Could not read primary label. Warning: Check the current partitioning and 'label' the disk or use the 'backup' command. Backup label contents: Volume name = < > ascii name = <FUJITSU-MAP3147N SUN146G-0501> pcyl = 14089 ncyl = 14087 acyl = 2 nhead = 24 nsect = 848 Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 14086 136.71GB (14087/0/0) 286698624 1 swap wu 0 0 (0/0/0) 0 2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
After the backup label is retrieved and you ensure that the contents are satisfactory, proceed with applying the label.
format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label format> q