Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Administration: Devices and File Systems Oracle Solaris 11.1 Information Library |
1. Managing Removable Media (Tasks)
2. Writing CDs and DVDs (Tasks)
4. Dynamically Configuring Devices (Tasks)
5. Managing USB Devices (Tasks)
6. Using InfiniBand Devices (Overview/Tasks)
9. Administering Disks (Tasks)
Administering Disks (Task Map)
How to Identify the Disks on a System
How to Determine if a Disk Is Formatted
How to Display Disk Slice Information
Creating and Examining a Disk Label
11. Configuring Storage Devices With COMSTAR (Tasks)
12. Configuring and Managing the Oracle Solaris Internet Storage Name Service (iSNS)
13. The format Utility (Reference)
14. Managing File Systems (Overview)
15. Creating and Mounting File Systems (Tasks)
16. Configuring Additional Swap Space (Tasks)
17. Copying Files and File Systems (Tasks)
Sometimes, a power or system failure causes a disk's label to become unrecognizable. A corrupted disk label doesn't always mean that the slice information or the disk's data must be re-created or restored.
The first step to recovering a corrupted disk label is to label the disk with the correct geometry and disk type information. You can complete this step through the normal disk labeling method, by using either automatic configuration or manual disk type specification.
If the format utility recognizes the disk type, the next step is to search for a backup label to label the disk. Labeling the disk with the backup label labels the disk with the correct partitioning information, the disk type, and disk geometry.
If necessary, boot the system from a local Oracle Solaris DVD or the network in single-user mode to access the disk.
For information on booting the system, see Booting and Shutting Down Oracle Solaris 11.1 Systems.
# format
The format utility attempts to automatically configure any unlabeled SCSI disk. If the format utility is able to configure the unlabeled and corrupted disk, it will display this message:
cwtxdy: configured with capacity of abcMB
The format utility then displays a numbered list of disks on the system.
Specify disk (enter its number): 1
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
format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label
The disk label has been recovered
format> q
format> type
The Available Drives Type menu is displayed.
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. . . .
format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label
The disk label has been recovered.
format> q
For information on using the zpool scrub command for ZFS file systems, see zpool(1M).