从本地 Oracle Solaris DVD 或网络引导,并访问磁盘。
有关引导系统的信息,请参见引导和关闭 Oracle Solaris 11.2 系统 。
# format
Specify disk (enter its number):
如果此实用程序能够配置所选磁盘,则会显示以下消息:
disk: configured with capacity of size
验证过程包括搜索磁盘的备份标签。
将显示 "Available Drive Types" 菜单。
验证过程包括搜索磁盘的备份标签。
有关对 ZFS 文件系统使用 zpool scrub 命令的信息,请参见 zpool(1M) 手册页。
本示例假定您已选择要恢复其标签的磁盘。
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 format> q示例 6-19 恢复不可自动配置的磁盘的标签
本示例假定您已选择要恢复其标签的磁盘。
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
检索到备份标签后,确保其内容满足要求,然后继续应用标签。
format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label format> q