在 Oracle® Solaris 11.2 中管理设备

退出打印视图

更新时间: 2014 年 7 月
 
 

格式化磁盘

未格式化的磁盘不可用。Format 实用程序能够检测磁盘是否已格式化。请选择要验证的磁盘,如以下针对 c2t1d0 磁盘的示例所示。选择磁盘后,该实用程序将指示该磁盘是否已格式化。

# format
AVAILABLE DISK SELECTIONS:
0. c2t0d0 <SUN36G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@0,0
/dev/chassis/J4200@RACK10:U24-25/SCSI_Device__0/disk
1. c2t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@1,0
/dev/chassis/J4200@RACK10:U24-25/SCSI_Device__1/disk
Specify disk (enter its number): 1Disk c2t1d0 is selected.
selectin c2t1d0
[disk formatted]The selected disk is already formatted.

Format 实用程序将自动配置任何未设置标签的 SCSI 磁盘。该实用程序将显示有关已格式化的磁盘的信息,如下所示:

c2t3d0: configured with capacity of 136.73GB

注 -  由于格式化磁盘会销毁数据,因此如果怀疑磁盘损坏,可从 Format 菜单中选择 analyze。此功能可对磁盘执行表面分析。完成测试后,便能确定是否需要执行格式化。
示例 6-11  格式化磁盘 c2t1d0

以下示例显示了如何格式化在启动 Format 实用程序后选择的 c2t1d0

format> formatFormatting is selected.
The protection information is not enabled
The disk will be formatted with protection type 0

Ready to format.  Formatting cannot be interrupted
and takes 169 minutes (estimated). Continue? yes

Beginning format. The current time is Fri Apr 1 ...

Formatting...
done

Verifying media...
pass 0 - pattern = 0xc6dec6de
14086/23/734

pass 1 - pattern = 0x6db6db6d
14086/23/734

Total of 0 defective blocks repaired.

format> q