540-7869
SUN 300GB - 10000 RPM SAS Disk Assembly For X41xx
测试流程:
扫坏道(0坏道),健康值检测(健康值100%,预计剩余寿命起码符合承诺的质保时间);
SUN 小机 检测
SAS2 接口
测试平台:浪潮服务器
扫坏道
健康值检测
上机测试
SUN小机
Sun T5220
串口线连接 (电脑 USB转串口,配合 服务器 串口转网线)
通过 “计算机” “管理” “设备管理器” “端口” 确认所识别到的 COM 端口
SecureCRT 设置连接
注意:协议是 Serial, 端口视情况而定,波特率选 9600, 流控不选。
连接到 SUN小机
ilom 用户密码: root changeme
系统密码: root sun
进 bash 进行进一步操作(bash 环境下 更方便操作,比如 光标上下键可以调出 历史操作命令)
SunHost console login: root
Password:
Jul 17 19:29:57 SunHost login: ROOT LOGIN /dev/console
Last login: Wed Jul 17 11:50:57 on console
Oracle Corporation SunOS 5.10 Generic Patch January 2005
You have new mail.
# bash
bash-3.2#
主要用到的命令
devfsadm 对新加设备进行在线识别和加载
format 对磁盘做操作
iostat -En 能够看到硬盘的统计信息 关键是 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
newfs /dev/rdsk/待测硬盘标识号 写入文件系统
usr/sunvts/bin/startsunvts 对 待测硬盘 压力测试
init 5 shutdown
init 6 reboot
对于识别到的可进行操作的磁盘
注意:
区分开 待测磁盘 与其他盘如 系统盘
磁盘前边的序号不一定与硬盘所在插槽位编号一一对应
bash-3.2# devfsadm
bash-3.2# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c0t4d0
/pci@0/pci@0/pci@2/scsi@0/sd@4,0
2. c0t5d0
/pci@0/pci@0/pci@2/scsi@0/sd@5,0
选择 待测硬盘 序号
注意要把待测盘 Label 一下
Specify disk (enter its number): 1
selecting c0t4d0
[disk formatted]
Disk not labeled. Label it now? Jul 17 11:54:04 SunHost scsi: WARNING: /pci@0/pci@0/pci@2/scsi@0/sd@4,0 (sd9):
Jul 17 11:54:04 SunHost Corrupt label; wrong magic number
Disk not labeled. Label it now? 1
`1’ is not expected.
Disk not labeled. Label it now? y
Jul 17 11:54:59 SunHost scsi: WARNING: /pci@0/pci@0/pci@2/scsi@0/sd@4,0 (sd9):
Jul 17 11:54:59 SunHost Corrupt label; wrong magic number
Jul 17 11:54:59 SunHost scsi: WARNING: /pci@0/pci@0/pci@2/scsi@0/sd@4,0 (sd9):
Jul 17 11:54:59 SunHost Corrupt label; wrong magic number
FORMAT MENU
重点是 partition 分区
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format>
进入 partition
format> p
PARTITION MENU:
0 - change `0’ partition
1 - change `1’ partition
2 - change `2’ partition
3 - change `3’ partition
4 - change `4’ partition
5 - change `5’ partition
6 - change `6’ partition
7 - change `7’ partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition>
查看 待测盘 分区
注意: 除了 2 backup 分区外,其他不为 0 的分区,要删除数据。
partition> p
Current partition table (default):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 20 128.17MB (21/0/0) 262500
1 swap wu 21 - 41 128.17MB (21/0/0) 262500
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 42 - 46872 279.13GB (46831/0/0) 585387500
7 unassigned wm 0 0 (0/0/0) 0
清除 0 分区 数据
partition> 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 20 128.17MB (21/0/0) 262500
Enter partition id tag[root]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[262500b, 21c, 20e, 128.17mb, 0.13gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 swap wu 21 - 41 128.17MB (21/0/0) 262500
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 42 - 46872 279.13GB (46831/0/0) 585387500
7 unassigned wm 0 0 (0/0/0) 0
继续 清除 1 6 然后 查看磁盘分区
partition> 1
Part Tag Flag Cylinders Size Blocks
1 swap wu 21 - 41 128.17MB (21/0/0) 262500
Enter partition id tag[swap]:
Enter partition permission flags[wu]:
Enter new starting cyl[21]:
Enter partition size[262500b, 21c, 41e, 128.17mb, 0.13gb]: 0
partition> 6
Part Tag Flag Cylinders Size Blocks
6 usr wm 42 - 46872 279.13GB (46831/0/0) 585387500
Enter partition id tag[usr]:
Enter partition permission flags[wm]:
Enter new starting cyl[42]:
Enter partition size[585387500b, 46831c, 46872e, 285833.75mb, 279.13gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
lable 一下 磁盘
查看磁盘分区 退出 分区 退出 format
partition> l
Ready to label disk, continue? y
partition> p
Current partition table (unnamed):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition>
partition>
partition>
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> q
iostat -En
执行iostat -En后能够看到硬盘的统计信息
关键是 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
In most case, “Transport Errors” means that one read/write command can not be returned with data. the data was lost on the way to disk. It is possible that the disk is not firmly connected to disk slot or some external disk cable has some problem. After several Transport Errors were reported, the disk will be kicked off by solaris. “Hard Error” means that once one read/write command was released, the disk returned one error to system. It is very possible that the disk itself was really defective. |
---|
bash-3.2# iostat -En
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: H103014SCSUN146G Revision: A160 Serial No: 0926F77K2E
Size: 146.81GB <146810536448 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c0t4d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: H103030SCSUN300G Revision: A2A8 Serial No: 1029G60U7E
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c0t5d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: H103030SCSUN300G Revision: A2A8 Serial No: 1029G65DRE
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
继续 format 第二块 待测硬盘
发现 待测磁盘 各个分区 Size 均为 0
bash-3.2# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c0t4d0
/pci@0/pci@0/pci@2/scsi@0/sd@4,0
2. c0t5d0
/pci@0/pci@0/pci@2/scsi@0/sd@5,0
Specify disk (enter its number): 2
selecting c0t5d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> p
PARTITION MENU:
0 - change `0’ partition
1 - change `1’ partition
2 - change `2’ partition
3 - change `3’ partition
4 - change `4’ partition
5 - change `5’ partition
6 - change `6’ partition
expand - expand label to use whole disk
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition> print
Current partition table (original):
Total disk sectors available: 585921082 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 unassigned wm 0 0 0
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> q
解决办法
format -e
bash-3.2# format -e
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c0t4d0
/pci@0/pci@0/pci@2/scsi@0/sd@4,0
2. c0t5d0
/pci@0/pci@0/pci@2/scsi@0/sd@5,0
Specify disk (enter its number): 2
selecting c0t5d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show vendor, product and revision
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!
quit
format> p
PARTITION MENU:
0 - change `0’ partition
1 - change `1’ partition
2 - change `2’ partition
3 - change `3’ partition
4 - change `4’ partition
5 - change `5’ partition
6 - change `6’ partition
7 - change `7’ partition
8 - change ‘8’ partition
expand - expand label to use whole disk
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition> p
Current partition table (original):
Total disk sectors available: 585921082 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 unassigned wm 0 0 0
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
7 unassigned wm 0 0 0
8 unassigned wm 0 0 0
9 unassigned wm 0 0 0
10 unassigned wm 0 0 0
11 unassigned wm 0 0 0
12 unassigned wm 0 0 0
13 unassigned wm 0 0 0
14 unassigned wm 0 0 0
15 unassigned wm 0 0 0
16 unassigned wm 0 0 0
17 unassigned wm 0 0 0
18 unassigned wm 0 0 0
19 unassigned wm 0 0 0
20 unassigned wm 0 0 0
21 unassigned wm 0 0 0
22 unassigned wm 0 0 0
23 unassigned wm 0 0 0
24 unassigned wm 0 0 0
25 unassigned wm 0 0 0
26 unassigned wm 0 0 0
27 unassigned wm 0 0 0
28 unassigned wm 0 0 0
29 unassigned wm 0 0 0
30 unassigned wm 0 0 0
31 unassigned wm 0 0 0
32 unassigned wm 0 0 0
33 unassigned wm 0 0 0
34 unassigned wm 0 0 0
35 unassigned wm 0 0 0
36 unassigned wm 0 0 0
37 unassigned wm 0 0 0
38 unassigned wm 0 0 0
39 unassigned wm 0 0 0
40 unassigned wm 0 0 0
41 unassigned wm 0 0 0
42 unassigned wm 0 0 0
43 unassigned wm 0 0 0
44 unassigned wm 0 0 0
45 unassigned wm 0 0 0
46 unassigned wm 0 0 0
47 unassigned wm 0 0 0
48 unassigned wm 0 0 0
49 unassigned wm 0 0 0
50 unassigned wm 0 0 0
51 unassigned wm 0 0 0
52 unassigned wm 0 0 0
53 unassigned wm 0 0 0
54 unassigned wm 0 0 0
55 unassigned wm 0 0 0
56 unassigned wm 0 0 0
57 unassigned wm 0 0 0
58 unassigned wm 0 0 0
59 unassigned wm 0 0 0
60 unassigned wm 0 0 0
61 unassigned wm 0 0 0
62 unassigned wm 0 0 0
63 unassigned wm 0 0 0
64 unassigned wm 0 0 0
65 unassigned wm 0 0 0
66 unassigned wm 0 0 0
67 unassigned wm 0 0 0
68 unassigned wm 0 0 0
69 unassigned wm 0 0 0
70 unassigned wm 0 0 0
71 unassigned wm 0 0 0
72 unassigned wm 0 0 0
73 unassigned wm 0 0 0
74 unassigned wm 0 0 0
75 unassigned wm 0 0 0
76 unassigned wm 0 0 0
77 unassigned wm 0 0 0
78 unassigned wm 0 0 0
79 unassigned wm 0 0 0
80 unassigned wm 0 0 0
81 unassigned wm 0 0 0
82 unassigned wm 0 0 0
83 unassigned wm 0 0 0
84 unassigned wm 0 0 0
85 unassigned wm 0 0 0
86 unassigned wm 0 0 0
87 unassigned wm 0 0 0
88 unassigned wm 0 0 0
89 unassigned wm 0 0 0
90 unassigned wm 0 0 0
91 unassigned wm 0 0 0
92 unassigned wm 0 0 0
93 unassigned wm 0 0 0
94 unassigned wm 0 0 0
95 unassigned wm 0 0 0
96 unassigned wm 0 0 0
97 unassigned wm 0 0 0
98 unassigned wm 0 0 0
99 unassigned wm 0 0 0
100 unassigned wm 0 0 0
101 unassigned wm 0 0 0
102 unassigned wm 0 0 0
103 unassigned wm 0 0 0
104 unassigned wm 0 0 0
105 unassigned wm 0 0 0
106 unassigned wm 0 0 0
107 unassigned wm 0 0 0
108 unassigned wm 0 0 0
109 unassigned wm 0 0 0
110 unassigned wm 0 0 0
111 unassigned wm 0 0 0
112 unassigned wm 0 0 0
113 unassigned wm 0 0 0
114 unassigned wm 0 0 0
115 unassigned wm 0 0 0
116 unassigned wm 0 0 0
117 unassigned wm 0 0 0
118 unassigned wm 0 0 0
119 unassigned wm 0 0 0
120 unassigned wm 0 0 0
121 unassigned wm 0 0 0
122 unassigned wm 0 0 0
123 unassigned wm 0 0 0
124 unassigned wm 0 0 0
125 unassigned wm 0 0 0
126 unassigned wm 0 0 0
127 unassigned wm 0 0 0
partition> l
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]? y
partition> l
[0] SMI Label
[1] EFI Label
Specify Label type[0]: 1
Warning: This disk has an SMI label. Changing to EFI label will erase all
current partitions.
Continue? l
`l’ is not expected.
Continue? y
partition> l
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]? y
partition> p
Current partition table (original):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!
quit
format> q
如果有必要 可以 format 进去查看待测磁盘分区 确认下
待测盘 写入 文件系统
bash-3.2# newfs /dev/rdsk/c0t4d0s2
newfs: construct a new file system /dev/rdsk/c0t4d0s2: (y/n)? y
Warning: 3916 sector(s) in last cylinder unallocated
/dev/rdsk/c0t4d0s2: 585912500 sectors in 95364 cylinders of 48 tracks, 128 sectors
286090.1MB in 5961 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
…………………………………………………………………….
………………………………….
super-block backups for last 10 cylinder groups at:
585015200, 585105440, 585203872, 585302304, 585400736, 585499168, 585597600,
585696032, 585794464, 585892896
bash-3.2# newfs /dev/rdsk/c0t5d0s2
newfs: construct a new file system /dev/rdsk/c0t5d0s2: (y/n)? y
Warning: 3916 sector(s) in last cylinder unallocated
/dev/rdsk/c0t5d0s2: 585912500 sectors in 95364 cylinders of 48 tracks, 128 sectors
286090.1MB in 5961 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
…………………………………………………………………….
………………………………….
super-block backups for last 10 cylinder groups at:
585015200, 585105440, 585203872, 585302304, 585400736, 585499168, 585597600,
585696032, 585794464, 585892896
查看下 待测磁盘 分区情况 最终确认下
bash-3.2# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c0t4d0
/pci@0/pci@0/pci@2/scsi@0/sd@4,0
2. c0t5d0
/pci@0/pci@0/pci@2/scsi@0/sd@5,0
Specify disk (enter its number): 1
selecting c0t4d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> p
PARTITION MENU:
0 - change `0’ partition
1 - change `1’ partition
2 - change `2’ partition
3 - change `3’ partition
4 - change `4’ partition
5 - change `5’ partition
6 - change `6’ partition
7 - change `7’ partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition> p
Current partition table (original):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> q
bash-3.2# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c0t4d0
/pci@0/pci@0/pci@2/scsi@0/sd@4,0
2. c0t5d0
/pci@0/pci@0/pci@2/scsi@0/sd@5,0
Specify disk (enter its number): 2
selecting c0t5d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> p
PARTITION MENU:
0 - change `0’ partition
1 - change `1’ partition
2 - change `2’ partition
3 - change `3’ partition
4 - change `4’ partition
5 - change `5’ partition
6 - change `6’ partition
7 - change `7’ partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition> p
Current partition table (original):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!
quit
format> q
bash-3.2#
准备 待测硬盘 压力测试
bash-3.2# usr/sunvts/bin/startsunvts
Do you want time information of each LT in each pass ‘y/n’
y
Which VTS 7.0 User Interface (UI) or Testing option would you like to use?
a) Command Line Interface
b) Terminal User Interface
c) Graphical User Interface
d) Default Testing
l) Comprehensive Testing
s) Short Testing
m) Memory Testing
A) All level Testing
b
Starting TTY UI….
时间单位可能是 分钟 这里时间根据实际情况决定,几小时到十几小时不等。
因为只是对 待测硬盘 进行 测试
默认是 Disk Environment Ioports Memory Network 都被勾选,取消无关测试项。(空格取消)
还要注意 只选择 待测硬盘 进行测试
注意 选择的要加入测试的硬盘标识 与 待测硬盘 一致(比如 这里有一块系统盘 不必选中)
确认无误后 start(成功 start 后,原本 start 选项会变为 stop)
待测硬盘灯狂闪
(左 系统盘 右边两个待测盘)
完成测试后 关机再移除待测硬盘
留取相关信息
合格硬盘做测报 入库
不合格硬盘 退货处理
留作测报的信息
bash-3.2# iostat -En
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: H103014SCSUN146G Revision: A160 Serial No: 0926F77K2E
Size: 146.81GB <146810536448 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c0t4d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: H103030SCSUN300G Revision: A2A8 Serial No: 1029G60U7E
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c0t5d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: H103030SCSUN300G Revision: A2A8 Serial No: 1029G65DRE
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
bash-3.2#
bash-3.2#
bash-3.2# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c0t4d0
/pci@0/pci@0/pci@2/scsi@0/sd@4,0
2. c0t5d0
/pci@0/pci@0/pci@2/scsi@0/sd@5,0
Specify disk (enter its number): ^C